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 12973 invoked from network); 2 Sep 2003 12:35:48 -0000 Received: from unknown (HELO relay.pair.com) (209.68.1.20) by daedalus.apache.org with SMTP; 2 Sep 2003 12:35:48 -0000 Received: (qmail 16712 invoked from network); 2 Sep 2003 12:35:40 -0000 Received: from unknown (HELO johnturner.com) (207.86.123.243) by relay.pair.com with SMTP; 2 Sep 2003 12:35:40 -0000 X-pair-Authenticated: 207.86.123.243 Message-ID: <3F548E9C.7030001@johnturner.com> Date: Tue, 02 Sep 2003 08:35:40 -0400 From: John Turner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: $CATALINA_HOME/shared/lib is Ignored, Doc Grip References: <000b01c370f1$98303030$d9ddf80c@ABNER> In-Reply-To: <000b01c370f1$98303030$d9ddf80c@ABNER> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N FAQ/archives (at least weekly if not daily) NoClassDefFoundError != ClassNotFound John Tony LaPaso wrote: > Hi all, > > I'm seeing behavior that seems contrary to the TC Documentation (seems to > happen a lot). > > I'm running TC 5.0.9 on Win 2k, J2SDK 1.4.2_01. > > I have some JAR files (for JavaMail) in the $CATALINA_HOME/shared/lib > directory. I expect my web app will be able to use classes out of these JARs > with no problem. Unfortunately, I get a NoClassDefFoundError when refering > to classes in these JARs. > > If I move the JAR files to the $CATALINA_HOME/common/lib directory, however, > the classes are found with no problem. > > According the (often innacurate) Tomcat documention, the > $CATALINA_HOME/shared/lib should be searched. > > See: > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html > > Does anyone have an explanation for why $CATALINA_HOME/shared/lib is not > being searched? And just what the heck is the difference between > $CATALINA_HOME/shared/lib vs. $CATALINA_HOME/common/lib?? > > > The TC documentation refers to a directory, "$CATALINA_HOME/lib" and says > that the following JARs are located there: jasper-compiler.jar, > jasper-runtime.jar and naming-factory.jar. This is just another example of > the shoddy TC documentation. These JAR files are all located in > "$CATALINA_HOME/common/lib". In fact, "$CATALINA_HOME/lib" doesn't even > exist! > > > Thanks! > > Tony > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >