aspose file tools*
The moose likes Spring and the fly likes How to get rid of this Spring start up error? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How to get rid of this Spring start up error?" Watch "How to get rid of this Spring start up error?" New topic
Author

How to get rid of this Spring start up error?

Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 484

Hi there,


I am running into a problem with Spring. When I started the web app in Tomcat, it throws this exception:




So I pick up Spring configuration file, applicationContext.xml, and I am suspecting this line causes the problem:



But I don't know how to solve the issue.

Any help?

Thanks a bunch.


PM Me If You Want to get Urgent Help on Java Programming
Atul Kotwale
Greenhorn

Joined: Dec 22, 2011
Posts: 17
Hi,

It seems that your spring jar version and the version of xsd mentioned in the configuration file is not same. you might have copied the configuration file from net.
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 484

Atul Kotwale wrote:Hi,

It seems that your spring jar version and the version of xsd mentioned in the configuration file is not same. you might have copied the configuration file from net.


Thank you for replying.

In the pom.xml file, I see:



So I thought I should change the version of xsd to 0.8:



However I still got this exception:



I am still lost
Kaspar Christenson
Greenhorn

Joined: Feb 26, 2009
Posts: 21

How about removing the numbers from the -2.5 and -0.8 and just let it pickup what is on the classpath, and let Maven worry about the versions?
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 484

Kaspar Christenson wrote:How about removing the numbers from the -2.5 and -0.8 and just let it pickup what is on the classpath, and let Maven worry about the versions?

I tried, but still the same. I noticed the spring-modules-validation-0.8.jar file is presence in WEB-INF\lib directory.
Kaspar Christenson
Greenhorn

Joined: Feb 26, 2009
Posts: 21

Do you also have this in WEB-INF?


Maybe this will help spark some ideas http://www.jarvana.com/jarvana/inspect-pom/org/springmodules/spring-modules-validation/0.8/spring-modules-validation-0.8.pom
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get rid of this Spring start up error?
 
Similar Threads
Why cannot ApplicationContext find an existing file?
dependency inject in web services
Could annotation based and xml based configuration be used together in spring 2.5?
Hibernate with Spring
HibernateException: No Hibernate Session bound to thread