Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using jar files in tomcat on linux

 
Steve Holmes
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Steve Holmes
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic