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? ------------------
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>
Joined: Nov 01, 2000
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!