tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Beem Rickey L (Rick) CNIN" <>
Subject RE: NT Service dies on logout?
Date Wed, 19 Jul 2000 20:09:33 GMT
I still dissagree.  Microsoft's Service API docs. specifically state that
the console logoff event (CTRL_LOGOFF_EVENT) should be ignored for services,
otherwise the process will terminate.  I've worked with the jk_nt_service
source code and it is a problem with jk_nt_service and not the JDK.  No
matter how many people think it's a JDK bug, does it make it so.  I think
Sun is going to have the Win32 JDK handle the logoff event so it's no longer
an issue.  They're probably tired of hearing about it and will provide a
workaround for buggy service handlers.  Originally Sun said it wasn't a bug
and closed it but with 436 votes in the bug database I'm sure they want to
close the issue.

Either way the problem should get fixed and it's a good thing Sun is good
enough to provide workarounds for other people's buggy code.

-----Original Message-----
From: Nacho []
Sent: Wednesday, July 19, 2000 2:06 PM
To: ''
Subject: RE: NT Service dies on logout?

Sorry, i dont want to polemize but it's a bug in JDK as sun has
recognised and 434 persons has voted, may be there are a workaround
using JNI..., but is a bug on JDK.

Saludos ,
Ignacio J. Ortega

> -----Mensaje original-----
> De: Beem Rickey L (Rick) CNIN []
> Enviado el: miƩrcoles 19 de julio de 2000 20:44
> Para:
> Asunto: RE: NT Service dies on logout?
> jk_nt_service does not work with JDK 1.3.  This is NOT a JDK 
> problem as many
> people seem to think.  It's a problem with jk_nt_service not 
> ignoring the
> logoff console event (CTRL_LOGOFF_EVENT).  JNT at
> is working for me until 
> jk_nt_service is
> fixed.
> I grabbed the source to see if I could fix the problem, and modified
> jk_nt_service to ignore the logoff event, but there's another issue.
> jk_nt_service runs Tomcat in a seperate process.  Because of 
> this I can get
> jk_nt_service to ignore the event but not the Tomcat process.
> I think jk_nt_service can be fixed by ignoring the logoff 
> event and using
> JNI to start a virtual machine in the same process instead of 
> creating a new
> process.
> -----Original Message-----
> From: []
> Sent: Wednesday, July 19, 2000 9:01 AM
> To:
> Subject: NT Service dies on logout?
> Has anybody here had more luck with the jk_nt_service.exe 
> than I had? At first, it seems to work just fine, but as 
> soon as I log out, the service is stopped (dies?).
> I'm using JDK1.3 on NT 4.0 SP6a, and Tomcat itself works 
> fine when started as a service. Still, on logging out the
> service (jk_nt_service.exe _and_ java.exe) dies...
> Any tips on what to do?
> np: Autechre - Draun Quarter (Envane)
> ---------------------------------------------------------------------
> Sent through MailGateway -
> Send or read your emails anywhere.
> ---------------------------------------------------------------------

View raw message