RE: Jakarta Tomcat NT service stopping itself
I tried the JRE 1.2.2_007 and everything works fine. You are able to logon and logoff without stopping the service. Today I tried the JRE 1.3.1 because I thought the bug has been fixed (I checked this on the Beta Release - it works fine too). But the Service stopped if someone logs out. After reading a while I found a flag for the java.exe: -Xrs This flag fixes the bug. (but you can't use the system signals anymore!) To switch this flag on, you have to edit the wrapper.properties and add the -Xrs flag to the commandline at the end of the file: [snip]-- # This is the command line that is used to start Tomcat. You can *add* extra # parameters to it but you can not remove anything. # wrapper.cmd_line=$(wrapper.javabin) -Xrs -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) -home $(wrapper.tomcat_home) [snap]-- With these changes everything works fine again - even on JRE 1.3.1 Hope this helps someone bye Andreas
RE: Jakarta Tomcat NT service stopping itself
This is a known problem and it is due to a problem in the Sun JDK. You can find more info on this from the Sun site if you search for NT + service. To get around the problem, you could use the JavaService.exe service wrapper which is provided free from Alexandria Consulting's site. JavaService.exe works fine with JDK 1.3.1. -Original Message- From: Tim Hughes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 10:09 AM To: [EMAIL PROTECTED] Subject: Jakarta Tomcat NT service stopping itself I have just set up Tomcat to run as an NT service (carefully following the how to from the doc). Everything works fine while I am logged on to the machine that I have set the service up on i.e. I can connect up from a client and request servlets and jsps. However, when I log off from the server it appears that the service is stopping, Tomcat will not service requests. This is confirmed by the fact that when I log back on again, the service has been stopped. When I look in Control Panel\Services, the tomcat service is set up exactly the same way as other services and these services work fine (whether I am logged on to the server or not). Any suggestions on what might be the problem? Tim. Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
RE: Jakarta Tomcat NT service stopping itself
Your problem is not reading the mailing list archives. This morning several people were discussing this issue. The problem is a bug in Sun's 1.3 JVM on NT handles the user logoff event incorrectly. Sun has reported this fixed in the 1.3.1 version and several users here had confirmed it, but today someone indicated that the fix wasn't working for them. I would suggest (besides putting a little effort into your investigation before asking questions) downgrading your JVM to the latest 1.2 (since earlier versions have threading issues). Also, there exists wrappers around the JVM that trap this logoff event and don't pass it to the JVM (called JavaService.exe), but I would suggest going with a plain JVM with no wrapper unless you really need 1.3 and find that 1.3.1 doesn't work for you. (Why introduce more layers with more complexity and the possibility of more bugs when its not needed.) Randy -Original Message- From: Tim Hughes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 10:09 AM To: [EMAIL PROTECTED] Subject: Jakarta Tomcat NT service stopping itself I have just set up Tomcat to run as an NT service (carefully following the how to from the doc). Everything works fine while I am logged on to the machine that I have set the service up on i.e. I can connect up from a client and request servlets and jsps. However, when I log off from the server it appears that the service is stopping, Tomcat will not service requests. This is confirmed by the fact that when I log back on again, the service has been stopped. When I look in Control Panel\Services, the tomcat service is set up exactly the same way as other services and these services work fine (whether I am logged on to the server or not). Any suggestions on what might be the problem? Tim. Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
RE: Jakarta Tomcat NT service stopping itself
And to remind folks, the archives are at two locations: http://marc.theaimsgroup.com/?l=tomcat-user http://tomcat.mslinn.com/ (under Listservs) -- Bill K. -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 6:43 AM To: [EMAIL PROTECTED] Subject: RE: Jakarta Tomcat NT service stopping itself Your problem is not reading the mailing list archives. This morning several people were discussing this issue. The problem is a bug in Sun's 1.3 JVM on NT handles the user logoff event incorrectly. Sun has reported this fixed in the 1.3.1 version and several users here had confirmed it, but today someone indicated that the fix wasn't working for them. I would suggest (besides putting a little effort into your investigation before asking questions) downgrading your JVM to the latest 1.2 (since earlier versions have threading issues). Also, there exists wrappers around the JVM that trap this logoff event and don't pass it to the JVM (called JavaService.exe), but I would suggest going with a plain JVM with no wrapper unless you really need 1.3 and find that 1.3.1 doesn't work for you. (Why introduce more layers with more complexity and the possibility of more bugs when its not needed.) Randy -Original Message- From: Tim Hughes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 10:09 AM To: [EMAIL PROTECTED] Subject: Jakarta Tomcat NT service stopping itself I have just set up Tomcat to run as an NT service (carefully following the how to from the doc). Everything works fine while I am logged on to the machine that I have set the service up on i.e. I can connect up from a client and request servlets and jsps. However, when I log off from the server it appears that the service is stopping, Tomcat will not service requests. This is confirmed by the fact that when I log back on again, the service has been stopped. When I look in Control Panel\Services, the tomcat service is set up exactly the same way as other services and these services work fine (whether I am logged on to the server or not). Any suggestions on what might be the problem? Tim. Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
RE: Jakarta Tomcat NT service stopping itself
I reported that this Sun fix is not working for me but I am currently running JRE 1.3.1 version: Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) and the fix is in the latest build: Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-rc1-b21) Sorry for the added confusion -Original Message- From: William Kaufman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 10:31 AM To: '[EMAIL PROTECTED]' Subject: RE: Jakarta Tomcat NT service stopping itself And to remind folks, the archives are at two locations: http://marc.theaimsgroup.com/?l=tomcat-user http://tomcat.mslinn.com/ (under Listservs) -- Bill K. -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 6:43 AM To: [EMAIL PROTECTED] Subject: RE: Jakarta Tomcat NT service stopping itself Your problem is not reading the mailing list archives. This morning several people were discussing this issue. The problem is a bug in Sun's 1.3 JVM on NT handles the user logoff event incorrectly. Sun has reported this fixed in the 1.3.1 version and several users here had confirmed it, but today someone indicated that the fix wasn't working for them. I would suggest (besides putting a little effort into your investigation before asking questions) downgrading your JVM to the latest 1.2 (since earlier versions have threading issues). Also, there exists wrappers around the JVM that trap this logoff event and don't pass it to the JVM (called JavaService.exe), but I would suggest going with a plain JVM with no wrapper unless you really need 1.3 and find that 1.3.1 doesn't work for you. (Why introduce more layers with more complexity and the possibility of more bugs when its not needed.) Randy -Original Message- From: Tim Hughes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 10:09 AM To: [EMAIL PROTECTED] Subject: Jakarta Tomcat NT service stopping itself I have just set up Tomcat to run as an NT service (carefully following the how to from the doc). Everything works fine while I am logged on to the machine that I have set the service up on i.e. I can connect up from a client and request servlets and jsps. However, when I log off from the server it appears that the service is stopping, Tomcat will not service requests. This is confirmed by the fact that when I log back on again, the service has been stopped. When I look in Control Panel\Services, the tomcat service is set up exactly the same way as other services and these services work fine (whether I am logged on to the server or not). Any suggestions on what might be the problem? Tim. Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie