Questions tagged [spring-3]

Version 3.x of the Spring Framework, use [tag:spring] for general Spring related questions.

The Spring Framework is an open source application framework for the Java platform. Use for general Spring related questions. This tag is for questions that are specific to versions 3.x only.

It provides services and functionality across the application domain, including a core Inversion of Control container, technology-agnostic data-access and MVC layers, extensive AOP support, task scheduling, and various integration patterns designed to make distributed system development simpler and clearer. While some spring modules are simple wrappers and helpers over the Java EE specifications, the majority of them go far beyond the Java EE specification.

The latest Spring Framework Reference Documentation can be found here.

Frequently Asked Questions

People often ask about the following Spring topics:

###Guides:

Video tutorial on Spring Framework

###Blog:

Related tags

###More information:

762 questions
33
votes
4 answers

org.hibernate.HibernateException: No Session found for current thread

I'm getting the above exception with Spring3 and Hibernte4 The following is my bean xml file
Can't Tell
  • 12,714
  • 9
  • 63
  • 91
30
votes
10 answers

A component named 'XXX' is already defined in this module in JBoss 7.1.1

I did not create the spring bean name with TimerServiceDispatcher in my application. But, the JBoss throw exception because of TimerServiceDispatcher is already defined in this module. I don't know what is the problem. What I am missing? What I need…
Zaw Than oo
  • 9,651
  • 13
  • 83
  • 131
28
votes
1 answer

Can Spring MVC's REST framework accept query strings rather than PathVariables?

In all the tutorials and articles I have read regarding Spring 3's RESTful additions to Spring MVC, I have only ever seen one way for the use to pass in query data, via a @PathVariable, like so: @RequestMapping(value="/shops/{name}",…
Ken Bellows
  • 6,711
  • 13
  • 50
  • 78
27
votes
7 answers

Spring's @Scheduled error : Only one AsyncAnnotationBeanPostProcessor may exist within the context

I am trying Spring 3's @Scheduled annotation . Here is my configuration (app.xml) :
smallufo
  • 11,516
  • 20
  • 73
  • 111
26
votes
4 answers

Spring 3 @ImportResource with multiple files

I'm trying to find the syntax for importing multiple spring xml context files using Spring 3 @ImportResource annotation. I have tried using comma to separate the filenames as illustrated below but that does not…
Kes115
  • 2,070
  • 2
  • 21
  • 37
25
votes
3 answers

spring-security - where can I find the list of ALL security filters registered when I use the element?

There are a default set of filters registered when we use the element in our xml file. This mentions the ordering of filters (whichever we choose to apply), and just above that, it mentions :
Daud
  • 7,429
  • 18
  • 68
  • 115
23
votes
3 answers

Reference an Annotated Spring Component in an XML Bean Definition

I am using an external library that requires that I configure it using an XML Bean definition; in the Bean definition I need to provide an external class with a Bean from my project. I am using spring annotations with component scanning. How do I…
Rylander
  • 19,449
  • 25
  • 93
  • 144
23
votes
2 answers

no declaration can be found for element 'mvc:annotation-driven'

I have the requirement of returning JSON/XML data from my controller.From what i found,I needed @ResponseBody in my method and for that I need enabled. I have tried all sorts of RnD but am still stuck! :( Apparently my…
user2164016
  • 233
  • 1
  • 2
  • 4
22
votes
2 answers

No AuthenticationProvider found for UsernamePasswordAuthenticationToken

my web.xml config is springSecurityFilterChain org.springframework.web.filter.DelegatingFilterProxy
Tito
  • 8,894
  • 12
  • 52
  • 86
22
votes
1 answer

@Autowired by constructor looks for beans by type. How to inject a bean by name to a constructor using autowired annotation

@Autowired by constructor looks for beans by type. How to inject a bean by name to a constructor using autowired annotation? I have 2 beans of same type but I need to inject it to constructor of another same class based on the bean name. How do I…
user2972319
  • 223
  • 1
  • 2
  • 6
22
votes
4 answers

Why unit testing with Spring 3.1 WebMvcConfig fails?

From Spring 3.1, we can use JavaConfig more easily thanks to @Enable* annotations. So I made a WebConfig to set WebMvc configuration, and tried to test it. But if I extends WebMvcConfigurerAdapter or WebMvcConfigurationSupport with WebConfig the…
Sanghyun Lee
  • 21,644
  • 19
  • 100
  • 126
21
votes
4 answers

eventlisteners using hibernate 4.0 with spring 3.1.0.release?

These jars are both new released and have the latest solutions for Java EE applications. But I have a problem on specifiying hibernate listeners in hibernate.cfg.xml. Before spring 3.1.0, LocalSessionFactroyBean was holding an attribute that keeps…
asyard
  • 1,743
  • 5
  • 21
  • 43
21
votes
2 answers

No persistence exception translators found in bean factory. Cannot perform exception translation

I'm getting following exception after migrating to Spring Framework 3.1.0 RC1 with Hibernate 4.0.0 CR7 2011-12-08/11:48:38.425/EST [Thread-17] ERROR Context initialization failed org.springframework.beans.factory.BeanCreationException: Error…
MatBanik
  • 26,356
  • 39
  • 116
  • 178
21
votes
3 answers

Downloading Spring Jars without using Maven

How do you download Spring Framework jars if you can't stand Maven or any of the other build management tools. From what I can tell it seems you have to spend many frustrating hours on Google to find out how to do this. I thought Spring was…
resigned
  • 1,044
  • 1
  • 10
  • 11
21
votes
1 answer

Login/logout in REST with Spring 3

We are developing RESTful webservices with Spring 3 and we need to have the functionality of login/logout, something like /webservices/login/// and /webservices/logout. The session should be stored in the context until the…
FKhan
  • 213
  • 1
  • 3
  • 6
1
2
3
50 51