GeeCON Prague 2014*
The moose likes Servlets and the fly likes Need help on servlet on Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Need help on servlet on Tomcat" Watch "Need help on servlet on Tomcat" New topic
Author

Need help on servlet on Tomcat

Mike Dafel
Greenhorn

Joined: Jul 12, 2001
Posts: 10
I am trying to deploy a servlet on Tomcat 3.2.2. The servlet uses an instance of another class which in turn uses a JAR file. My question is - where should I keep the .class file and the JAR file on Tomcat? Also, do I need to change my classpath also? My other servlets are running fine but they do not involve anyother classes.
An early reply would be appreciated.
Thanks.
Venugopal nandikolla
Greenhorn

Joined: Feb 02, 2001
Posts: 22
Hi,
Keep your classes in ../war/web-inf/classes dir and your jar files in ../war/web-inf/lib dir. set your classpath as per your requirement before starting your Tomcat.
venu
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"Mike D",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
GeeCON Prague 2014
 
subject: Need help on servlet on Tomcat