tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Willis" <>
Subject RE: .jar files in the lib directory
Date Mon, 27 Mar 2000 14:50:01 GMT
The problem seems to be that the code to load the jars out of the lib
directory doesn't check to see if that directory is absolute.  The work
around that I've found is in the server.xml file, specify an absolute path,
not a relative path for your docBase property for a context entry.

If you are interested, the link to the code fix is at


-----Original Message-----
From: Kyle Cordes []
Sent: Friday, March 24, 2000 9:04 PM
Subject: Re: .jar files in the lib directory

It's a known bug in 3.1, it's in the bug database several times.

----- Original Message -----
From: "Kabriel Robichaux" <>
To: <>
Sent: Friday, March 24, 2000 1:04 PM
Subject: .jar files in the lib directory

> According to what documentation i have seen (such as the Servlet Spec)
> Servlet engine is supposed to automatically look for any classes it
needs in
> all jar files in the /lib directories of any web apps (contexts). I
have a
> simple web app that contains a Servlet class in the /classes directory
and a
> util.jar in the /lib directory of my /simpleapp context. For some
reason (a
> reason i hope someone in this group can point out) the Servlet engine
is not
> finding any of my classes that are in the util.jar file. If i include
my jar
> file in the system classpath then everything works correctly. The way
> understand it anything in the /lib dir should be loaded automatically
> without having to be included on the system classpath. Is this
correct? Is
> there a way to get Tomcat to do this correctly? or is this a
> that has not yet been fixed/implemented ?
> Any help would be greatly appreciated. Thank you.
> ....
> Kabe
> ----------------------------------------------------------------------
> To unsubscribe, email:
> For additional commmands, email:

To unsubscribe, email:
For additional commmands, email:

View raw message