I think the point is probably that bootstrap dynamically loads the other
necessary classes at runtime, but uses the conf files to do so. I'm pretty
sure that the startup scripts setup the classpath the way they want them,
ignoring your system classpath, except to restore it at shutdown. Granted,
I haven't looked into this exhaustively (and am not a Tomcat guru) but I
don't think running as a service does anything differently with the
classpath. The docs call for putting classes needed at runtime in
webapps\{app-home}\WEB-INF\classes, and
webapps\{app-home}\WEB-INF\lib for jars
unless it needs to be shared by other apps, then in:
$CATALINA_HOME/common/classes, and
$CATALINA_HOME/common/lib directory for jars.
Does this get at the problem?
Geoff
-----Original Message-----
From: Marcel Stoer [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 4:34 PM
To: [EMAIL PROTECTED]
Subject: Re: TC4 classpath when NT_Service
> > Hi all
> >
> > Which classpath does TC4 use when it's started as the (default) NT
> Service?
> > The one specified in catalina.bat or the one in the system env? Got a
> > NoClassDef found Exception when asking for a class that is in my system
> env
> > classpath from a servlet.
>
> None of them, actually. The classpath used is specified in the Windows
> registry.
> HKLM/SYSTEM/CurrentControlSet/Services/Apache Tomcat/Parameters/JVM Option
> Number 0
>
> Remy
>
that would then be $Catalina_Home/bin/bootstrap.jar??? As classpath?? What
about all the other classes required from the JRE?