> -----Original Message-----
> From: Xiao Juguang [mailto:[EMAIL PROTECTED]] 
> Sent: 13 March 2002 07:25
> To: Tomcat Users List
> Subject: Re: How to run tomcat as service program in Win2k
> 
> 
> I think you are careless when installing. There is an option 
> to make Tomcat as Windows NT Service.
> 

I've got to admit I missed it too, but found instructions later:

Enter the following at a command prompt (it's all one line, but I've added
carriage returns here for legibility):

"%CATALINA_HOME%\bin\tomcat.exe"
 -install Tomcat 
"%JAVA_HOME%\jre\bin\classic\jvm.dll" 
 -Djava.class.path=
"%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar"
 -Dcatalina.home="%CATALINA_HOME%"
 -Xrs 
 -start org.apache.catalina.startup.Bootstrap -params start 
 -stop org.apache.catalina.startup.Bootstrap -params stop 
 -out "%CATALINA_HOME%"\logs\stderr.log

I got these instructions from a URL posted here recently - a search of the
archives should show it up.  The only change I had to make was the path to
jvm.dll - I'm using JDK1.2.2 and had to change to "...jre\bin\classic\..."
from "...jre\bin\hotspot\...".

Incidentally, and this is probably my ignorance showing here, I can start
the service fine, but it spews an error when I shut it down (though it shuts
down fine apart from the error).  Does anyone have any idea what I've done
wrong?

Cheers
John

--
John Niven
Please reply through mailing list

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to