This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes libraries not found! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "libraries not found!" Watch "libraries not found!" New topic
Author

libraries not found!

Simon Joseph Aquilina
Ranch Hand

Joined: Feb 14, 2006
Posts: 102
Hi,


I have developed a simple web application using spring with tiles. I have deployed the application on tomcat (5.5.17) however it gives me a HTTP Status 500! The exception seem to be related with a class not found:



However this library and class can be found in my War file under the WEB-INF folder.

Now I remember I had such a problem with JBoss as well, because JBoss was searching that library in the shared folder rather then the War File itself. Back then I just added jboss-web.xml with the following xml so that it loaded all required libraries from the WAR file and only load unfound libraries from the shared folder.



My question is; do I need to do something the same for Tomcat as well. Since the library he is complaining about can be found in the WAR file already!

Thanks and Regards,
Sim085
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Where, exactly, did you put the libraries/class files?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Simon Joseph Aquilina
Ranch Hand

Joined: Feb 14, 2006
Posts: 102
My libraries can all be found in my War file. The War file name is myapp.war, and he libraries can be found in it like this:

myapp.war/WEB-INF/lib/<my other jar files>

Regards,
Sim085
 
Don't get me started about those stupid light bulbs.
 
subject: libraries not found!