Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes Using jar files in tomcat on linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Using jar files in tomcat on linux" Watch "Using jar files in tomcat on linux" New topic
Author

Using jar files in tomcat on linux

Steve Holmes
Greenhorn

Joined: Nov 01, 2000
Posts: 19
I've been trying to figure out how to use jars in tomcat on Linux. The documentation states that if you place the jars tomcat/lib directory they will automatically be placed in the classpath. According to an o'reilly tutorial:
http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html?page=1
jar files should be placed in the web-inf/lib directory of the application. Which is right? If both ways work is there an advantage either way?
------------------
Phil Hanna
Ranch Hand

Joined: Apr 05, 2001
Posts: 118
tomcat/lib jars are available to all web applications in the VM; foo/WEB-INF/lib jars are available only to servlets in the "foo" web application.
------------------
Phil Hanna
Sun Certified Programmer for the Java 2 Platform
Author of :
JSP: The Complete Reference
Instant Java Servlets
Website: http://www.philhanna.com


Phil Hanna<BR>Sun Certified Programmer for the Java 2 Platform<BR>Author of :<BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072127686/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">JSP: The Complete Reference</A><BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072124253/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">Instant Java Servlets</A>
Steve Holmes
Greenhorn

Joined: Nov 01, 2000
Posts: 19
Thanks Phil...Does your book talk about configuring Tomcat with Apache by any chance? I haven't been real happy with the docs.
Thanks again!
 
jQuery in Action, 2nd edition
 
subject: Using jar files in tomcat on linux
 
Similar Threads
Help needed in Tomcat
Web Application Deployment
running servlet
to create login.jsp
Help needed in Tomcat