*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 498

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: 498

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: 498

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
 
wood burning stoves
 
subject: How to get rid of this Spring start up error?
 
Similar Threads
dependency inject in web services
Why cannot ApplicationContext find an existing file?
HibernateException: No Hibernate Session bound to thread
Hibernate with Spring
Could annotation based and xml based configuration be used together in spring 2.5?