You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Larry Isaacs <La...@sas.com> on 2002/04/09 22:13:44 UTC
RE: $CATALINA_HOME/shared deprecated? [was Re: NoClassDefFoundErr
or With Tomcat 4.0.2 and Xalan 2.3.1]
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:
> <ma...@jakarta.apache.org>
> > > Troubles with the list:
> <ma...@jakarta.apache.org>
> > >
> >
> > --
> >
> To unsubscribe: <ma...@jakarta.apache.org>
> > For additional commands:
> <ma...@jakarta.apache.org>
> > Troubles with
> the list: <ma...@jakarta.apache.org>
> >
>
> --
> To unsubscribe: <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
Re: $CATALINA_HOME/shared deprecated? [was Re: NoClassDefFoundErr or With Tomcat 4.0.2 and Xalan 2.3.1]
Posted by Aditya <ad...@mighty.grot.org>.
On Tue, Apr 09, 2002 at 04:13:44PM -0400, Larry Isaacs wrote:
> 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.
okay, then the documentation at the URL below needs to be updated to reflect
that. At the bottom of the document is a list of repositories tomcat looks in
at startup and $CATALINA_HOME/lib is not listed....
> 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.
I was referring to the Catalina "built" classpath as per the
$CATALINA_HOME/bin/setclasspath.sh script
Thanks,
Adi
> 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:
> > <ma...@jakarta.apache.org>
> > > > Troubles with the list:
> > <ma...@jakarta.apache.org>
> > > >
> > >
> > > --
> > >
> > To unsubscribe: <ma...@jakarta.apache.org>
> > > For additional commands:
> > <ma...@jakarta.apache.org>
> > > Troubles with
> > the list: <ma...@jakarta.apache.org>
> > >
> >
> > --
> > To unsubscribe: <ma...@jakarta.apache.org>
> > For additional commands: <ma...@jakarta.apache.org>
> > Troubles with the list: <ma...@jakarta.apache.org>
> >
>
> --
> To unsubscribe: <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>