File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Need help on servlet on Tomcat

Mike Dafel

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.
Venugopal nandikolla

Joined: Feb 02, 2001
Posts: 22
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.
Frank Carver

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 . 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.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Need help on servlet on Tomcat
It's not a secret anymore!