Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get rid of this Spring start up error?

 
Nam Ha Minh
Ranch Hand
Posts: 502
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Atul Kotwale
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 502
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
Mac Scala VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 502
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
Mac Scala VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic