tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paresh Deshpande <>
Subject RE: problem in loading jar files in WEB-INF\lib directory
Date Fri, 17 Aug 2001 11:49:12 GMT
Hi Rob, 
thanks for your reply, Rob. I was waiting for the reply for quite a while
It is not specifically mentioned in the docs how the class files in
are loaded. Neither is it mentioned whether the jar file in the
WEB-APP\lib folder will be automatically picked in classpath. 
If I do not provide anything (jar or WEB-INF\classes) from my web
application folder,
kind of strange problem occurs in which the servlets get loaded from
directory, but when I try to cast a particular resource from JNDI to my
class (
placed in the same WEB-INF\classes folder), I get class cast exception
error. Tomcat 
does not find the class. How can I solve this problem?

-----Original Message-----
From: Rob S. []
Sent: Friday, August 17, 2001 5:00 PM
Subject: RE: problem in loading jar files in WEB-INF\lib directory

Sounds like you could learn a lot from reading the Application Developer's
Guide that comes packaged with tomcat in the /doc directory.  It's also
available online at:

- r

> -----Original Message-----
> From: Paresh Deshpande []
> Sent: Friday, August 17, 2001 1:14 AM
> To:
> Subject: problem in loading jar files in WEB-INF\lib directory
> > Hi,
> >
> > I am trying to run my application on APACHE with TOMCAT servlet
> engine. I
> > have placed the jar files required for web
> > application in myapp\WEB-INF\lib folder. Will tomcat
> automatically pick up
> > this jar file? Or do I need to add them manually
> > in tomcat.bat?
> >
> > Further, do I need to add myapp\WEB-INF\classes in the classpath? Who
> > takes care of the classes in this folder?
> >
> >
> greetings
> > Paresh
> >

View raw message