differences between user libraries for Spring and jars in WEB-INF/lib
posted 4 years ago
I am using Eclipse JUNO, and I like to have user libraries, because when I'm creating a project I like to add just a user library (for example Hibernate 3.6 with sources) and BANG! Everything works fine.
The same I would like to do with SPRING 3 but there is a problem.
I would like to know, what can be a workaround in the following problem.
I am trying to do a SPRING 3 MVC tutorial and I discovered this things:
If i put this JAR's into /WEB-INF/lib my application works well
But if I create a Java USER LIBRARY and I add this to the classpath (the same JAR's!)
I added also the /WEB-INF/lib into Web Deployment Assembly
The server don't want to run, or if runs when I try to click on some action there is occured
Is there some workaround in this situation?
Why Tomcat/Glassfish don't want to accept those JAR's from java User Libraries?