Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 18744 invoked from network); 18 Dec 2000 20:19:37 -0000 Received: from unknown (HELO ca-ns1.eyecatching.com) (64.148.26.125) by locus.apache.org with SMTP; 18 Dec 2000 20:19:37 -0000 Received: from smart911.com (IDENT:dmiller@[64.148.26.122]) by ca-ns1.eyecatching.com (8.9.3/8.8.7) with ESMTP id BAA24432 for ; Mon, 18 Dec 2000 01:05:45 -0800 Sender: dmiller@ca-ns1.eyecatching.com Message-ID: <3A3E715C.BE758D7@smart911.com> Date: Mon, 18 Dec 2000 12:19:40 -0800 From: David Miller X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: CLASSPATH precedence Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi, Two related questions regarding CLASSPATH precedence: (A) If I place the same *.jar files (same names but different versions) in both $TOMCAT_HOME/webapps/WEBAPP_A/WEB-INF/lib and in $TOMCAT_HOME/webapps/WEBAPP_B/WEB-INF/lib does the version of the *.jar files in WEBAPP_A or in WEBAPP_B take precedence? Or does it depend on which context I am in (i.e., which webapp tomcat is running). How does tomcat figure out which version of the *.jar files to use? Do classes loaded from one *.jar file get unloaded if I am running in a different context? (B) (similar question but for system *.jar files vs tomcat *.jar files): If I place the same *.jar files (same names but different versions) in both $TOMCAT_HOME/webapps/WEBAPP_A/WEB-INF/lib and in my system CLASSPATH which version of the *.jar files take precedence when I am running ? Any answers/information regarding these two questions is greatly appreciated, especially ones which shed some light on how tomcat figures out which version of classes to load. Thanks, -David-