tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Turner <tomcat-u...@johnturner.com>
Subject Re: $CATALINA_HOME/shared/lib is Ignored, Doc Grip
Date Tue, 02 Sep 2003 12:35:40 GMT

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??
> 
> <angry-gripe>
> 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!
> </angry-gripe>
> 
> Thanks!
> 
> Tony
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 



Mime
View raw message