Questions tagged [spring-4]

Version 4.x of the Spring Framework

Use for general Spring related questions. This tag is for questions that are specific to versions 4.x only.

618 questions
2
votes
1 answer

passing RUN_ARGS for spring boot application running as service in linux

I have followed instructions from spring-boot documentation and successfully deployed spring-boot as service in centos. All the following commands work sudo /etc/init.d/myapp start sudo /etc/init.d/myapp stop sudo /etc/init.d/myapp…
brain storm
  • 30,124
  • 69
  • 225
  • 393
2
votes
1 answer

Spring 4 Security configuration runs but not active

I am quite new to Spring, so sorry if my question sounds silly. I am trying to add basic HTTP Auth to my Spring based REST API. I have been following quite a few tutorials and reference documentations for now, but they all seem to indicate the…
jlengrand
  • 12,152
  • 14
  • 57
  • 87
2
votes
1 answer

Cannot import org.apache.commons.lang3.math.NumberUtils

My IDE is Spring Tool Suite. I want to use the NumberUtils.isNumber function. STS does not know the class , and there is no suggestion of import in the error icon. My buildpath is using java-se 1.6 : In pom.xml java-version is 1.7 :
pheromix
  • 18,213
  • 29
  • 88
  • 158
2
votes
1 answer

Ehcache concurrent modification exception using + Spring + Struts application

In my application the ehcache is configured as below. AppDataRegion.java //import statements. public class AppDataRegion{ //Variable for region identifier. private String appRegionId; // constructor sets the appRegionId; //obtained from the…
Tim
  • 1,321
  • 1
  • 22
  • 47
2
votes
3 answers

Which version of Hibernate is suited for Spring 4.3.2?

I use Spring framework 4.3.2.RELEASE I saw on a tutorial site that both Spring and Hibernate must match their versions in order to integrate Hibernate with Spring. So what is the appropriate version of Hibernate for Spring 4.3.2.RELEASE ?
pheromix
  • 18,213
  • 29
  • 88
  • 158
2
votes
2 answers

HTML retrieved from database does not appear correct

I am creating an application using Spring4/JPA/JSoup/Ckeditor. User logins->opens a page->enters text using ckeditor->publishes it (kind of a small blog). Data is saved successfully in mysql database, so for example: User enters a bold text in…
user3367569
  • 103
  • 1
  • 1
  • 9
2
votes
1 answer

Spring security 4. JSON REST with custom authentication and authorization

We're developing Spring 4 REST/JSON API but we need to have custom Authentication service to authenticate against 3rd party service. restrictions: We don't want to ask the user for username/password. we are authenticating using "cookie" (send with…
Mohamed Kamal
  • 357
  • 1
  • 2
  • 10
2
votes
0 answers

Spring security authentication-success-handler-ref is not getting called after successful authentication by CustomAuthenticationManager

I have been trying to migrate from spring 3.2 to 4.1. I am using spring 4 jars. I have been struggling with this task. Spring security authentication-success-handler-ref is not getting called after successful authentication by…
2
votes
1 answer

how to add custom content-type as json in spring mvc?

I have a client application which is dated and is sending the request headeer as Content-Type: json instead of Content-Type: application/json. There is no way (in the near future) the client application can be changed. I am implementing the…
brain storm
  • 30,124
  • 69
  • 225
  • 393
2
votes
1 answer

Extjs and Spring 4

I'm getting an error while integrating spring and extjs. It's just simple code of a login page. Error details are as follows Failed to load resource: the server responded with a status of 500 (Internal Server Error) ext-all.js:21 Uncaught…
Sravani
  • 21
  • 1
2
votes
2 answers

How to integrate SLF4J logging with Spring 4?

Couldn't find any good answer why slf4j logging not working with spring 4. Thanks to this post I've made particularly all work, but the author didn't mention that: The mandatory logging dependency in Spring is the Jakarta Commons Logging API…
2
votes
1 answer

Spring 4, SOAP WS, XSD... Producing two different WSDL

second time I'm trying to ask this without any answer, though i don't think this should be an hard question for a good Spring developer.. I want to create a simple Spring 4 (Annotation driven) Application, this will use the maven-jaxb-plugin to…
ivoruJavaBoy
  • 1,307
  • 2
  • 19
  • 39
2
votes
1 answer

Does Intellij idea support groovy beans configuration?

Spring 4 supports bean configuration using Groovy. You can define your beans using beans closure and it looks cleaner than xml. Moreover you can add flexible logic because it is a Groovy script. My question is: Is it possible to make IntelliJ IDEA…
Kirill
  • 6,762
  • 4
  • 51
  • 81
2
votes
1 answer

Getting a Failed to start bean 'subProtocolWebSocketHandler' exception while trying to implement websockets

I am going through the websockets with Spring 4 tutorial here. I have it working where the server responds when client calls. However, my use case is having the server push the messages without client having to call. So I looked up online on ways to…
An Illusion
  • 769
  • 1
  • 10
  • 24
2
votes
1 answer

Post Array of String values as request body using curl in Spring MVC

Not able to post Array of string ids to Spring mvc controller using curl as it is throwing 400 status. Controller Method: @RequestMapping(value="/evidencesbyIds",method = RequestMethod.POST) @ResponseBody public Map
Pravin Reddy
  • 651
  • 2
  • 8
  • 20