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

Is a static factory method the only way to pass runtime values to a prototype's constructor using Spring?

I have an object to be scoped as a prototype, and the constructor argument values are determined at runtime. It seems to me that I have to use a static factory method to construct an instance of this prototype. Is this true, and where in the…
user4903
0
votes
1 answer

How to load app-wide settings at startup (for Spring3 webapp)?

I am in the basic stages of writing a Spring3 MVC webapp with Hibernate. I want all of data model classes to be able to access basic configuration values for example, database table prefix name, etc. I want this option, so I (or other developers)…
Sam Levin
  • 3,326
  • 7
  • 30
  • 44
0
votes
2 answers

BeanCreation Error: - unable to find a default provider

does anyone know how to fix this issue? it happens on a spring 3 rest web service application i am trying to run and test org.springframework.beans.factory.BeanCreationException: Error creating bean with name…
Jono
  • 17,341
  • 48
  • 135
  • 217
0
votes
1 answer

How to configure Spring 3 in weblogic 10.3.5

How to configure Spring 3 to Weblogic 10.3.5. Currently I get this exception. Caused by: java.lang.NoSuchMethodError:…
Kre Toni
  • 499
  • 2
  • 6
  • 17
0
votes
1 answer

where to get spring mock libs?

i want to use org.springframework.mock.web.MockHttpServletRequest and it doesnt appear on any of these links i download from the official Spring website no idea where i can get the mock libs as it doesnt appear on the spring framework libraries .…
Jono
  • 17,341
  • 48
  • 135
  • 217
0
votes
4 answers

@RequestMapping servlet not being found

I have a controller annotation defined like so : @RequestMapping(value = "/myServlet" , method = RequestMethod.GET) public @ResponseBody String performAction() { return "success"; } This servlet is being invoked via an ajax…
blue-sky
  • 51,962
  • 152
  • 427
  • 752
0
votes
1 answer

@Named not working on weblogic while integrating JSF 2.0 and spring 3.0.6

I have read an article on internet for using @Named annotation to inject JSF managed beans. how to use @Named annotation But it is not working on weblogic 10.0.2. (Working fine on Jetty) I am using Myfaces 2.1.6, Spring 3.0.6 for injecttion. Please…
Sunny Gupta
  • 6,929
  • 15
  • 52
  • 80
0
votes
1 answer

Using onSubmitAction within Spring 3

I'm using a spring 3 RequestMapping within a controller defined like so : @RequestMapping(value = "/myServlet" , method = RequestMethod.GET) public @ResponseBody String performAction() { return "success"; } I'm attempting to…
blue-sky
  • 51,962
  • 152
  • 427
  • 752
0
votes
2 answers

Spring 3 MVC Request parameter mapping. Two parameters from the same class while calling a handler in the controller

I am trying to figure out how to pass two different parameters of the same class through the URL to a handler method in the controller. For example, given a "Foo" class with an "id" parameter(I am saying just one parameter to keep it simple, but…
raspayu
  • 5,089
  • 5
  • 37
  • 50
0
votes
1 answer

Implementation of Annotation Driven Transaction in Open-Session-In-View with Spring 3 and Hibernate 4

I am developing an application with Wicket-1.5.3, Spring-3.1.1 and Hibernate-4.1.1. I want to implement Open-Session-In-View Pattern where the Transaction will be Annotation Driven and the Application should net get any…
Tapas Bose
  • 28,796
  • 74
  • 215
  • 331
-1
votes
1 answer

can it run spring 3 on tomcat 9 and java 8?

I have found an application that is made with spring 3.2.18.RELEASE and is running on tomcat 9 and java 8. My knowledge of java and spring is very little, but from what I understand spring 3 should work with Servlet 2.5 API. But according to tomcat…
user60108
  • 3,270
  • 2
  • 27
  • 43
-1
votes
1 answer

Are there any ways to initialize spring bean after the whole context was initialized or server startup was performed?

Currently I'm working on legacy Hybris project. We use Hybris 4.8 and Srping 3 with Java 7. There is a factory class which performs some logic in order to instantiate another bean. The thing is that this factory bean interacts with other beans from…
-1
votes
1 answer

Spring bind AJAX form data from key value JSON

I am trying to bind form data that is serialized alongside other data within an AJAX call. I can't seem to get Spring to pick it up. It just instantiates an empty form. JavaScript: $.ajax({ method: "GET", url: contextPath, data: {"form":…
Logan Lim
  • 1
  • 3
-1
votes
1 answer

MySQL to SQL server in Spring MVC 3

I am creating a sample login page with database using Spring MVC. Using mysql I created a sample file. Its working Perfectly.Now I want to create same using SQL Server I tried a lot but its not working. //mysql
Jerold Joel
  • 227
  • 1
  • 9
  • 22
-1
votes
1 answer

how can I share session among multiple servers for Spring 3 project

I have a spring 3 project, and I now need to share session among multiple server instance. Naturally, I thought about mongoDB, I want to use MongoDB as session storage for Spring project. But I googled a lot, and I can only find reference for Spring…
user3006967
  • 3,291
  • 10
  • 47
  • 72
1 2 3
50
51