*
The moose likes Tomcat and the fly likes Tomcat and libraries Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat and libraries" Watch "Tomcat and libraries" New topic
Author

Tomcat and libraries

Jerome Chauveau
Greenhorn

Joined: Nov 14, 2005
Posts: 5
Hello.

My webapp uses jar files, which I put in WEB-INF/lib directory.
It works fine when I use Tomcat5.exe.
But when I use Tomcat5w.exe, it does not find the libs anymore (NoClassDefFound error).

Thnaks in advance for your help.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I haven't seen this problem.
What kind of libraries are they, JDBC drivers?

Have you double checked that they have ".jar" extensions?
Sometimes Windows hides file extensions for 'known' file types.
Did you compare the checksums with the originals to make sure your jars haven't been corrupted?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Jerome Chauveau
Greenhorn

Joined: Nov 14, 2005
Posts: 5
Thx for reply.

They are jar files. They seem to be OK, for the application works perfectly when I launch Tomcat via tomcat.exe. It just doesn't work when I launch Tomcat as a service.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Do any of the operations done by the classes in these libs need special permissions (access to shared resources on other machines)? Applications started as services are usually run under a different user.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat and libraries
 
Similar Threads
continue statement...
isolation-level and ordering-number
to Inclue jsp page in another using jsf
To Ajax or Not
Statement and PreparedStatement