With Spring 2.0m4, I had a similar problem with ReflectionUtils because I was using an old version of spring-sandbox.jar (for Commons Validator support). I removed spring-sandbox.jar since I wasn't...
Type: Posts; User: nilesh; Keyword(s):
With Spring 2.0m4, I had a similar problem with ReflectionUtils because I was using an old version of spring-sandbox.jar (for Commons Validator support). I removed spring-sandbox.jar since I wasn't...
Ok, thanks.
http://opensource.atlassian.com/projects/spring/browse/SPR-1219
I have an application that registers JMX beans using MBeanExporter. If I deploy this application twice I get org.springframework.beans.factory.BeanCreationException caused by...
Thanks for the response. I think I understand what is going on now, and my unit test was actually performing behavior that should result in the error.
In case anyone is interested in the details:...
I have a JUnit test that uses AbstractTransactionalDataSourceSpringContextTests. I recently upgraded from Spring 1.1.5 to 1.2.2 and the test fails (succeeded in 1.1.5) with the following exception:...
I think you need to write code to set the typemapping for each complex type. Check out the jPetstore example.. Look at client\clientContext.xml.. In the Spring 1.2 version look at the code for...
What does your log4j.properties look like? For me, I can either set my rootLogger to FATAL (to quiet almost everything but FATAL messages) or add this line to get only Spring to be quiet (except for...
You can integrate .Net and Java with relatively complex objects (beans, arrays of beans, beans containing arrays of beans, beans containing arrays of bean which contain arrays of beans, etc). But...
I am also having some kind of problem that throws a ClassCastException: http://forum.springframework.org/viewtopic.php?t=4816
What type of web services are these (doc/literal, rpc/encoded?)
What...
I have a few web service methods that work (of "literal" type). But I have one that has an array of beans as return type. When I call this method it executes successfully on the server side, then...
I'm also having the same problem with JaxRpcPortProxyFactoryBean for web services that work with rpc/encoded, but don't for wrapped/literal. From looking at what Axis's WSDL2Java tool generates, the...
I'm not sure I understand what you want to do. Do you want to throw the exception but still commit the transaction? In that case, here are something that may help you:
...
In one of the projects I'm involved in we have had the need to set the transaction status to rollback, but continue execution so that the method can return a response object (similar to your...
Update: Using Java 1.5 and Tomcat 5.5, the app deploys fine. Maybe this is a Tomcat issue more than it is a Spring issue.
I have an application that fails to deploy when I use Java 1.5 (update 1), but it deploys fine when using 1.4.2. I am using Tomcat 5.0 and Spring 1.1.3.
On this same app server, I have another...
EDIT: This was originally a question but I found the answer.. To cause the browser to download the file (rather than display in the browser if possible) and to provide the correct file name to the...
I wish to use both Hibernate and iBatis in the same application. I want to be able to have transactions which may use Hibernate and iBatis (and straight JBDC) in a single transaction. How do I...
I had this same problem with MyEclipse. It appears to have its own versions of the Spring dtd at these locations:
C:\Program...
I have this scenario:
I have two controllers (extending SimpleFormController) that use the same command object. One of the controllers, on a successful form submission, forwards to the other...
In JIRA, is SpringDOC the correct component to create issues for documentation errors?
(using Spring 1.1 MVC...)
We need to convert between timezones for date/times. The date/times are stored in GMT in the database. For the view we want to convert to the user's timezone based on...
You need to use SqlMapClientFactoryBean for iBatis 2.0. SqlMapFactoryBean is only for iBatis 1.x.
The Spring documentation has a table which says which classes to use for 2.0:...
Note that if you need to prepopulate all forms of the view (or validate them all at once or something), one way to do this is have a single Controller and a single Command object that contains the...
Looks like there is a way to define messages that are displayed for specific types. For example:
typeMismatch.java.util.Date=Invalid date entry
typeMismatch.java.lang.Integer=Invalid integer...
I read in the Struts Validator documentation that you need to begin your mask with ^ and end with $. So for example, I have a mask variable like this which works:
...