File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need help on servlet on Tomcat

 
Mike Dafel
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6920
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic