Spring deployment in tomcat 5.5 problem
I have made a web application using spring and spring-mvc 2.5.I also used jdk-5 and tomcat 6 for development.Now I want to deploy it in a live server which is tomcat 5.5 with jdk 6 and I'm facing several NoClassDefDoundErrors such as "java.lang.NoClassDefFoundError: org.springframework.core.CollectionFactory ".Is there a change to overcome such problems by replacing spring related jars with a newer version such 2.5.6?And in general is there something I can do about this kind of problems?-except changing live tomcat with tomcat 6.This is not an option at the moment - thank you in advance开发者_如何学Go for your time
Do you have all your Spring JARs in your app's
WEB-INF/lib
directory? It sounds like you may not do...
Edit: or, you may have these Spring JARs in your development Tomcat's own lib dirs, that's why they're being found in dev but not on your live server.
Can you list all the jars from the WEB-INF/lib directory? You are missing some spring jars.
The latest version of spring is 3.0.5. If possible - upgrade both the JDK (to version 6) and tomcat (to version 6)
精彩评论