tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koes, Derrick" <Derrick.K...@smith-nephew.com>
Subject RE: Tomcat4, where is classpath set when run as service
Date Wed, 30 Jul 2003 20:46:46 GMT

You could rebuild your service.

instsrv.exe "Tomcat 4.1" REMOVE  //to remove the existing service

// build the service
"$CATALINA_HOME$\bin\tomcat.exe" -install "Apache Tomcat 4.1"
"$JAVA_HOME$\jre\bin\client\jvm.dll" -Xmx512m -Xms256m
-Djava.class.path="$CATALINA_HOME$\bin\bootstrap.jar"
-Djava.endorsed.dirs="$CATALINA_HOME$\common\endorsed"
-Dcatalina.home="$CATALINA_HOME$" -start
org.apache.catalina.startup.BootstrapService -params start -stop
org.apache.catalina.startup.BootstrapService -params stop -err
"$CATALINA_HOME$\logs\stderr.log"

replacing $CATALINA_HOME$ and $JAVA_HOME$ where appropriate.

Do you REALLY want to do this?  If you are just adding these to run your web
app, include them in your web apps war file.  Another possibility is to put
them in common/lib or server/lib or shared/lib.

-----Original Message-----
From: Paul [mailto:paul@msci.ca] 
Sent: Wednesday, July 30, 2003 4:39 PM
To: Tomcat Users List
Subject: Re: Tomcat4, where is classpath set when run as service

Hi John,
   thanks for reply.  How would one go about adding .jar or .zip files to
the classpath given it is created as you say when tomcat starts as a win2k
service?

paul lomack


----- Original Message ----- 
From: "John Turner" <tomcat-user@johnturner.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Wednesday, July 30, 2003 3:47 PM
Subject: Re: Tomcat4, where is classpath set when run as service


>
> It isn't.
>
> Tomcat 4.1 uses the CATALINA_HOME and JAVA_HOME environment variables
> (defined at the System level) to build a classpath at startup.
>
> John
>
> Paul wrote:
>
> > Hi Folks,
> >
> > Does anyone know where the classpath is set for Tomcat 4.1, when Tomcat4
is started and runs as a win2k service?
> >
> > thanks in advance for any help,
> > paul lomack
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

---------------------------------------------------------------------
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