Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 924 invoked by uid 500); 7 Aug 2001 17:49:48 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 904 invoked from network); 7 Aug 2001 17:49:47 -0000 Received: from h32.sny.collab.net (HELO icarus.apache.org) (64.208.42.42) by h31.sny.collab.net with SMTP; 7 Aug 2001 17:49:47 -0000 Received: (qmail 60103 invoked by uid 1059); 7 Aug 2001 17:48:05 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 7 Aug 2001 17:48:05 -0000 From: "Craig R. McClanahan" X-Sender: craigmcc@localhost To: "'tomcat-user@jakarta.apache.org'" Subject: RE: Moving /WEB-INF/lib or adding to it in TC 4.0 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N On Tue, 7 Aug 2001, James, Stuart wrote: > so what is the best option.... > > where should you place database jar's, ibm queue jar's etc..., surely > you would not copy them into your applications web-inf area? > additionaly I would not want them in the tomcat classpath? > > what is the prefered solution ? > > I need to consider that more than the web server mayuse the jar files > so I do not want to copy them into the web server area, additionaly I > don't like the idea of changing the supplied tomcat.sh or the global > CLASSPATH environment. > > Can you not add .jars to the application configuration ? > What do do depends on the visibility your JAR needs: * To make a JAR file available to a single web app only, put it in the /WEB-INF/lib directory of that webapp. * To make a JAR file available to all web apps, put it in the $TOMCAT_HOME/lib directory. These JAR files automatically get added to the CLASSPATH (for 3.2) or placed in a parent classloader (4.0), so that they are visible to all of your apps. You never have to mess with CLASSPATH. Craig