File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat on Solaris, common/lib problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat on Solaris, common/lib problem" Watch "Tomcat on Solaris, common/lib problem" New topic

Tomcat on Solaris, common/lib problem

Jason Stortz
Ranch Hand

Joined: Jan 11, 2001
Posts: 68
I have added several jar files to common/lib and they seem to load fine, but when I add a third the classes that are in it are not being found, and the result is NoClassDefFound errors.
When I unpack the jar into the classes directory instead of putting the jar i the common/lib it seems to work fine.
Anyone seen this before? The jar not being found is rather large compared to the rest, about 8.5 megs.
OS: Solaris 8
Tomcat: 4.x
J2SE: 1.3.1_03
Thanks Guys and Gals!
Chris Reeves
Ranch Hand

Joined: Apr 03, 2002
Posts: 95
You can also try dropping these jar files in the WEB-INF/lib directory of your webapp:
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

I don't think that common/lib is intended for application support classes - there's a separate lib directory where I put my database support jars, at least. For app-specific jars, the webapp's WEB-INF/lib directory is what you should be using - otherwise you won't deploy properly should you move to another appserver - not even a Tomcat 3 one.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Tomcat on Solaris, common/lib problem
It's not a secret anymore!