tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: AW: servlets classpath
Date Mon, 21 Jan 2002 21:06:41 GMT


On Mon, 21 Jan 2002, Michael Remme wrote:

> Date: Mon, 21 Jan 2002 22:04:42 +0100
> From: Michael Remme <mremme@braintags.de>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> Subject: AW: servlets classpath
>
> Yes, i read that. But as far as i understood, this is giving me information
> about the structures of the different classloaders. What i did not find, was
> an explanation on how i can attach the classpath of one webapp, but conform
> to the jsdk and not tomcat-specific.
>

Sorry ... assumed you had also read the servlet spec
(<http://java.sun.com/products/servlet/download.html), which tells you
that the web app automatically sees classes loaded from WEB-INF/classes
(and from JAR files in WEB-INF/lib) of the web application.  Note that
this is *not* done with a CLASSPATH environment variable, because the set
of classes visible to each webapp is unique (they each have their own
class loader).

Craig


> > -----Ursprüngliche Nachricht-----
> > Von: Craig R. McClanahan [mailto:craigmcc@apache.org]
> > Gesendet: Montag, 21. Januar 2002 21:59
> > An: Tomcat Users List
> > Betreff: Re: servlets classpath
> >
> >
> >
> >
> > On Mon, 21 Jan 2002, Michael Remme wrote:
> >
> > > Date: Mon, 21 Jan 2002 20:05:56 +0100
> > > From: Michael Remme <mremme@braintags.de>
> > > Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> > > To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> > > Subject: servlets classpath
> > >
> > > Hi all,
> > >
> > > i am running a servlet in tomcat 4 and need to use the
> > classpath, which is
> > > representing the libs and classes of the webapp. Using
> > > System.getProperty("java.lang.classpath") is returning "...ApacheTomcat
> > > 4.0\bin\bootstrap.jar", which is not helping really here.
> > >
> > > Does anybody know, how i can solve that?
> > >
> >
> > http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
> >
> > > best, michael
> > >
> > > Virengeprüft vom G DATA AntiVirenKit
> > >
> >
> > Craig
> >
> >
> > --
> > 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>
> >
> >
>
> Virengeprüft vom G DATA AntiVirenKit
>
>
> --
> 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