Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

libraries not found!

 
Simon Joseph Aquilina
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where, exactly, did you put the libraries/class files?
 
Simon Joseph Aquilina
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic