tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Isaacs <Larry.Isa...@sas.com>
Subject RE: $CATALINA_HOME/shared deprecated? [was Re: NoClassDefFoundErr or With Tomcat 4.0.2 and Xalan 2.3.1]
Date Tue, 09 Apr 2002 20:13:44 GMT
More acurately, $CATALINA_HOME/lib is the "shared" classloader
(there is no $CATALINA_HOME/shared directory).  It is the place
to put shared jars that you don't want to be visible to the
Catalina classloader.

I'm not sure whether "include $CATALINA_HOME/shared in the
classpath" is referring to the JVM's classpath or that classes
aren't visible to your web application.  They won't appear
on the JVM's classpath because Catalina builds the classloader
hierarchy at startup.  The JVM's classpath appears as part
of the "system" classloader in the diagram shown on the document
cited.

Cheers,
Larry

> -----Original Message-----
> From: Aditya [mailto:aditya@mighty.grot.org] 
> Sent: Tuesday, April 09, 2002 3:52 PM
> To: Tomcat Users List
> Subject: $CATALINA_HOME/shared deprecated? [was Re: 
> NoClassDefFoundError With Tomcat 4.0.2 and Xalan 2.3.1]
> 
> 
> 4.0.4-B2-01 doesn't seem to include $CATALINA_HOME/shared in 
> the classpath
> however the documentation still says that that's the place to 
> put local,
> shared jars:
> 
>   
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-h
> owto.html
> 
> Thanks,
> Adi
> 
> On Tue, Apr 09, 2002 at 01:38:27PM -0400, Larry Isaacs wrote:
> > Yes, it is a known issue for Tomcat 4.0.2 and 4.0.3. Putting
> > the jars in $CATALINA_HOME/lib or $CATALINA_HOME/common/lib
> > is the only workaround for these versions.  To get the bugfix,
> > you will need to upgrade to the nightly Tomcat 4.x or
> > Tomcat 4.0.4-b1, or later.
> > 
> > Cheers,
> > Larry
> > 
> > > -----Original Message-----
> > > From: Bryan Joyner [mailto:bjoyner@zixit.com] 
> > > Sent: Tuesday, April 09, 2002 1:21 PM
> > > To: tomcat-user@jakarta.apache.org
> > > Subject: NoClassDefFoundError With Tomcat 4.0.2 and Xalan 2.3.1 
> > > 
> > > 
> > > I'm getting a NoClassDefFoundError in a servlet when loading
> > > javax.xml.transform.Source. Im using Tomcat 4.0.2 and Xalan 2.3.1.
> > > xalan.jar and xml-apis.jar are both in my war file in the 
> WEB-INF/lib
> > > directory. I have worked around the problem  by putting 
> these jars in
> > > the $CATALINA_HOME/lib. But I don't want to have to do 
> this. Is this a
> > > known issues? 
> > > 
> > > Bryan Joyner
> > > Sr. Software Engineer
> > > ZixIt Corporation
> > > 
> > > Office: (214) 370-2027
> > > Fax: (214) 370-2073
> > > bjoyner@zixit.com
> > > To send email secure and certified, Just ZixIt!(tm) 
> > > zixmail(tm) is the most convenient way to add security to 
> > > your email. If
> > > you would like to add privacy, security and certified 
> receipts to your
> > > email, download zixmail(tm) from <http://www.zixmail.com>. 
> > > 
> > > 
> > > 
> > > --
> > > To unsubscribe:   
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> > > For 
> additional commands: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> > > Troubles with the list: 
> <mailto:tomcat-user-owner@jakarta.apache.org>
> > > 
> > 
> > --
> > 
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with 
> the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> > 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message