I just spent most of yesterday trying to set Tomcat up as a service that
wouldn't die when you log off. The solution I found (with the help of others
on the list) was to use JDK1.3.1 but you have to make sure that you read
this document: http://java.sun.com/j2se/1.3/relnotes.html

There it is stated that:

Bug 4323062: Any Windows NT Service embedding Java VM aborts when user logs
out 
This bug has been fixed in J2SDK 1.3.1. *******In order to enable the fix,
the -Xrs command-line option must be passed to the JVM. The additional
command line argument is necessary because the fix necessarily disables the
J2SDK 1.3 shutdown hooks mechanism and forbids the use of the
sun.misc.Signal class*******.

So you do download jdk1.3.1, do exactly what the Tomcat user guide says to
do to set up tomcat as an NT service. The only additional thing you need to
do is add the option -Xrs to the last line of wrapper.properties (as well as
changing the tomcat_home and java_home as you are instructed in the
userguide). 


Tim Hughes

Cap Gemini Ernst & Young
Sandbrugt. 5-7
Postboks 3950, Dreggen
5835  Bergen
Norway

> Tel:     +47 55 90 66 24 / +47 48 10 06 38  
> Email: [EMAIL PROTECTED]
Web:   http://no.cgey.com



-----Original Message-----
From: Alexandre Bouchard [mailto:[EMAIL PROTECTED]]
Sent: 7. juni 2001 01:59
To: [EMAIL PROTECTED]
Subject: I need an advice to make Tomcat a NT service


At business, they were using IIS running on NT4 with ASP as the scripting
language... until I arrived :)  With the help of this mailing list's archive
and users, I set up a JDBC-ODBC bridge, and I make IIS give Tomcat the JSP
job (no more ASP ! relief !).

Now, all I have to do is to make Tomcat a NT service so that when the server
administrator logs off, the server will still run. I am using java version
1.3, and I faced the bug #4323062. I read the information available at the
url:
http://developer.java.sun.com/developer/bugParade/bugs/4323062.html
and I saw many solutions proposed. What I need is a simple-to-setup, yet
reliable, solution. Bill Giel's solution seems good for me. Should I use it?
Is it simple enough?

So I need feedbacks from people who installed successfully Tomcat as a
service that do not die if the user logs off. How did you avoided the bug?
What solution did you used? Was that simple to setup? And how reliable is
your server now?

Thx

Alexandre Bouchard,
Intranet administrator
Bell

Reply via email to