tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: RE: Can't find jars in webapps/WEB-INF/lib
Date Tue, 08 Aug 2000 08:51:08 GMT
I don't know what happening here but in my case all is working properly. I'am using Tomcat3.2b2
on NT4.0 and Linux with oracles classes12_01.jar driver.

May be other jar's like visibroker using other dynamic classloading mechanisms based on the
DefaultClassLoader and not on Tomcats ClassLoader. So they cannot be loaded properly from
web-inf/lib dir because the DefaultClassLoader cannot see the classpath of the webapplication.


>I would have tried this, except the jar files don't >work properly

-----Original Message-----
Sent: Saturday, August 05, 2000 6:42 AM
Subject: Re: Can't find jars in webapps/WEB-INF/lib

Try to rename the .zip into a .jar file. That should work.
Like --> classes12_01.jar. 
bye horst

> Same problem here.  I use also the same workaround (copying the zip
> Oracle under /tomcat/lib).

> My config is: Win 2000 (but also tried under Win NT and Linux); Sun
> 1.2.2 with JIT enabled; Tomcat 3.1 ).

> - Jakob

> Andrew Jarman wrote:
>> Hi,
>> This seems like a really stupid question, but I've been fighting it
>> hours:
>> I have put together a servlet, along with some required jar files
>> the following dir structure:
>> ROOT/WEB-INF/lib/*.jar
>> ROOT/WEB-INF/web.xml
>> The lib/*.jar includes the servlet classes and some other associated
>> classes.  This includes the vbjorb.jar and others so my servlet can
>> access an oracle database.
>> When I try to load the servlet this way, by servlet starts
>> (so I know that the servlet jar file was found), but the init()
>> fails because it can't load all the necessary classes.
>> If I copy all of the jar files to the /tomcat/lib directory and
>> tomcat, everything works fine.
>> All of the docs seem to indicate that jar files placed in the
>> WEB-INF/lib directory would be added to the CLASSPATH for the
>> application.
>> What am I doing wrong?
>> Assuming somebody helps me figure this out, can I also put .zip files
>> the WEB-INF/lib dir?  (for example, for Oracle)
>> Cheers,
>> Andrew

View raw message