tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paresh Deshpande <pare...@india.triviumsys.com>
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
WEB-INF\classes
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
WEB-INF\classes
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?
paresh

-----Original Message-----
From: Rob S. [mailto:rslifka@home.com]
Sent: Friday, August 17, 2001 5:00 PM
To: tomcat-user@jakarta.apache.org
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:

http://jakarta.apache.org/tomcat/index.html

- r

> -----Original Message-----
> From: Paresh Deshpande [mailto:pareshd@india.triviumsys.com]
> Sent: Friday, August 17, 2001 1:14 AM
> To: tomcat-user@jakarta.apache.org
> 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
> >
>



Mime
View raw message