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

Missing @AnnotationDrivenTx Spring3

my collegues sais i should convert the spring's app-context.xml into java. For that i need to have the @AnnotationDrivenTx-Annotation i cant find. Any workaround here? Regards.
Grim
  • 1,938
  • 10
  • 56
  • 123
0
votes
2 answers

file upload using spring 3

i'm uploading an image file from this page and i'm getting nullpointer exception for multipartfile creation , i'm unable to understand where i did mistake? and i'm newbie for java fileupload.jsp
0
votes
1 answer

Spring not loading controller and no console errors

I have an existing webapp written in Struts 1.2 and i'm trying to use Spring 3-Rest to expose functionality as web services. I've run into a basic problem that I am unable to wrap my head around This is my web.xml stripped of all struts stuff. …
nunchuckNinja
  • 89
  • 1
  • 7
0
votes
1 answer

valums file-uploader IE and @Responsebody. IE Launches download dialog.

I am using valums file-uploader to upload files. This works great if my Spring controller returns void. If I add a @Responsebody Object to my controller IE things that I am about to download instead of uploading a file and launches a dialog. The…
pethel
  • 5,397
  • 12
  • 55
  • 86
0
votes
1 answer

Separately managing obiects from lists in spring 3 mvc + jsp web application

After thinking a lot, this is the best question title I could find. Not that representative, I'm sorry :-(. By the way let me explain the problem. I have to implement an administration panel. It displays a table where every line contains a user with…
MaVVamaldo
  • 2,505
  • 7
  • 28
  • 50
0
votes
1 answer

Null pointer when calling pre-instantiated bean from spring Container with JSF @managed property

I am trying to use the bean created in the spring Container in the JSF ManagedBean using @ManagedProperty annotation.But I am getting null pointer when using that bean.Once I start my server I can see my beans are created Here Pre-instantiating…
SRy
  • 2,901
  • 8
  • 36
  • 57
0
votes
1 answer

Spring Security 3.1 xsd and jars mismatch issue

I'm Trying to migrate from spring framework 3.0.5 to 3.1 and spring-security 3.0.5 to 3.1 (not to mention hibernate 3.6 to 4.1). Using Apache IVY. I'm getting the following error trying to start Tomcat 7.23 within Eclipse Helios (among a host of…
kmansoor
  • 4,265
  • 9
  • 52
  • 95
0
votes
1 answer

Spring 3.1 and Jackson: Merge database entity and unmarshalled argument before validation

From my understanding, when an object gets unmarshalled by Jackson, non-mentioned fields in the request call will be set to default value (null if an object), and if there is a constraint on that specific field, say @NotNull, validation fails. Hence…
Peymankh
  • 1,976
  • 25
  • 30
0
votes
1 answer

Spring 3.1 + hibernate 4: Can't get it to run

I tried different configurations but to no effect. The error remained the same. Here the desired config taken from BoneCPs web site:
beginner_
  • 7,230
  • 18
  • 70
  • 127
0
votes
2 answers

Spring, JSP class not found

I'm returning to Spring after a long absence and I'm trying to get a simple web app up and running on Tomcat 6.0 with Hibernate as an ORM. The error I am getting is: SEVERE: Servlet.service() for servlet mvc-dispatcher threw…
enkor
  • 7,527
  • 3
  • 31
  • 55
0
votes
1 answer

How can this Spring controller be called

How can I call the method below using a http post. Is it necessary to use JSON and @Requestbody. I also don't wont to use spring forms. I am not seeing any way to accomplish this without a JSON post. How would the html form lok like?…
pethel
  • 5,397
  • 12
  • 55
  • 86
0
votes
1 answer

Possible ways of binding data in a Spring MVC Controller

What are the possible ways to bind data to method parameters of a Spring MVC controller other than @RequestBody and @ModelAttribute. Can i bind data using @Valid, implementing code like below. @RequestMapping(value="/person", method =…
pethel
  • 5,397
  • 12
  • 55
  • 86
0
votes
1 answer

Trying to pass objects to controller(Spring MVC)

I am trying to test my controller. Spring populates my Profile object but it is empty. I can set the email before the call bu it still is null. How to jag pass a Profile in a proper way? private MockHttpServletRequest request; private…
pethel
  • 5,397
  • 12
  • 55
  • 86
0
votes
2 answers

Spring 3.0 annotation bean Component Scan

How to do component-scan in spring 3.0? I use annotation like @Service, @Reponsity for both jar and project. It does not work. When the bean in project inject from the bean in jar. In jar file com.java.spring.support In project …
Zaw Than oo
  • 9,651
  • 13
  • 83
  • 131
0
votes
1 answer

How to inject Spring 3.0 annotated bean form JBoss Seam 2.3 Action Bean

I would like to development an simple application using the following envirnoment. JBoss 7.1.1 JBoss Seam 2.3 JSF 2.0 Rifaces 4.0 Spring 3.0 JPA 2.0 Eclipse IDE with JBoss Tool 3.2 Most of the configuration properly work. But I cannot inject the…
Zaw Than oo
  • 9,651
  • 13
  • 83
  • 131