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
0
votes
2 answers

How do I retry mqtt connection on connection failed before publish and after regaining connection publish it to mqtt using the spring 4 integration?

Consider a situation where mqtt server is down. And , with mqtt client you publish messages on to the topic, at this time it will throw connection refused exception. Later when the server is up , you can retry the connection and publish those…
0
votes
1 answer

How to configure Spring annotation and xml together with struts2

We have existing spring application integrated with struts2, and we are using xml based config .. but i found one limitation env.getProperty not working Spring PropertyPlaceholderConfigurer so i decided to use both annotation and xml in app for now…
invariant
  • 8,758
  • 9
  • 47
  • 61
0
votes
1 answer

Will Spring 4.1 support JSF 2.2?

Some time ago I heard a rumor saying Spring 4.1 is going to support JSF 2.2. In particular, SpringBeanFacesELResolver would be able to create view scoped controller beans. Spring 3 only supports application scope, request scope and session scope. As…
Stephan Rauh
  • 3,069
  • 2
  • 18
  • 37
0
votes
1 answer

Why Spring(4) mvc:default-servlet-handler overrides controller mapping?

i am starting an embedded Tomcat 8 and bootstrap the spring application context using an implementation of the WebApplicationInitializer interface. This implementation also add's a DispatcherServlet to the Tomcat Servlet Context, my…
cav
  • 47
  • 1
  • 2
  • 8
0
votes
0 answers

Spring 4 Jar overriding Servlet 3 Api

I am trying to configure my latest Spring application programmatically instead of with an xml file. However, I am running into a problem where when I import the spring-webmvc-4.0.3.RELEASE jar the compiler no longer uses the Servlet 3 api. I need…
Kyle Bauer
  • 83
  • 1
  • 1
  • 9
0
votes
1 answer

Spring4 with Hibernate4 fails in standalone process

I'm failling to use Spring4 togather with Hibernate4 in a standalone process (no container like tomcat, WAS, ...) How can I use Hibernate4, Spring4 and Spring data repositories togather in a standalone process? However I confiugre Spring I allways…
domi
  • 2,167
  • 1
  • 28
  • 45
0
votes
1 answer

java.lang.NoSuchMethodError: org.springframework.aop.config.AopNamespaceUtils with Spring 4

Hi I am using Hibernate 4 and recently upgraded to spring 4 .I get this error in my hibernate.xml below java.lang.NoSuchMethodError: org.springframework.aop.config.AopNamespaceUtils.registerAutoProxyCreatorIfNecessary
Gaurav Rawat
  • 1,294
  • 1
  • 25
  • 52
0
votes
2 answers

Spring 4 Annotation-based controller not working in Jboss 5.2

I have tried to create a very simple controller with Spring 4.0.2. It works fine if I used version 3.1.2.RELEASE. However, once I upgraded the maven dependency to 4.0.2.RELEASE. It stop working. Here is my web.xml
user3422290
  • 253
  • 5
  • 18
0
votes
1 answer

Spring4 MVC not recognizing jsps

I am trying to make an MVC project using gradle and Spring4. @Bean public UrlBasedViewResolver viewResolver() { InternalResourceViewResolver resolver = new InternalResourceViewResolver(); resolver.setPrefix("/WEB-INF/jsp/"); …
Jackie
  • 21,969
  • 32
  • 147
  • 289
0
votes
1 answer

Are Spring4 websockets supported in ie8?

According to this document they are : http://caniuse.com/websockets But this document http://msdn.microsoft.com/en-us/library/ie/hh673567(v=vs.85).aspx seems to suggest that the earliest version is ie10 Are Spring4 websockets (or web sockets in…
blue-sky
  • 51,962
  • 152
  • 427
  • 752
0
votes
1 answer

Couldn't find HttpResponse or HttpServletResponse in Spring 4

Just I am working on web project, In that i need to download a sql file while clicking the link. I tried to find the HttpResponse or HttpServletResponse in controller. Could any one help me to resolve this issue, @RequestMapping(value =…
Tech Mahesh
  • 392
  • 1
  • 3
  • 14
0
votes
0 answers

ManagedBean is not accessible, using JSF2.2, Spring 4.0 and SpringSecurity 3.2

I am developing a Dynamic Web Application, using JSF 2.2, Spring Framework 4.0 and Spring Security 3.2. I, first, integrated JSF and Spring framework (JSF Page => ManagedBean => Service => DAO). It was working fine. But when I introduced Spring…
iawebwork
  • 11
  • 3
0
votes
0 answers

Using Spring Security for Login with Spring MVC ,getting 404 error

I get the 404 error when I run my project in Tomcat 7. spring-security :
day_dreamer
  • 824
  • 3
  • 13
  • 33
0
votes
1 answer

Upgrading spring from 3.2 to 4 - Issue with generics (extends)

I have the below code that worked with spring 3.2 and fails with a "NoSuchBeanDefinitionException" on spring 4.0.0.RELEASE public interface Cacheable { } public class TimeUnit implements Cacheable { } @Component …
Andy Dufresne
  • 6,022
  • 7
  • 63
  • 113
0
votes
1 answer

Spring 4 Migration -ClassCastException : cannot be cast to org.springframework.web.method.HandlerMethod?

I am getting this Exception while upgrading from Spring 3.0 to 4.0 I updated the deprecated classes with this link DefaultAnnotationHandlerMapping,AnnotationMethodHandlerAdapter with RequestMappingHandlerMapping…
Gangaraju
  • 4,406
  • 9
  • 45
  • 77