tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Pease" <mpe...@chartermi.net>
Subject Re: Tomcat 4 as a service in Windows and Classpath Question
Date Thu, 03 Apr 2003 16:01:47 GMT
Here is some information on the program that creates the tomcat service in
Windows...
http://www.alexandriasc.com/software/JavaService/documentation.html

Mark

----- Original Message -----
From: "Longley, Andrew" <andrew.longley@mindflow.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Thursday, April 03, 2003 10:52 AM
Subject: RE: Tomcat 4 as a service in Windows and Classpath Question


What I've figured out is that you can hack the registry and modify the
java.class.path parameter.  Alternatively, there is a syntax for
installing the service where you can specify the classpath when you
install the service (or you could uninstall and re-install).

How to hack the registry: use regedit to edit key
HKLM\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters\JVM
Option Number 0

(assuming your service is called "Apache Tomcat 4.1" and that your JVM
Option Number 0 parameter data begins with -Djava.class.path...)

Double-click the parameter and edit the classpath at will.

How to install a new service: open a command prompt and use syntax

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

(all on one line, and obviously modifying the -Djava.class.path to
whatever you need but not losing the bootstrap.jar)

If you install multiple Tomcats on one box as services, you will need a
different server.xml file for each to specify different ports.  I
*believe* the syntax for this is to edit the service in the Services
control panel, and add an "Additional Parameter" of the form
-config conf\server.xml

Hope that helps.  If anyone else has more good information, please add.

Andrew Longley

-----Original Message-----
From: Ernesto Echeverria [mailto:ernestoe@integra.com.sv]
Sent: Thursday, April 03, 2003 8:40 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 4 as a service in Windows and Classpath Question

I've recently installed Tomcat 4.1 as a service in a Windows 2000
environment.

In Linux, if I ever need to extend the CLASSPATH variable, I can do that
easily in the scripts provided.

However, I'm not clear how to do this in Windows when Tomcat was
installed
as a service.

What is the correct way to extend CLASSPATH, and if the service needs to
be
reinstalled, what would be the command in order not to loose the default
settings, plus the extra paths?

Thanks in Advance.

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


Mime
View raw message