tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Wilhm" <>
Subject RE: How to auto start tomcat on boot of NT
Date Tue, 04 Apr 2000 12:55:00 GMT
I tried this, and it didn't want to run. It's mysterious to me whether or 
not I just wasn't hand editing the registry entrys right, or if it just 
doesn't work. (The Tomcat wrapper, that is... The test provided works fine.) 
Could be that I'm running on Win2K.

JSRVANY is a much better idea than the other options out there, which just 
seem to execute the batch files...

At the end of the day, I just wrote a service using MS Java (GASP!!) that 
invokes the Sun JVM via the System.Runtime and System.Process classes. (So, 
really I'm not using the MS JVM to run Tomcat.) This gave me the most 
usefulness... When Tomcat goes down, the service is reported as stopped. The 
service assassins also kill the process, in the event that calling the 
shutdown object provided by Apache doesn't work... So, basically, it gets 
killed if Tomcat doesn't hang itself up properly, which I haven't seen this 
in any of the other tomcat service wrappers. Also, the state is reported 
much more accurately. (Ie, it won't say the service is running when it's 
not. And it won't say that a service was killed unless it actually was. Big 
downfall of just using the batch files.)

If someone fixes the jsrvany tomcat wrapper, I think that offers the most 
promise, though.

>From: Damian Fauth <>
>Subject: RE: How to auto start tomcat on boot of NT
>Date: Wed, 05 Apr 2000 01:39:49 +1000
>you might want to have a look at jsrvany:
>Autoexec.bat isn't used by NT - it's just maintained for backward
>Normally you want to run background processes on NT as services.
>Tomcat doesn't run as a service - (I'm not sure if there are plans to do
>this in the future - it would be nice) but there is a tool you can use
>in the NT4 resource kit to allow you to run any program as a service -
>I'm not sure how well this would work with tomcat as I've never tried it
>- I suspect it won't work too well.....
>If you look through the tomcat.bat file you'll probably have to hardcode
>the envronmental variables and call tomcat straight from the java
>executable instead of using a batch file/
>The utility is called SRVANY.
>Good luck !
>      -----Original Message-----
>      From: Joel Hughes []
>      Sent: 03 April 2000 12:03
>      To: Tomcat-User (E-mail)
>      Subject: How to auto start tomcat on boot of NT
>      Where does one place calls to start tomcat during boot of a NT
>      I've tried autoexec.bat but this did not appear to work.  Since
>this will be running on a server, placing the bat in a
>      'startup' folder is not an option, as no one will be logged in.
>      Thanks.
>      Joel Hughes
>To unsubscribe, email:
>For additional commmands, email:

Get Your Private, Free Email at

View raw message