tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raghu Havaldar <>
Subject RE: jar's still not picked up in WEB-INF/lib
Date Wed, 01 Nov 2000 15:42:02 GMT
I think u misread me a bit.
I would NOT recommend putting them under $TOMCAT/lib. 
However, their right place is (as the doc suggests) in
I have not yet looked at load-balancing issues. But, they
are another beast (for upgrades and such).

-----Original Message-----
From: Bill Pfeiffer []
Sent: Wednesday, November 01, 2000 9:28 AM
Subject: Re: jar's still not picked up in WEB-INF/lib

Aside from the fact that it does not work in certain situations, why would
you think it is not a good idea to put your app specific libs under the
WEB-INF\lib directory.  
The spec says to do it.  It allows for good application orginization.  What
would be your arguments against it?
Actually I can think of one argument against it, and that is that by
including your libs in the classpath instead, you can control the order of
the classpath.  It appears that using the libs directory would allow for
random ordering (based on OS directory ordering) of these libs.  Also, I
need to include zip files and these don't get picked up anyway.  Maybe using
the classpath is the way to go.
Bill Pfeiffer
----- Original Message ----- 

From: Raghu Havaldar <>  
To: ''
Sent: Wednesday, November 01, 2000 9:34 AM
Subject: RE: jar's still not picked up in WEB-INF/lib

The Context setup is for the web-app.
I do not think it is a good idea to put app-depedent
libs under $TOMCAT/lib. 
Just for experimentation, I tried placing the JARs under
$TOMCAT/lib and $TOMCAT/webapps/web-inf/lib.  Does
not work.
Tried with 3.1 and 3.2beta6 on WinNT 4.0. 

-----Original Message-----
From: Leon Palermo [ <> ]
Sent: Wednesday, November 01, 2000 7:31 AM
Subject: Re: jar's still not picked up in WEB-INF/lib

I would definitely set up a context in server.xml like this:
<Context path="/Oasis"
 reloadable="true" >
That should solve you problem.  Otherwise, just put the .jar files in the
D:\Java\jakarta-tomcat\lib directory.  Then the jars would be available for
all applications served by tomcat.
Leon Palermo
Zedak Corporation
Valhalla, NY

----- Original Message ----- 
From: Bill Pfeiffer <>  
To: Tomcat <>  
Sent: Wednesday, November 01, 2000 8:13 AM
Subject: Re: jar's still not picked up in WEB-INF/lib

I am experiencing the same problem that others have reported on this topic.
I explicitly set my Tomcat classpath to be sure of no redundancies in the
jars.  I have a Tomcat startup batch file with one line that adds in all the
jars in my WEB-INF\lib to the classpath explicitly.  When I comment that
line out, I get the classnotfound errors.  When I put it back in, my web app
runs fine.  Obviosly I want the line commented out and have the jars picked
up in the lib dir, but that aint happening.
Because the jars work when explicitly included in the classpath, I conclude
that the jars are not corrupt.  I also conclude, based on commenting out the
explicit lib jars classpath, that there are not redundant jars in the
classpath.  I have also checked other sources for possible classpath jar
redundancies and I am just not finding any.
 I am running under Win2000 using jdk1.3.  
These is the exact dir structure I have set up:
I have gone through Craig McClanahans list of things to check and all seems
to be as it should.
Any hope for a fix?  Should I continue to look at my config?  I have heard
some people talk about setting up an explicit context for the app in the
server.xml.  Does this solve the problem consistantly?
Bill Pfeiffer

View raw message