Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat and libraries

 
Jerome Chauveau
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Jerome Chauveau
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic