RE: tomcat as service under linux how-to
Do u hv the example script for this ? That's what I mean actually. Sorry for the previous mail. -Original Message- From: Foo Shyn [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 11:18 AM To: Tomcat Users List Subject: Re: tomcat as service under linux how-to Put a script that starts Apache and Tomcat into the /etc/rc.d/init.d folder. U can modify the rc.local script to run the script when Linux boot. U can run a ps -ef | grep command to check whether Tomcat is running before u start running Apache. By the way, y do u need to start Tomcat first before starting Apache? if u wanna do connection between Apache and Tomcat using mod_jk, i think that starting Apache first before starting Tomcat is the way, just my opinion though. BTW, Google is your friend. F.S. - Original Message - From: dummy [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, July 20, 2005 9:29 AM Subject: tomcat as service under linux how-to Hi, I would like to know how to start-up tomcat as services under LINUX and at the same time start-up apache after tomcat has started. How to check whether tomcat is already started before apache is started ? I don't have this on windows system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat as service under linux how-to
Here's my rc.local script that i used to start the Tomcat and Apache automatically. however i did not have any script that startup Apache and Tomcat both at boot time. i just added the isStarted and if statement, and haven't test on it, maybe u would wanna try on it, no success is guaranteed though :p . If anyone else have a better options then u could use theirs. PS: to use this script u must have the httpd and tomcat4 script in ur /etc/rc.d/init.d folder, which i think should come with the installation of the Apache and tomcat4. u should be able to get these script from the web if u dun have them.. Hope this helps: #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local service httpd start isStarted=`ps -ef | grep -i httpd | grep -v grep | awk {'print $2'} | head -1` if [ $isStarted 0 ] then service tomcat4 start fi - Original Message - From: dummy [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org; [EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 3:19 PM Subject: RE: tomcat as service under linux how-to Do u hv the example script for this ? That's what I mean actually. Sorry for the previous mail. -Original Message- From: Foo Shyn [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 11:18 AM To: Tomcat Users List Subject: Re: tomcat as service under linux how-to Put a script that starts Apache and Tomcat into the /etc/rc.d/init.d folder. U can modify the rc.local script to run the script when Linux boot. U can run a ps -ef | grep command to check whether Tomcat is running before u start running Apache. By the way, y do u need to start Tomcat first before starting Apache? if u wanna do connection between Apache and Tomcat using mod_jk, i think that starting Apache first before starting Tomcat is the way, just my opinion though. BTW, Google is your friend. F.S. - Original Message - From: dummy [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, July 20, 2005 9:29 AM Subject: tomcat as service under linux how-to Hi, I would like to know how to start-up tomcat as services under LINUX and at the same time start-up apache after tomcat has started. How to check whether tomcat is already started before apache is started ? I don't have this on windows system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat as service under linux how-to
So may I know what's the booting seq. -Original Message- From: Foo Shyn [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 4:13 PM To: Tomcat Users List Subject: Re: tomcat as service under linux how-to Here's my rc.local script that i used to start the Tomcat and Apache automatically. however i did not have any script that startup Apache and Tomcat both at boot time. i just added the isStarted and if statement, and haven't test on it, maybe u would wanna try on it, no success is guaranteed though :p . If anyone else have a better options then u could use theirs. PS: to use this script u must have the httpd and tomcat4 script in ur /etc/rc.d/init.d folder, which i think should come with the installation of the Apache and tomcat4. u should be able to get these script from the web if u dun have them.. Hope this helps: #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local service httpd start isStarted=`ps -ef | grep -i httpd | grep -v grep | awk {'print $2'} | head -1` if [ $isStarted 0 ] then service tomcat4 start fi - Original Message - From: dummy [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org; [EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 3:19 PM Subject: RE: tomcat as service under linux how-to Do u hv the example script for this ? That's what I mean actually. Sorry for the previous mail. -Original Message- From: Foo Shyn [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 11:18 AM To: Tomcat Users List Subject: Re: tomcat as service under linux how-to Put a script that starts Apache and Tomcat into the /etc/rc.d/init.d folder. U can modify the rc.local script to run the script when Linux boot. U can run a ps -ef | grep command to check whether Tomcat is running before u start running Apache. By the way, y do u need to start Tomcat first before starting Apache? if u wanna do connection between Apache and Tomcat using mod_jk, i think that starting Apache first before starting Tomcat is the way, just my opinion though. BTW, Google is your friend. F.S. - Original Message - From: dummy [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, July 20, 2005 9:29 AM Subject: tomcat as service under linux how-to Hi, I would like to know how to start-up tomcat as services under LINUX and at the same time start-up apache after tomcat has started. How to check whether tomcat is already started before apache is started ? I don't have this on windows system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat as service under linux how-to
Put a script that starts Apache and Tomcat into the /etc/rc.d/init.d folder. U can modify the rc.local script to run the script when Linux boot. U can run a ps -ef | grep command to check whether Tomcat is running before u start running Apache. By the way, y do u need to start Tomcat first before starting Apache? if u wanna do connection between Apache and Tomcat using mod_jk, i think that starting Apache first before starting Tomcat is the way, just my opinion though. BTW, Google is your friend. F.S. - Original Message - From: dummy [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, July 20, 2005 9:29 AM Subject: tomcat as service under linux how-to Hi, I would like to know how to start-up tomcat as services under LINUX and at the same time start-up apache after tomcat has started. How to check whether tomcat is already started before apache is started ? I don't have this on windows system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat as service under linux how-to
dummy wrote: Hi, I would like to know how to start-up tomcat as services under LINUX and at the same time start-up apache after tomcat has started. How to check whether tomcat is already started before apache is started ? I don't have this on windows system. You could use netstat -tlp as root and see the ports where you have configured tomcat on open (listening), you will see a java-* process name too. This is one way, maybe not the best, but works. -- Luis Edgardo Durán Lebis Soporte Técnico y Sistemas http://mipagina.cantv.net/elebis [EMAIL PROTECTED] 0416-7580991 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 Service Windows
yes of course i am telling it to use a different server.xml my config looks like this -config c:\config\server.xml -dave Caldarale, Charles R wrote: From: David Gladstone [mailto:[EMAIL PROTECTED] Subject: Tomcat 5 Service Windows I am currently using tomcat 5.0.27 on Windows Xp and am trying to point the service to a specific server.xml. Are you saying you want to use a server.xml other than the one in %CATALINA_HOME%\conf? I am currently using jvm. Well, that's a good start. (Sorry, couldn't resist. :-) What am i doing wrong Try looking at the registry entries to see if they make any sense. (The key is HKLM\Apache Software Foundation\Tomcat Service Manager\Tomcat5\Parameters on 5.0.19; I've switched to 5.5.7 for most stuff, so I've never installed 5.0.27 as a Windows service.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 Service Windows
From: David Gladstone [mailto:[EMAIL PROTECTED] Subject: Tomcat 5 Service Windows I am currently using tomcat 5.0.27 on Windows Xp and am trying to point the service to a specific server.xml. Are you saying you want to use a server.xml other than the one in %CATALINA_HOME%\conf? I am currently using jvm. Well, that's a good start. (Sorry, couldn't resist. :-) What am i doing wrong Try looking at the registry entries to see if they make any sense. (The key is HKLM\Apache Software Foundation\Tomcat Service Manager\Tomcat5\Parameters on 5.0.19; I've switched to 5.5.7 for most stuff, so I've never installed 5.0.27 as a Windows service.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.0 service boot
Hi, You need to go into the Windows Registry and look where the Tomcat service is defined. (I don't remember the exact key offhand). There you can add classpath and other JVM instructions as registry values that are passed to the service. On recent Tomcat versions, the service installer can be used to configure the service as well with these parameters, so you don't have to edit the registry by hand. Yoav Shapira http://www.yoavshapira.com -Original Message- From: John Byrne [mailto:[EMAIL PROTECTED] Sent: Monday, November 08, 2004 10:36 AM To: [EMAIL PROTECTED] Subject: tomcat 5.0 service boot Hi all, I have tomcat on a windows 2000 server. We received a webapp which we have to run on this. This web-app customised some tomcat files. This works fine when I run startup.bat, but when I run it as a service (which I have to do) it doesn't work. The two main files that were modified were catalina.bat and setclasspath.bat. Does anybody know how I would mirror the changes in these files in the service that is run? Cheers John __ -Interactive Services- |-www.interactiveservices.com- __ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.0 service boot
Hi John, Not sure if you meant to send this directly to me or not. I'll assume not and CC the tomcat list. 5.0.29 has a control panel that allows you to edit your java params Start-Programs-Apache Tomcat-Configure Tomcat If you didn't install that part, you will need to edit the registry keys directly. On Mon, 2004-11-08 at 10:54, John Byrne wrote: Sorry, it is jakarta-tomcat-5.0.29. I have attached the modified files. I think the most important parts are: catalina.bat set CATALINA_OPTS=-Xbootclasspath/a:%CATALINA_HOME%\webapps\pro-examples\WEB-INF\lib\cryptix.jar setclasspath.bat set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\webapps\pro-examples\WEB-INF\lib At 15:39 08/11/2004, you wrote: Can you share the changes with us? Also include the Tomcat Version that you are using. On Mon, 2004-11-08 at 10:35, John Byrne wrote: Hi all, I have tomcat on a windows 2000 server. We received a webapp which we have to run on this. This web-app customised some tomcat files. This works fine when I run startup.bat, but when I run it as a service (which I have to do) it doesn't work. The two main files that were modified were catalina.bat and setclasspath.bat. Does anybody know how I would mirror the changes in these files in the service that is run? Cheers John __ -Interactive Services- |-www.interactiveservices.com- __ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk __ -Interactive Services- |-www.interactiveservices.com- __ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.0 service boot
Cheers Ben, I'll try and play around with that John At 16:54 08/11/2004, Ben Souther wrote: Hi John, Not sure if you meant to send this directly to me or not. I'll assume not and CC the tomcat list. 5.0.29 has a control panel that allows you to edit your java params Start-Programs-Apache Tomcat-Configure Tomcat If you didn't install that part, you will need to edit the registry keys directly. On Mon, 2004-11-08 at 10:54, John Byrne wrote: Sorry, it is jakarta-tomcat-5.0.29. I have attached the modified files. I think the most important parts are: catalina.bat set CATALINA_OPTS=-Xbootclasspath/a:%CATALINA_HOME%\webapps\pro-examples\WEB-INF\lib\cryptix.jar setclasspath.bat set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\webapps\pro-examples\WEB-INF\lib At 15:39 08/11/2004, you wrote: Can you share the changes with us? Also include the Tomcat Version that you are using. On Mon, 2004-11-08 at 10:35, John Byrne wrote: Hi all, I have tomcat on a windows 2000 server. We received a webapp which we have to run on this. This web-app customised some tomcat files. This works fine when I run startup.bat, but when I run it as a service (which I have to do) it doesn't work. The two main files that were modified were catalina.bat and setclasspath.bat. Does anybody know how I would mirror the changes in these files in the service that is run? Cheers John __ -Interactive Services- |-www.interactiveservices.com- __ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk __ -Interactive Services- |-www.interactiveservices.com- __ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. __ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk __ -Interactive Services- |-www.interactiveservices.com- __ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named
RE: tomcat 5.0.29 service start problem (JNI)
Hi, I bet your -Xmx parameter is too big for your physical hardware. Yoav Shapira http://www.yoavshapira.com -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 9:41 AM To: 'Tomcat Users List' Subject: tomcat 5.0.29 service start problem (JNI) Hi All, I have a problem starting tomcat as a service. I get this error in the tomcat log for Jakarta_service log. JNI Error occurred during initialization of VM [2004-10-14 01:22:29] [info] JNI [2004-10-14 01:22:29] [info] JNI Could not reserve enough space for object heap [2004-10-14 01:22:29] [info] JNI Can somebody help me out in this as my tomcat doesn't start as a service. It starts from the command line as a standalone application. The only change I have made is that of latest windows update. OS windows 2000 Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.0.29 service start problem (JNI)
Hi, I have enough memory . I have set it up to use 1500mb where as I have enough ram of 2000. I have checked the windows site with their latest security updates. My guess is something to do with that coz I have been running with this configuration for almost an year now and never had any problem Thanks shyam -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 10:00 AM To: Tomcat Users List Subject: RE: tomcat 5.0.29 service start problem (JNI) Hi, I bet your -Xmx parameter is too big for your physical hardware. Yoav Shapira http://www.yoavshapira.com -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 9:41 AM To: 'Tomcat Users List' Subject: tomcat 5.0.29 service start problem (JNI) Hi All, I have a problem starting tomcat as a service. I get this error in the tomcat log for Jakarta_service log. JNI Error occurred during initialization of VM [2004-10-14 01:22:29] [info] JNI [2004-10-14 01:22:29] [info] JNI Could not reserve enough space for object heap [2004-10-14 01:22:29] [info] JNI Can somebody help me out in this as my tomcat doesn't start as a service. It starts from the command line as a standalone application. The only change I have made is that of latest windows update. OS windows 2000 Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.0.29 service start problem (JNI)
From: shyam [mailto:[EMAIL PROTECTED] Subject: RE: tomcat 5.0.29 service start problem (JNI) I have enough memory . I have set it up to use 1500mb where as I have enough ram of 2000. This has nothing to do with physical memory. The maximum heap size is dependent on the largest contiguous virtual space available in the 2GB that Windows provides for each user process. Unfortunately, this space is fragmented by various DLLs that Windows preloads for you, so the biggest chunk you can use is noticeably smaller. I suspect the recently applied updates reduced this largest contiguous area, resulting in JVM initialization errors. You'll need to experiment with -Xmx to find the largest value that works in your current environment. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.0.29 service start problem (JNI)
Thanks you for all the replies. I havent fixed it but I am sure that's the problem with windows update. Will play with the -Xmx parameter later Thanks shyam -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 11:05 AM To: Tomcat Users List Subject: RE: tomcat 5.0.29 service start problem (JNI) From: shyam [mailto:[EMAIL PROTECTED] Subject: RE: tomcat 5.0.29 service start problem (JNI) I have enough memory . I have set it up to use 1500mb where as I have enough ram of 2000. This has nothing to do with physical memory. The maximum heap size is dependent on the largest contiguous virtual space available in the 2GB that Windows provides for each user process. Unfortunately, this space is fragmented by various DLLs that Windows preloads for you, so the biggest chunk you can use is noticeably smaller. I suspect the recently applied updates reduced this largest contiguous area, resulting in JVM initialization errors. You'll need to experiment with -Xmx to find the largest value that works in your current environment. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 service on windows
But Tomcat isn't listed as an installed program on 2K or XP and I imagine on any other winbloze platform. I had a similar problem and running: Tomcat/bin/service.bat remove did the trick. Check if Tomcat5.28 runs with your jdk. I read you're using jdk1.4.1_05. Check that you might need a newer version of the jdk. -Original Message- From: Big Chiz [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 8:59 PM To: Tomcat Users List Subject: Re: Tomcat 5 service on windows anyway, try uninstalling all tomcat on the ad/remove programs. then clean all registries of any tomcat, by searching them in find in regedit. then checkout your j2sdk path if its correct, then try reinstalling. On Fri, 3 Sep 2004 17:39:19 +0100, Nelson, Jerry W, Contractor 146CF, SCB [EMAIL PROTECTED] wrote: Yes... //SIGNED// Jerry Nelson -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 9:20 AM To: Tomcat Users List Subject: RE: Tomcat 5 service on windows did you try my suggestion re: service remove and then service install? ADC -Original Message- From: Nelson, Jerry W, Contractor 146CF, SCB [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 17:12 To: 'Tomcat Users List' Subject: RE: Tomcat 5 service on windows Yes, ran service.bat completely unmodified. I still have to run startup.bat to get tomcat to work. //SIGNED// Jerry Nelson -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 8:31 AM To: Tomcat Users List Subject: RE: Tomcat 5 service on windows also, you may try removal anyway and reinstall ... service.bat remove and then service.bat install if you checked the box on the install then maybe it _did_ do something that needs to be removed first (wild stab in the dark!) :p ADC -Original Message- From: Allistair Crossley Sent: 03 September 2004 16:28 To: Tomcat Users List Subject: RE: Tomcat 5 service on windows did you run the service.bat unmodified? this can also happen when you have spaces in some of the properties for the service name. ADC -Original Message- From: Nelson, Jerry W, Contractor 146CF, SCB [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 16:25 To: 'Tomcat Users List' Subject: RE: Tomcat 5 service on windows I HAVE THE SAME PROBLEM...In my case, I am the computer administrator and Tomcat has NEVER been installed previous to this. I have not seen ANY good solutions to this, so I learned to live with the DOS based service. //SIGNED// Jerry Nelson -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 6:27 AM To: Tomcat Users List Subject: Re: Tomcat 5 service on windows Do you have permission to write on the registry? you need to have write access to some key (don't remember specifically what is the key right now) in the registry to install tomcat as a service. Allistair Crossley escribió: did you have a tomcat service installed already? did you have the services window open when you ran this? try checking there are no tomcat services and closing the services window and trying again. ADC -Original Message- From: Andras Balogh [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 11:28 To: [EMAIL PROTECTED] Subject: Tomcat 5 service on windows Hello all, I have downloaded the Tomcat 5.0.28. distibution for windows (jakarta-tomcat-5.0.28.exe) and tried to install tomcat as service and checked the service option in the install wizard. Tomcat wasn't installed as service and i tried manual with the service.bat script: Here is the output i get: D:\Tomcat 5.0\binservice install Installing the service 'Tomcat5' ... Using CATALINA_HOME:D:\Tomcat 5.0 Using JAVA_HOME:D:\j2sdk1.4.1_05 [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed The service 'Tomcat5' has been installed. The service is still not added, i think because of the error i have. As a note i have on the server an older Tomcat 4.1.27 but is not running and i modified CATALINA_HOME to point to the new tomcat (D:\Tomcat 5.0). What could be wrong? Thank you, Andras. - To unsubscribe, e-mail
RE: Tomcat 5 service on windows
did you have a tomcat service installed already? did you have the services window open when you ran this? try checking there are no tomcat services and closing the services window and trying again. ADC -Original Message- From: Andras Balogh [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 11:28 To: [EMAIL PROTECTED] Subject: Tomcat 5 service on windows Hello all, I have downloaded the Tomcat 5.0.28. distibution for windows (jakarta-tomcat-5.0.28.exe) and tried to install tomcat as service and checked the service option in the install wizard. Tomcat wasn't installed as service and i tried manual with the service.bat script: Here is the output i get: D:\Tomcat 5.0\binservice install Installing the service 'Tomcat5' ... Using CATALINA_HOME:D:\Tomcat 5.0 Using JAVA_HOME:D:\j2sdk1.4.1_05 [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed The service 'Tomcat5' has been installed. The service is still not added, i think because of the error i have. As a note i have on the server an older Tomcat 4.1.27 but is not running and i modified CATALINA_HOME to point to the new tomcat (D:\Tomcat 5.0). What could be wrong? Thank you, Andras. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 service on windows
Do you have permission to write on the registry? you need to have write access to some key (don't remember specifically what is the key right now) in the registry to install tomcat as a service. Allistair Crossley escribió: did you have a tomcat service installed already? did you have the services window open when you ran this? try checking there are no tomcat services and closing the services window and trying again. ADC -Original Message- From: Andras Balogh [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 11:28 To: [EMAIL PROTECTED] Subject: Tomcat 5 service on windows Hello all, I have downloaded the Tomcat 5.0.28. distibution for windows (jakarta-tomcat-5.0.28.exe) and tried to install tomcat as service and checked the service option in the install wizard. Tomcat wasn't installed as service and i tried manual with the service.bat script: Here is the output i get: D:\Tomcat 5.0\binservice install Installing the service 'Tomcat5' ... Using CATALINA_HOME:D:\Tomcat 5.0 Using JAVA_HOME:D:\j2sdk1.4.1_05 [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed The service 'Tomcat5' has been installed. The service is still not added, i think because of the error i have. As a note i have on the server an older Tomcat 4.1.27 but is not running and i modified CATALINA_HOME to point to the new tomcat (D:\Tomcat 5.0). What could be wrong? Thank you, Andras. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 service on windows
I HAVE THE SAME PROBLEM...In my case, I am the computer administrator and Tomcat has NEVER been installed previous to this. I have not seen ANY good solutions to this, so I learned to live with the DOS based service. //SIGNED// Jerry Nelson -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 6:27 AM To: Tomcat Users List Subject: Re: Tomcat 5 service on windows Do you have permission to write on the registry? you need to have write access to some key (don't remember specifically what is the key right now) in the registry to install tomcat as a service. Allistair Crossley escribió: did you have a tomcat service installed already? did you have the services window open when you ran this? try checking there are no tomcat services and closing the services window and trying again. ADC -Original Message- From: Andras Balogh [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 11:28 To: [EMAIL PROTECTED] Subject: Tomcat 5 service on windows Hello all, I have downloaded the Tomcat 5.0.28. distibution for windows (jakarta-tomcat-5.0.28.exe) and tried to install tomcat as service and checked the service option in the install wizard. Tomcat wasn't installed as service and i tried manual with the service.bat script: Here is the output i get: D:\Tomcat 5.0\binservice install Installing the service 'Tomcat5' ... Using CATALINA_HOME:D:\Tomcat 5.0 Using JAVA_HOME:D:\j2sdk1.4.1_05 [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed The service 'Tomcat5' has been installed. The service is still not added, i think because of the error i have. As a note i have on the server an older Tomcat 4.1.27 but is not running and i modified CATALINA_HOME to point to the new tomcat (D:\Tomcat 5.0). What could be wrong? Thank you, Andras. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 service on windows
did you run the service.bat unmodified? this can also happen when you have spaces in some of the properties for the service name. ADC -Original Message- From: Nelson, Jerry W, Contractor 146CF, SCB [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 16:25 To: 'Tomcat Users List' Subject: RE: Tomcat 5 service on windows I HAVE THE SAME PROBLEM...In my case, I am the computer administrator and Tomcat has NEVER been installed previous to this. I have not seen ANY good solutions to this, so I learned to live with the DOS based service. //SIGNED// Jerry Nelson -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 6:27 AM To: Tomcat Users List Subject: Re: Tomcat 5 service on windows Do you have permission to write on the registry? you need to have write access to some key (don't remember specifically what is the key right now) in the registry to install tomcat as a service. Allistair Crossley escribió: did you have a tomcat service installed already? did you have the services window open when you ran this? try checking there are no tomcat services and closing the services window and trying again. ADC -Original Message- From: Andras Balogh [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 11:28 To: [EMAIL PROTECTED] Subject: Tomcat 5 service on windows Hello all, I have downloaded the Tomcat 5.0.28. distibution for windows (jakarta-tomcat-5.0.28.exe) and tried to install tomcat as service and checked the service option in the install wizard. Tomcat wasn't installed as service and i tried manual with the service.bat script: Here is the output i get: D:\Tomcat 5.0\binservice install Installing the service 'Tomcat5' ... Using CATALINA_HOME:D:\Tomcat 5.0 Using JAVA_HOME:D:\j2sdk1.4.1_05 [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed The service 'Tomcat5' has been installed. The service is still not added, i think because of the error i have. As a note i have on the server an older Tomcat 4.1.27 but is not running and i modified CATALINA_HOME to point to the new tomcat (D:\Tomcat 5.0). What could be wrong? Thank you, Andras. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 service on windows
also, you may try removal anyway and reinstall ... service.bat remove and then service.bat install if you checked the box on the install then maybe it _did_ do something that needs to be removed first (wild stab in the dark!) :p ADC -Original Message- From: Allistair Crossley Sent: 03 September 2004 16:28 To: Tomcat Users List Subject: RE: Tomcat 5 service on windows did you run the service.bat unmodified? this can also happen when you have spaces in some of the properties for the service name. ADC -Original Message- From: Nelson, Jerry W, Contractor 146CF, SCB [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 16:25 To: 'Tomcat Users List' Subject: RE: Tomcat 5 service on windows I HAVE THE SAME PROBLEM...In my case, I am the computer administrator and Tomcat has NEVER been installed previous to this. I have not seen ANY good solutions to this, so I learned to live with the DOS based service. //SIGNED// Jerry Nelson -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 6:27 AM To: Tomcat Users List Subject: Re: Tomcat 5 service on windows Do you have permission to write on the registry? you need to have write access to some key (don't remember specifically what is the key right now) in the registry to install tomcat as a service. Allistair Crossley escribió: did you have a tomcat service installed already? did you have the services window open when you ran this? try checking there are no tomcat services and closing the services window and trying again. ADC -Original Message- From: Andras Balogh [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 11:28 To: [EMAIL PROTECTED] Subject: Tomcat 5 service on windows Hello all, I have downloaded the Tomcat 5.0.28. distibution for windows (jakarta-tomcat-5.0.28.exe) and tried to install tomcat as service and checked the service option in the install wizard. Tomcat wasn't installed as service and i tried manual with the service.bat script: Here is the output i get: D:\Tomcat 5.0\binservice install Installing the service 'Tomcat5' ... Using CATALINA_HOME:D:\Tomcat 5.0 Using JAVA_HOME:D:\j2sdk1.4.1_05 [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed The service 'Tomcat5' has been installed. The service is still not added, i think because of the error i have. As a note i have on the server an older Tomcat 4.1.27 but is not running and i modified CATALINA_HOME to point to the new tomcat (D:\Tomcat 5.0). What could be wrong? Thank you, Andras. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 service on windows
Yes, ran service.bat completely unmodified. I still have to run startup.bat to get tomcat to work. //SIGNED// Jerry Nelson -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 8:31 AM To: Tomcat Users List Subject: RE: Tomcat 5 service on windows also, you may try removal anyway and reinstall ... service.bat remove and then service.bat install if you checked the box on the install then maybe it _did_ do something that needs to be removed first (wild stab in the dark!) :p ADC -Original Message- From: Allistair Crossley Sent: 03 September 2004 16:28 To: Tomcat Users List Subject: RE: Tomcat 5 service on windows did you run the service.bat unmodified? this can also happen when you have spaces in some of the properties for the service name. ADC -Original Message- From: Nelson, Jerry W, Contractor 146CF, SCB [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 16:25 To: 'Tomcat Users List' Subject: RE: Tomcat 5 service on windows I HAVE THE SAME PROBLEM...In my case, I am the computer administrator and Tomcat has NEVER been installed previous to this. I have not seen ANY good solutions to this, so I learned to live with the DOS based service. //SIGNED// Jerry Nelson -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 6:27 AM To: Tomcat Users List Subject: Re: Tomcat 5 service on windows Do you have permission to write on the registry? you need to have write access to some key (don't remember specifically what is the key right now) in the registry to install tomcat as a service. Allistair Crossley escribió: did you have a tomcat service installed already? did you have the services window open when you ran this? try checking there are no tomcat services and closing the services window and trying again. ADC -Original Message- From: Andras Balogh [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 11:28 To: [EMAIL PROTECTED] Subject: Tomcat 5 service on windows Hello all, I have downloaded the Tomcat 5.0.28. distibution for windows (jakarta-tomcat-5.0.28.exe) and tried to install tomcat as service and checked the service option in the install wizard. Tomcat wasn't installed as service and i tried manual with the service.bat script: Here is the output i get: D:\Tomcat 5.0\binservice install Installing the service 'Tomcat5' ... Using CATALINA_HOME:D:\Tomcat 5.0 Using JAVA_HOME:D:\j2sdk1.4.1_05 [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed The service 'Tomcat5' has been installed. The service is still not added, i think because of the error i have. As a note i have on the server an older Tomcat 4.1.27 but is not running and i modified CATALINA_HOME to point to the new tomcat (D:\Tomcat 5.0). What could be wrong? Thank you, Andras. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
RE: Tomcat 5 service on windows
did you try my suggestion re: service remove and then service install? ADC -Original Message- From: Nelson, Jerry W, Contractor 146CF, SCB [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 17:12 To: 'Tomcat Users List' Subject: RE: Tomcat 5 service on windows Yes, ran service.bat completely unmodified. I still have to run startup.bat to get tomcat to work. //SIGNED// Jerry Nelson -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 8:31 AM To: Tomcat Users List Subject: RE: Tomcat 5 service on windows also, you may try removal anyway and reinstall ... service.bat remove and then service.bat install if you checked the box on the install then maybe it _did_ do something that needs to be removed first (wild stab in the dark!) :p ADC -Original Message- From: Allistair Crossley Sent: 03 September 2004 16:28 To: Tomcat Users List Subject: RE: Tomcat 5 service on windows did you run the service.bat unmodified? this can also happen when you have spaces in some of the properties for the service name. ADC -Original Message- From: Nelson, Jerry W, Contractor 146CF, SCB [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 16:25 To: 'Tomcat Users List' Subject: RE: Tomcat 5 service on windows I HAVE THE SAME PROBLEM...In my case, I am the computer administrator and Tomcat has NEVER been installed previous to this. I have not seen ANY good solutions to this, so I learned to live with the DOS based service. //SIGNED// Jerry Nelson -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 6:27 AM To: Tomcat Users List Subject: Re: Tomcat 5 service on windows Do you have permission to write on the registry? you need to have write access to some key (don't remember specifically what is the key right now) in the registry to install tomcat as a service. Allistair Crossley escribió: did you have a tomcat service installed already? did you have the services window open when you ran this? try checking there are no tomcat services and closing the services window and trying again. ADC -Original Message- From: Andras Balogh [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 11:28 To: [EMAIL PROTECTED] Subject: Tomcat 5 service on windows Hello all, I have downloaded the Tomcat 5.0.28. distibution for windows (jakarta-tomcat-5.0.28.exe) and tried to install tomcat as service and checked the service option in the install wizard. Tomcat wasn't installed as service and i tried manual with the service.bat script: Here is the output i get: D:\Tomcat 5.0\binservice install Installing the service 'Tomcat5' ... Using CATALINA_HOME:D:\Tomcat 5.0 Using JAVA_HOME:D:\j2sdk1.4.1_05 [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed The service 'Tomcat5' has been installed. The service is still not added, i think because of the error i have. As a note i have on the server an older Tomcat 4.1.27 but is not running and i modified CATALINA_HOME to point to the new tomcat (D:\Tomcat 5.0). What could be wrong? Thank you, Andras. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software
RE: Tomcat 5 service on windows
Yes... //SIGNED// Jerry Nelson -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 9:20 AM To: Tomcat Users List Subject: RE: Tomcat 5 service on windows did you try my suggestion re: service remove and then service install? ADC -Original Message- From: Nelson, Jerry W, Contractor 146CF, SCB [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 17:12 To: 'Tomcat Users List' Subject: RE: Tomcat 5 service on windows Yes, ran service.bat completely unmodified. I still have to run startup.bat to get tomcat to work. //SIGNED// Jerry Nelson -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 8:31 AM To: Tomcat Users List Subject: RE: Tomcat 5 service on windows also, you may try removal anyway and reinstall ... service.bat remove and then service.bat install if you checked the box on the install then maybe it _did_ do something that needs to be removed first (wild stab in the dark!) :p ADC -Original Message- From: Allistair Crossley Sent: 03 September 2004 16:28 To: Tomcat Users List Subject: RE: Tomcat 5 service on windows did you run the service.bat unmodified? this can also happen when you have spaces in some of the properties for the service name. ADC -Original Message- From: Nelson, Jerry W, Contractor 146CF, SCB [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 16:25 To: 'Tomcat Users List' Subject: RE: Tomcat 5 service on windows I HAVE THE SAME PROBLEM...In my case, I am the computer administrator and Tomcat has NEVER been installed previous to this. I have not seen ANY good solutions to this, so I learned to live with the DOS based service. //SIGNED// Jerry Nelson -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 6:27 AM To: Tomcat Users List Subject: Re: Tomcat 5 service on windows Do you have permission to write on the registry? you need to have write access to some key (don't remember specifically what is the key right now) in the registry to install tomcat as a service. Allistair Crossley escribió: did you have a tomcat service installed already? did you have the services window open when you ran this? try checking there are no tomcat services and closing the services window and trying again. ADC -Original Message- From: Andras Balogh [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 11:28 To: [EMAIL PROTECTED] Subject: Tomcat 5 service on windows Hello all, I have downloaded the Tomcat 5.0.28. distibution for windows (jakarta-tomcat-5.0.28.exe) and tried to install tomcat as service and checked the service option in the install wizard. Tomcat wasn't installed as service and i tried manual with the service.bat script: Here is the output i get: D:\Tomcat 5.0\binservice install Installing the service 'Tomcat5' ... Using CATALINA_HOME:D:\Tomcat 5.0 Using JAVA_HOME:D:\j2sdk1.4.1_05 [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed The service 'Tomcat5' has been installed. The service is still not added, i think because of the error i have. As a note i have on the server an older Tomcat 4.1.27 but is not running and i modified CATALINA_HOME to point to the new tomcat (D:\Tomcat 5.0). What could be wrong? Thank you, Andras. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com - To unsubscribe, e-mail: [EMAIL PROTECTED
Re: Tomcat 5 service on windows
anyway, try uninstalling all tomcat on the ad/remove programs. then clean all registries of any tomcat, by searching them in find in regedit. then checkout your j2sdk path if its correct, then try reinstalling. On Fri, 3 Sep 2004 17:39:19 +0100, Nelson, Jerry W, Contractor 146CF, SCB [EMAIL PROTECTED] wrote: Yes... //SIGNED// Jerry Nelson -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 9:20 AM To: Tomcat Users List Subject: RE: Tomcat 5 service on windows did you try my suggestion re: service remove and then service install? ADC -Original Message- From: Nelson, Jerry W, Contractor 146CF, SCB [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 17:12 To: 'Tomcat Users List' Subject: RE: Tomcat 5 service on windows Yes, ran service.bat completely unmodified. I still have to run startup.bat to get tomcat to work. //SIGNED// Jerry Nelson -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 8:31 AM To: Tomcat Users List Subject: RE: Tomcat 5 service on windows also, you may try removal anyway and reinstall ... service.bat remove and then service.bat install if you checked the box on the install then maybe it _did_ do something that needs to be removed first (wild stab in the dark!) :p ADC -Original Message- From: Allistair Crossley Sent: 03 September 2004 16:28 To: Tomcat Users List Subject: RE: Tomcat 5 service on windows did you run the service.bat unmodified? this can also happen when you have spaces in some of the properties for the service name. ADC -Original Message- From: Nelson, Jerry W, Contractor 146CF, SCB [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 16:25 To: 'Tomcat Users List' Subject: RE: Tomcat 5 service on windows I HAVE THE SAME PROBLEM...In my case, I am the computer administrator and Tomcat has NEVER been installed previous to this. I have not seen ANY good solutions to this, so I learned to live with the DOS based service. //SIGNED// Jerry Nelson -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 6:27 AM To: Tomcat Users List Subject: Re: Tomcat 5 service on windows Do you have permission to write on the registry? you need to have write access to some key (don't remember specifically what is the key right now) in the registry to install tomcat as a service. Allistair Crossley escribió: did you have a tomcat service installed already? did you have the services window open when you ran this? try checking there are no tomcat services and closing the services window and trying again. ADC -Original Message- From: Andras Balogh [mailto:[EMAIL PROTECTED] Sent: 03 September 2004 11:28 To: [EMAIL PROTECTED] Subject: Tomcat 5 service on windows Hello all, I have downloaded the Tomcat 5.0.28. distibution for windows (jakarta-tomcat-5.0.28.exe) and tried to install tomcat as service and checked the service option in the install wizard. Tomcat wasn't installed as service and i tried manual with the service.bat script: Here is the output i get: D:\Tomcat 5.0\binservice install Installing the service 'Tomcat5' ... Using CATALINA_HOME:D:\Tomcat 5.0 Using JAVA_HOME:D:\j2sdk1.4.1_05 [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed [2004-09-03 12:09:45] [349 prunsrv.c] [error] The system cannot find the file specified. [2004-09-03 12:09:45] [1037 prunsrv.c] [error] Load configuration failed The service 'Tomcat5' has been installed. The service is still not added, i think because of the error i have. As a note i have on the server an older Tomcat 4.1.27 but is not running and i modified CATALINA_HOME to point to the new tomcat (D:\Tomcat 5.0). What could be wrong? Thank you, Andras. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT
Re: Tomcat as service
The service exe that ships with newer versions of TC 5 won't run on W9x (and, I'm not certain about NT4 :). However, you can still run it from the command line. Glen Stampoultzis [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I was just installing tomcat this morning and I noticed that even if you uncheck the service option during the installation it still installs as a service (just doesn't start it). Does this cause any issues under windows 95/98? -- Glen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat - Win2k service - GC output
Hi. If you are using JSDK 1.4.x use the following VM flag: -Xloggc:normal.gc This will create and write GC log entries to the following location on your windows server: [WINDOWS_SYSTEM_DIR]\system32\normal.gc Regards, Carl -Original Message- From: Pooleery, Manoj [mailto:[EMAIL PROTECTED] Sent: 15 July 2004 05:14 PM To: '[EMAIL PROTECTED]' Subject: Tomcat - Win2k service - GC output Hi, I have set up Tomcat 4.1.27 as a service on a Win2k machine using the following script - tomcat -install Apache Tomcat %JAVA_HOME%\jre\bin\server\jvm.dll -verbose:gc -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar -Djava.endorsed.dir=%CATALINA_HOME%\common\endorsed -Dsun.io.useCanonCaches=false -Dcatalina.home=%CATALINA_HOME% -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out %CATALINA_HOME%\logs\stderr.log I wanted to see the GC ouput, so, I added the -verbose:gc flag. When I see the registry, I can see this has gone in as a JVM option. But in the log file, I cannot see any GC output at all. When I try the -verbose:gc in the console mode(putting it in the catalina.bat file), I can see the GC output on the console. Am I doing it correctly? If not, what am I doing wrong? Thanks -Manoj Pooleery. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat - Win2k service - GC output
Hi, Thank you for the quick response. I'm using jdk 1.3.1_05 and hence I cannot use -Xloggc option. Thanks -Manoj Pooleery. -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 11:17 AM To: Tomcat Users List Subject: RE: Tomcat - Win2k service - GC output Hi. If you are using JSDK 1.4.x use the following VM flag: -Xloggc:normal.gc This will create and write GC log entries to the following location on your windows server: [WINDOWS_SYSTEM_DIR]\system32\normal.gc Regards, Carl -Original Message- From: Pooleery, Manoj [mailto:[EMAIL PROTECTED] Sent: 15 July 2004 05:14 PM To: '[EMAIL PROTECTED]' Subject: Tomcat - Win2k service - GC output Hi, I have set up Tomcat 4.1.27 as a service on a Win2k machine using the following script - tomcat -install Apache Tomcat %JAVA_HOME%\jre\bin\server\jvm.dll -verbose:gc -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar -Djava.endorsed.dir=%CATALINA_HOME%\common\endorsed -Dsun.io.useCanonCaches=false -Dcatalina.home=%CATALINA_HOME% -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out %CATALINA_HOME%\logs\stderr.log I wanted to see the GC ouput, so, I added the -verbose:gc flag. When I see the registry, I can see this has gone in as a JVM option. But in the log file, I cannot see any GC output at all. When I try the -verbose:gc in the console mode(putting it in the catalina.bat file), I can see the GC output on the console. Am I doing it correctly? If not, what am I doing wrong? Thanks -Manoj Pooleery. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat - Win2k service - GC output
Greetings. OK, well I believe that the output from the -verbose:gc flag in 1.3 will write to a .gc file in your [windows]\system32 dirctory - although I am not certain about this. DO a system whide search for a .gc file on your server - the output does not go to the normal log output file(s). Carl -Original Message- From: Pooleery, Manoj [mailto:[EMAIL PROTECTED] Sent: 15 July 2004 05:21 PM To: 'Tomcat Users List' Subject: RE: Tomcat - Win2k service - GC output Hi, Thank you for the quick response. I'm using jdk 1.3.1_05 and hence I cannot use -Xloggc option. Thanks -Manoj Pooleery. -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 11:17 AM To: Tomcat Users List Subject: RE: Tomcat - Win2k service - GC output Hi. If you are using JSDK 1.4.x use the following VM flag: -Xloggc:normal.gc This will create and write GC log entries to the following location on your windows server: [WINDOWS_SYSTEM_DIR]\system32\normal.gc Regards, Carl -Original Message- From: Pooleery, Manoj [mailto:[EMAIL PROTECTED] Sent: 15 July 2004 05:14 PM To: '[EMAIL PROTECTED]' Subject: Tomcat - Win2k service - GC output Hi, I have set up Tomcat 4.1.27 as a service on a Win2k machine using the following script - tomcat -install Apache Tomcat %JAVA_HOME%\jre\bin\server\jvm.dll -verbose:gc -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar -Djava.endorsed.dir=%CATALINA_HOME%\common\endorsed -Dsun.io.useCanonCaches=false -Dcatalina.home=%CATALINA_HOME% -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out %CATALINA_HOME%\logs\stderr.log I wanted to see the GC ouput, so, I added the -verbose:gc flag. When I see the registry, I can see this has gone in as a JVM option. But in the log file, I cannot see any GC output at all. When I try the -verbose:gc in the console mode(putting it in the catalina.bat file), I can see the GC output on the console. Am I doing it correctly? If not, what am I doing wrong? Thanks -Manoj Pooleery. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat - Win2k service - GC output
Hi, I searched the entire system for .gc files, but couldn't find any. Now the question is, where is Tomcat outputting the gc log? Thanks -Manoj Pooleery. -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 11:22 AM To: Tomcat Users List Subject: RE: Tomcat - Win2k service - GC output Greetings. OK, well I believe that the output from the -verbose:gc flag in 1.3 will write to a .gc file in your [windows]\system32 dirctory - although I am not certain about this. DO a system whide search for a .gc file on your server - the output does not go to the normal log output file(s). Carl -Original Message- From: Pooleery, Manoj [mailto:[EMAIL PROTECTED] Sent: 15 July 2004 05:21 PM To: 'Tomcat Users List' Subject: RE: Tomcat - Win2k service - GC output Hi, Thank you for the quick response. I'm using jdk 1.3.1_05 and hence I cannot use -Xloggc option. Thanks -Manoj Pooleery. -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 11:17 AM To: Tomcat Users List Subject: RE: Tomcat - Win2k service - GC output Hi. If you are using JSDK 1.4.x use the following VM flag: -Xloggc:normal.gc This will create and write GC log entries to the following location on your windows server: [WINDOWS_SYSTEM_DIR]\system32\normal.gc Regards, Carl -Original Message- From: Pooleery, Manoj [mailto:[EMAIL PROTECTED] Sent: 15 July 2004 05:14 PM To: '[EMAIL PROTECTED]' Subject: Tomcat - Win2k service - GC output Hi, I have set up Tomcat 4.1.27 as a service on a Win2k machine using the following script - tomcat -install Apache Tomcat %JAVA_HOME%\jre\bin\server\jvm.dll -verbose:gc -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar -Djava.endorsed.dir=%CATALINA_HOME%\common\endorsed -Dsun.io.useCanonCaches=false -Dcatalina.home=%CATALINA_HOME% -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out %CATALINA_HOME%\logs\stderr.log I wanted to see the GC ouput, so, I added the -verbose:gc flag. When I see the registry, I can see this has gone in as a JVM option. But in the log file, I cannot see any GC output at all. When I try the -verbose:gc in the console mode(putting it in the catalina.bat file), I can see the GC output on the console. Am I doing it correctly? If not, what am I doing wrong? Thanks -Manoj Pooleery. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat windows service
Hello! It's included during installation period... you're prompted if you want to install tomcat as windows service... Check administrative tools - services... regards, aris -Original Message- From: Naga Viswanathan [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 6:17 AM To: '[EMAIL PROTECTED]' Subject: Tomcat windows service Hi!! I installed tomcat 5.0.14(without the windows installer). It works great. I wanted to find out how to configure my tomcat instance as a windows service. I saw on some groups that tomcat.exe has to be used but did not find any documentation. I'd appreciate any help/useful links that can help me setup tomcat as windows service Thanks, Naga - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat windows service
Thanks for your reply. I did not use tomcat installer. I want to enable windows service option for my existing installation. regards. -Original Message- From: Aris Javier [mailto:[EMAIL PROTECTED] Sent: Monday, June 28, 2004 5:16 PM To: Tomcat Users List Subject: RE: Tomcat windows service Hello! It's included during installation period... you're prompted if you want to install tomcat as windows service... Check administrative tools - services... regards, aris -Original Message- From: Naga Viswanathan [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 6:17 AM To: '[EMAIL PROTECTED]' Subject: Tomcat windows service Hi!! I installed tomcat 5.0.14(without the windows installer). It works great. I wanted to find out how to configure my tomcat instance as a windows service. I saw on some groups that tomcat.exe has to be used but did not find any documentation. I'd appreciate any help/useful links that can help me setup tomcat as windows service Thanks, Naga - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.24 Service Install Syntax
Quoting Hector Adolfo Alonso [EMAIL PROTECTED]: Hi Tomcat gurus: I've read carefully service.bat from Tomcat 5.0.19 and Apache Commons Daemon, and built a customized script for Windows 2000. But service installation syntax changed in Tomcat 5.0.24. I could'n find any new explanation in Commons Daemon page. I've observed tomcat.exe has changed to tomcat5.exe too. Can anybody send me any hint ? I need customize the serice installation script. Thanks in Advance. When you says service installation syntax changed in Tomcat 5.0.24, I'm not quite sure what you mean. You still just do... %CATALINA_HOME%\bin\service install The syntax of the service.bat file itself changed a bit, if that is what you mean. It should be relatively straightforward to customize. Just follow the pattern that is already there. I customize the script myself. Maybe that would help. I'm attaching it to this email renamed to .txt so it doesn't get filtered out. Jake Hector./ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]@echo off if %OS% == Windows_NT setlocal rem --- rem NT Service Install/Uninstall script rem rem Options rem installInstall the service using Tomcat5 as service name. remService is installed using default settings. rem remove Remove the service from the System. rem rem name(optional) If the second argument is present it is considered remto be new service name rem rem $Id: service.bat,v 1.5 2004/04/08 16:49:37 mturk Exp $ rem --- rem Guess CATALINA_HOME if not defined set CURRENT_DIR=%cd% if not %CATALINA_HOME% == goto gotHome set CATALINA_HOME=%cd% if exist %CATALINA_HOME%\bin\tomcat5.exe goto okHome rem CD to the upper dir cd .. set CATALINA_HOME=%cd% :gotHome if exist %CATALINA_HOME%\bin\tomcat5.exe goto okHome echo The tomcat.exe was not found... echo The CATALINA_HOME environment variable is not defined correctly. echo This environment variable is needed to run this program goto end :okHome if not %CATALINA_BASE% == goto gotBase set CATALINA_BASE=%CATALINA_HOME% :gotBase set EXECUTABLE=%CATALINA_HOME%\bin\tomcat5.exe rem Set default Service name set SERVICE_NAME=Tomcat5 if %1 == goto displayUsage if %2 == goto setServiceName set SERVICE_NAME=%2 :setServiceName if %1 == install goto doInstall if %1 == remove goto doRemove echo Unknown parameter %1 :displayUsage echo echo Usage: service.bat install/remove [service_name] goto end :doRemove rem Remove the service %EXECUTABLE% //DS//%SERVICE_NAME% echo The service '%SERVICE_NAME%' has been removed goto end :doInstall rem Install the service rem Use the environment variables as an exaple rem Each command line option is prefixed with PR_ set PR_DISPLAYNAME=Apache Tomcat set PR_DESCRIPTION=Apache Tomcat Server - http://jakarta.apache.org/tomcat set PR_INSTALL=%EXECUTABLE% set PR_LOGPATH=%CATALINA_HOME%\logs set PR_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar %EXECUTABLE% //IS//%SERVICE_NAME% --Jvm auto --StartClass org.apache.catalina.startup.Bootstrap --StopClass org.apache.catalina.startup.Bootstrap --StartParams start --StopParams stop rem Clear the environment variables. They are not needed any more. set PR_DISPLAYNAME= set PR_DESCRIPTION= set PR_INSTALL= set PR_LOGPATH= set PR_CLASSPATH= rem Set extra parameters %EXECUTABLE% //US//%SERVICE_NAME% --JvmOptions -Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed --StartMode jvm --StopMode jvm rem More extra parameters set PR_STDOUTPUT=%CATALINA_HOME%\logs\stdout.log set PR_STDERROR=%CATALINA_HOME%\logs\stderr.log set PR_STARTPATH=%CATALINA_HOME%\bin set PR_STOPPATH=%CATALINA_HOME%\bin %EXECUTABLE% //US//%SERVICE_NAME% ++JvmOptions -Djava.io.tmpdir=%CATALINA_BASE%\temp;-Dbuild.compiler.emacs=true;-Xrs echo The service '%SERVICE_NAME%' has been installed :end cd %CURRENT_DIR% - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.24 Service Install Syntax
Thanks Jacob: There is a paragraph in changelog.txt about Procrun 2 binaries. The Apache Commons Daemon page still does not reflect this change. I've found the sources in http://jakarta.apache.org/~mturk/procrun2M3.zip. There is no html documentation there, but reading the sources, I'm trying to find I'm looking for. Thanks for your time. Hector./ Jacob Kjome wrote: Hi Tomcat gurus: I've read carefully service.bat from Tomcat 5.0.19 and Apache Commons Daemon, and built a customized script for Windows 2000. But service installation syntax changed in Tomcat 5.0.24. I could'n find any new explanation in Commons Daemon page. I've observed tomcat.exe has changed to tomcat5.exe too. Can anybody send me any hint ? I need customize the serice installation script. Thanks in Advance. When you says service installation syntax changed in Tomcat 5.0.24, I'm not quite sure what you mean. You still just do... %CATALINA_HOME%\bin\service install The syntax of the service.bat file itself changed a bit, if that is what you mean. Yes, it is. It should be relatively straightforward to customize. Just follow the pattern that is already there. I customize the script myself. Maybe that would help. I'm attaching it to this email renamed to .txt so it doesn't get filtered out. Jake
RE: Tomcat windows service
You need to set the ImagePath variable in the service parameters and re-install the service. -Original Message- From: John MccLain [mailto:[EMAIL PROTECTED] Sent: 23 March 2004 03:06 AM To: Tomcat user list Subject: Tomcat windows service How do I set the classpath for Tomcat when it runs as a service? I can do it in setclasspath.bat when I run it stand-alone, but this is not what I want to do - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** Everything in this e-mail and attachments relating to the official business of MultiChoice Africa is proprietary to the company. Any view or opinion expressed in this message may be the view of the individual and should not automatically be ascribed to the company. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat windows service
The service wrapper uses the value of the ImagePath as the classpath. The easiest way is to set it via the GUI, but you can also modify service.bat. John MccLain [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How do I set the classpath for Tomcat when it runs as a service? I can do it in setclasspath.bat when I run it stand-alone, but this is not what I want to do - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.2 Service
Howdy, How do you have it configured now? Also, if you could use 5.0.6 for your testing instead that'd be great! Yoav Shapira Millennium ChemInformatics -Original Message- From: vikas jain [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 12:06 PM To: [EMAIL PROTECTED] Subject: Tomcat 5.0.2 Service Hey there, I have windows XP, tomcat 5.0 and jdk1.4.1_01. when I log out from the system, tomcat stops itself. Do you have any idea how I can configure tomcat or some other services so that it can run after logging off windows. Thanks, Vikas _ Latest movie trailers. On your mobile. http://server1.msn.co.in/sp03/gprs/howcani_movie.asp With GPRS. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.2 Service
I have it as service rt now. and service stops once you log off. From: Shapira, Yoav [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Tomcat 5.0.2 Service Date: Mon, 4 Aug 2003 12:11:20 -0400 Howdy, How do you have it configured now? Also, if you could use 5.0.6 for your testing instead that'd be great! Yoav Shapira Millennium ChemInformatics -Original Message- From: vikas jain [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 12:06 PM To: [EMAIL PROTECTED] Subject: Tomcat 5.0.2 Service Hey there, I have windows XP, tomcat 5.0 and jdk1.4.1_01. when I log out from the system, tomcat stops itself. Do you have any idea how I can configure tomcat or some other services so that it can run after logging off windows. Thanks, Vikas _ Latest movie trailers. On your mobile. http://server1.msn.co.in/sp03/gprs/howcani_movie.asp With GPRS. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Going on a holiday? Want to study abroad? http://server1.msn.co.in/msnleads/citibankpersonalloan/citibankploanjuly03.asp?type=txt Need a personal loan? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat NT service memory
I had to bump up the default memory size as well, and didn't get consistent results from CATALINA_OPTS (for example, which user was used to start the service, etc), so I changed wrapper.properties, and hard-coded the memory stuff in. Example: snippet wrapper.cmd_line=$(wrapper.javabin) -Xrs -Xms128m -Xmx256m {remainder of default line} /snippet I used jk_service_nt to create the service because that was available when we first started using TC. Even though I have upgraded, I still use the same service, etc, not what comes as part of the newer installation routine. Not sure if the newer routine still uses wrapper.properties or not... John -Original Message- From: Vladimer Shioshvili [mailto:[EMAIL PROTECTED]] Sent: Monday, February 03, 2003 11:34 AM To: Tomcat Users List Subject: tomcat NT service memory Hi, I am experiencing problems with Tomcat because of default JVM memory size and want to let it use more memory. The only way i know is to change/add environmental variable for the service in the registry (CATALINA_OPTS=-Xmx256m)... However, i am not sure if this is the best/correct way. Could anyone either confirm that this is the correct approach, or give me suggestions. Thanks, Vlad Vladimer Shioshvili QRC Division of Macro International Inc. 7315 Wisconsin Avenue, Suite 400W Bethesda, MD 20814 Phone: (301) 657 3077 ext. 155 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat as service
That's wonderful and all, but it still doesn't change the fact that Tomcat doesn't run as a service with 1.4.1_01. I also have this problem. -B [EMAIL PROTECTED] 12/26/02 09:49AM We use the Java Wrapper Service with JDK 1.4 to run Tomcat as an NT service. You can find it at: http://wrapper.sourceforge.net/doc/english/index.html In addition to working cross platform (Windows NT and Unix), you can test the service from the command line before and after installing it. They supply sample configurations for Tomcat. Gary Herwig Posedu wrote: hi! i tried to run tomcat as service with jdk14 and i doesnt work. there is no error. with jdk 1.3 there were no problems. is there any nown bug with version 1.4 of jdk thx for helping,.. herwig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Gary Gwin CEO and Founder Cafesoft 858.455.1800 x205 http://www.cafesoft.com * * * * The Cafesoft Access Management System, Cams, is security* * software that provides single sign-on authentication and* * centralized access control for Apache, Tomcat, and custom * * resources. * * * * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat as service
That's funny, I have had it running as a service on Win2K for nearly 3 weeks. Guess I better tell the user's its not working. To answer the original question; no, there are no known issues. I don't use the wrapper, I simply select the Run as service option when I install Tomcat. -Original Message- From: Becky Phaneuf [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 12:20 PM To: [EMAIL PROTECTED] Subject: Re: tomcat as service That's wonderful and all, but it still doesn't change the fact that Tomcat doesn't run as a service with 1.4.1_01. I also have this problem. -B [EMAIL PROTECTED] 12/26/02 09:49AM We use the Java Wrapper Service with JDK 1.4 to run Tomcat as an NT service. You can find it at: http://wrapper.sourceforge.net/doc/english/index.html In addition to working cross platform (Windows NT and Unix), you can test the service from the command line before and after installing it. They supply sample configurations for Tomcat. Gary Herwig Posedu wrote: hi! i tried to run tomcat as service with jdk14 and i doesnt work. there is no error. with jdk 1.3 there were no problems. is there any nown bug with version 1.4 of jdk thx for helping,.. herwig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Gary Gwin CEO and Founder Cafesoft 858.455.1800 x205 http://www.cafesoft.com * * * * The Cafesoft Access Management System, Cams, is security* * software that provides single sign-on authentication and* * centralized access control for Apache, Tomcat, and custom * * resources. * * * * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat as service
Please verify the exact version of Java and Tomcat you've got on that machine. Thanks -B [EMAIL PROTECTED] 12/30/02 09:37AM That's funny, I have had it running as a service on Win2K for nearly 3 weeks. Guess I better tell the user's its not working. To answer the original question; no, there are no known issues. I don't use the wrapper, I simply select the Run as service option when I install Tomcat. -Original Message- From: Becky Phaneuf [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 12:20 PM To: [EMAIL PROTECTED] Subject: Re: tomcat as service That's wonderful and all, but it still doesn't change the fact that Tomcat doesn't run as a service with 1.4.1_01. I also have this problem. -B [EMAIL PROTECTED] 12/26/02 09:49AM We use the Java Wrapper Service with JDK 1.4 to run Tomcat as an NT service. You can find it at: http://wrapper.sourceforge.net/doc/english/index.html In addition to working cross platform (Windows NT and Unix), you can test the service from the command line before and after installing it. They supply sample configurations for Tomcat. Gary Herwig Posedu wrote: hi! i tried to run tomcat as service with jdk14 and i doesnt work. there is no error. with jdk 1.3 there were no problems. is there any nown bug with version 1.4 of jdk thx for helping,.. herwig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Gary Gwin CEO and Founder Cafesoft 858.455.1800 x205 http://www.cafesoft.com * * * * The Cafesoft Access Management System, Cams, is security* * software that provides single sign-on authentication and* * centralized access control for Apache, Tomcat, and custom * * resources. * * * * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat as service
Tomcat 4.0.4 and Java 1.4.1_01-b01 in production. Tomcat 4.0.6 and Java 1.4.1_01-b01 for development. -Original Message- From: Becky Phaneuf [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 12:41 PM To: [EMAIL PROTECTED] Subject: RE: tomcat as service Please verify the exact version of Java and Tomcat you've got on that machine. Thanks -B [EMAIL PROTECTED] 12/30/02 09:37AM That's funny, I have had it running as a service on Win2K for nearly 3 weeks. Guess I better tell the user's its not working. To answer the original question; no, there are no known issues. I don't use the wrapper, I simply select the Run as service option when I install Tomcat. -Original Message- From: Becky Phaneuf [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 12:20 PM To: [EMAIL PROTECTED] Subject: Re: tomcat as service That's wonderful and all, but it still doesn't change the fact that Tomcat doesn't run as a service with 1.4.1_01. I also have this problem. -B [EMAIL PROTECTED] 12/26/02 09:49AM We use the Java Wrapper Service with JDK 1.4 to run Tomcat as an NT service. You can find it at: http://wrapper.sourceforge.net/doc/english/index.html In addition to working cross platform (Windows NT and Unix), you can test the service from the command line before and after installing it. They supply sample configurations for Tomcat. Gary Herwig Posedu wrote: hi! i tried to run tomcat as service with jdk14 and i doesnt work. there is no error. with jdk 1.3 there were no problems. is there any nown bug with version 1.4 of jdk thx for helping,.. herwig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Gary Gwin CEO and Founder Cafesoft 858.455.1800 x205 http://www.cafesoft.com * * * * The Cafesoft Access Management System, Cams, is security* * software that provides single sign-on authentication and* * centralized access control for Apache, Tomcat, and custom * * resources. * * * * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat as service
There's the difference. We are using Tomcat 4.1.18. I didn't see the problem in earlier Tomcat versions either. -B [EMAIL PROTECTED] 12/30/02 09:48AM Tomcat 4.0.4 and Java 1.4.1_01-b01 in production. Tomcat 4.0.6 and Java 1.4.1_01-b01 for development. -Original Message- From: Becky Phaneuf [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 12:41 PM To: [EMAIL PROTECTED] Subject: RE: tomcat as service Please verify the exact version of Java and Tomcat you've got on that machine. Thanks -B [EMAIL PROTECTED] 12/30/02 09:37AM That's funny, I have had it running as a service on Win2K for nearly 3 weeks. Guess I better tell the user's its not working. To answer the original question; no, there are no known issues. I don't use the wrapper, I simply select the Run as service option when I install Tomcat. -Original Message- From: Becky Phaneuf [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 12:20 PM To: [EMAIL PROTECTED] Subject: Re: tomcat as service That's wonderful and all, but it still doesn't change the fact that Tomcat doesn't run as a service with 1.4.1_01. I also have this problem. -B [EMAIL PROTECTED] 12/26/02 09:49AM We use the Java Wrapper Service with JDK 1.4 to run Tomcat as an NT service. You can find it at: http://wrapper.sourceforge.net/doc/english/index.html In addition to working cross platform (Windows NT and Unix), you can test the service from the command line before and after installing it. They supply sample configurations for Tomcat. Gary Herwig Posedu wrote: hi! i tried to run tomcat as service with jdk14 and i doesnt work. there is no error. with jdk 1.3 there were no problems. is there any nown bug with version 1.4 of jdk thx for helping,.. herwig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Gary Gwin CEO and Founder Cafesoft 858.455.1800 x205 http://www.cafesoft.com * * * * The Cafesoft Access Management System, Cams, is security* * software that provides single sign-on authentication and* * centralized access control for Apache, Tomcat, and custom * * resources. * * * * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat as service
Are you sure? I setup Apache and Tomcat with 1.4.1_01 last Friday night and it works like a charm on XP Pro. Apache 2.0.43 Tomcat 4.1.18 JDK 1.4.1_01 Apache and Tomcat running as services. I created a HOWTO for the process: http://www.johnturner.com/howto John -Original Message- From: Becky Phaneuf To: [EMAIL PROTECTED] Sent: 12/30/02 12:19 PM Subject: Re: tomcat as service That's wonderful and all, but it still doesn't change the fact that Tomcat doesn't run as a service with 1.4.1_01. I also have this problem. -B [EMAIL PROTECTED] 12/26/02 09:49AM We use the Java Wrapper Service with JDK 1.4 to run Tomcat as an NT service. You can find it at: http://wrapper.sourceforge.net/doc/english/index.html In addition to working cross platform (Windows NT and Unix), you can test the service from the command line before and after installing it. They supply sample configurations for Tomcat. Gary Herwig Posedu wrote: hi! i tried to run tomcat as service with jdk14 and i doesnt work. there is no error. with jdk 1.3 there were no problems. is there any nown bug with version 1.4 of jdk thx for helping,.. herwig --- - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Gary Gwin CEO and Founder Cafesoft 858.455.1800 x205 http://www.cafesoft.com * * * * The Cafesoft Access Management System, Cams, is security* * software that provides single sign-on authentication and* * centralized access control for Apache, Tomcat, and custom * * resources. * * * * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat as service
I'm using 2.0.43, 4.1.18, and JDK 1.4.1_01, XP Pro. Works like a charm, though it's just a desktop...I haven't done anything serious with it, or put it under extreme loads. John -Original Message- From: Becky Phaneuf To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: 12/30/02 1:07 PM Subject: RE: tomcat as service There's the difference. We are using Tomcat 4.1.18. I didn't see the problem in earlier Tomcat versions either. -B [EMAIL PROTECTED] 12/30/02 09:48AM Tomcat 4.0.4 and Java 1.4.1_01-b01 in production. Tomcat 4.0.6 and Java 1.4.1_01-b01 for development. -Original Message- From: Becky Phaneuf [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 12:41 PM To: [EMAIL PROTECTED] Subject: RE: tomcat as service Please verify the exact version of Java and Tomcat you've got on that machine. Thanks -B [EMAIL PROTECTED] 12/30/02 09:37AM That's funny, I have had it running as a service on Win2K for nearly 3 weeks. Guess I better tell the user's its not working. To answer the original question; no, there are no known issues. I don't use the wrapper, I simply select the Run as service option when I install Tomcat. -Original Message- From: Becky Phaneuf [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 12:20 PM To: [EMAIL PROTECTED] Subject: Re: tomcat as service That's wonderful and all, but it still doesn't change the fact that Tomcat doesn't run as a service with 1.4.1_01. I also have this problem. -B [EMAIL PROTECTED] 12/26/02 09:49AM We use the Java Wrapper Service with JDK 1.4 to run Tomcat as an NT service. You can find it at: http://wrapper.sourceforge.net/doc/english/index.html In addition to working cross platform (Windows NT and Unix), you can test the service from the command line before and after installing it. They supply sample configurations for Tomcat. Gary Herwig Posedu wrote: hi! i tried to run tomcat as service with jdk14 and i doesnt work. there is no error. with jdk 1.3 there were no problems. is there any nown bug with version 1.4 of jdk thx for helping,.. herwig --- - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Gary Gwin CEO and Founder Cafesoft 858.455.1800 x205 http://www.cafesoft.com * * * * The Cafesoft Access Management System, Cams, is security* * software that provides single sign-on authentication and* * centralized access control for Apache, Tomcat, and custom * * resources. * * * * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat as service
We're not running XP Pro, but I'll give your how to a shot. -B [EMAIL PROTECTED] 12/30/02 10:17AM Are you sure? I setup Apache and Tomcat with 1.4.1_01 last Friday night and it works like a charm on XP Pro. Apache 2.0.43 Tomcat 4.1.18 JDK 1.4.1_01 Apache and Tomcat running as services. I created a HOWTO for the process: http://www.johnturner.com/howto John -Original Message- From: Becky Phaneuf To: [EMAIL PROTECTED] Sent: 12/30/02 12:19 PM Subject: Re: tomcat as service That's wonderful and all, but it still doesn't change the fact that Tomcat doesn't run as a service with 1.4.1_01. I also have this problem. -B [EMAIL PROTECTED] 12/26/02 09:49AM We use the Java Wrapper Service with JDK 1.4 to run Tomcat as an NT service. You can find it at: http://wrapper.sourceforge.net/doc/english/index.html In addition to working cross platform (Windows NT and Unix), you can test the service from the command line before and after installing it. They supply sample configurations for Tomcat. Gary Herwig Posedu wrote: hi! i tried to run tomcat as service with jdk14 and i doesnt work. there is no error. with jdk 1.3 there were no problems. is there any nown bug with version 1.4 of jdk thx for helping,.. herwig --- - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Gary Gwin CEO and Founder Cafesoft 858.455.1800 x205 http://www.cafesoft.com * * * * The Cafesoft Access Management System, Cams, is security* * software that provides single sign-on authentication and* * centralized access control for Apache, Tomcat, and custom * * resources. * * * * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat as service
I'm running Apache 2.0.43, Tomcat 4.1.18, and JDK 1.4.1_01 on Win2k(SP3) and it fired up as a service out of the box. I'm only using it as a test machine but have deployed some .war's against it and it worked as advertised. Regards, Drew -Original Message- From: Becky Phaneuf [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 1:25 PM To: [EMAIL PROTECTED] Subject: RE: tomcat as service We're not running XP Pro, but I'll give your how to a shot. -B [EMAIL PROTECTED] 12/30/02 10:17AM Are you sure? I setup Apache and Tomcat with 1.4.1_01 last Friday night and it works like a charm on XP Pro. Apache 2.0.43 Tomcat 4.1.18 JDK 1.4.1_01 Apache and Tomcat running as services. I created a HOWTO for the process: http://www.johnturner.com/howto John -Original Message- From: Becky Phaneuf To: [EMAIL PROTECTED] Sent: 12/30/02 12:19 PM Subject: Re: tomcat as service That's wonderful and all, but it still doesn't change the fact that Tomcat doesn't run as a service with 1.4.1_01. I also have this problem. -B [EMAIL PROTECTED] 12/26/02 09:49AM We use the Java Wrapper Service with JDK 1.4 to run Tomcat as an NT service. You can find it at: http://wrapper.sourceforge.net/doc/english/index.html In addition to working cross platform (Windows NT and Unix), you can test the service from the command line before and after installing it. They supply sample configurations for Tomcat. Gary Herwig Posedu wrote: hi! i tried to run tomcat as service with jdk14 and i doesnt work. there is no error. with jdk 1.3 there were no problems. is there any nown bug with version 1.4 of jdk thx for helping,.. herwig --- - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Gary Gwin CEO and Founder Cafesoft 858.455.1800 x205 http://www.cafesoft.com * * * * The Cafesoft Access Management System, Cams, is security* * software that provides single sign-on authentication and* * centralized access control for Apache, Tomcat, and custom * * resources. * * * * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat as service
Mine worked out of the box as well. However, after stopping the NT service, starting the server using the batch file, deploying a war, shutting the server down via batch, restarting it via batch, confirming it runs without errors, shutting it down via batch, and THEN attempting to starting it as a service, it wouldn't start but there were also no errors. Note again, none of you have the same exact configuration. I believe it's a service pack 2 thing, but we're not allowed to upgrade to SP3 to test that theory. -B [EMAIL PROTECTED] 12/30/02 10:30AM I'm running Apache 2.0.43, Tomcat 4.1.18, and JDK 1.4.1_01 on Win2k(SP3) and it fired up as a service out of the box. I'm only using it as a test machine but have deployed some .war's against it and it worked as advertised. Regards, Drew -Original Message- From: Becky Phaneuf [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 1:25 PM To: [EMAIL PROTECTED] Subject: RE: tomcat as service We're not running XP Pro, but I'll give your how to a shot. -B [EMAIL PROTECTED] 12/30/02 10:17AM Are you sure? I setup Apache and Tomcat with 1.4.1_01 last Friday night and it works like a charm on XP Pro. Apache 2.0.43 Tomcat 4.1.18 JDK 1.4.1_01 Apache and Tomcat running as services. I created a HOWTO for the process: http://www.johnturner.com/howto John -Original Message- From: Becky Phaneuf To: [EMAIL PROTECTED] Sent: 12/30/02 12:19 PM Subject: Re: tomcat as service That's wonderful and all, but it still doesn't change the fact that Tomcat doesn't run as a service with 1.4.1_01. I also have this problem. -B [EMAIL PROTECTED] 12/26/02 09:49AM We use the Java Wrapper Service with JDK 1.4 to run Tomcat as an NT service. You can find it at: http://wrapper.sourceforge.net/doc/english/index.html In addition to working cross platform (Windows NT and Unix), you can test the service from the command line before and after installing it. They supply sample configurations for Tomcat. Gary Herwig Posedu wrote: hi! i tried to run tomcat as service with jdk14 and i doesnt work. there is no error. with jdk 1.3 there were no problems. is there any nown bug with version 1.4 of jdk thx for helping,.. herwig --- - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Gary Gwin CEO and Founder Cafesoft 858.455.1800 x205 http://www.cafesoft.com * * * * The Cafesoft Access Management System, Cams, is security* * software that provides single sign-on authentication and* * centralized access control for Apache, Tomcat, and custom * * resources. * * * * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat as service
Hello Herwig, Did you uninstall the service and then re-install it with the new JAVA_HOME path? You need to do this after you change any path in your configuration as it relates to the Tomcat NT service. http://www.mattkelli.com/tech/tomcat/ntservice.htm Jake Wednesday, December 25, 2002, 12:07:12 PM, you wrote: HP hi! HP i tried to run tomcat as service with jdk14 and i doesnt work. there is HP no error. with jdk 1.3 there were no problems. is there any nown bug HP with version 1.4 of jdk HP thx for helping,.. HP herwig -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat as service
We use the Java Wrapper Service with JDK 1.4 to run Tomcat as an NT service. You can find it at: http://wrapper.sourceforge.net/doc/english/index.html In addition to working cross platform (Windows NT and Unix), you can test the service from the command line before and after installing it. They supply sample configurations for Tomcat. Gary Herwig Posedu wrote: hi! i tried to run tomcat as service with jdk14 and i doesnt work. there is no error. with jdk 1.3 there were no problems. is there any nown bug with version 1.4 of jdk thx for helping,.. herwig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Gary Gwin CEO and Founder Cafesoft 858.455.1800 x205 http://www.cafesoft.com * * * * The Cafesoft Access Management System, Cams, is security* * software that provides single sign-on authentication and* * centralized access control for Apache, Tomcat, and custom * * resources. * * * * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat NT Service Runtime.exec()
At least, doing so you should be able to test you are doing things well. We have developed a service (an internal project, not Tomcat related), and it's able to execute any program, including shells. Check the security policy used by your Tomcat service. Perhaps you are not allowed to call the Runtime.exec() method. - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, November 25, 2002 5:29 PM Subject: Re: Tomcat NT Service Runtime.exec() For each NT service, there is an option called Allow service to interact with desktop under Properties / Log On. Check that option and what you ask for should work just fine. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat NT Service Runtime.exec()
Hey everybody, Thanks for all of the replies. I was actually testing this code on the actual production web server (which I shouldn't have been doing in the first place) and when I found out that I was unable to execute any programs while logged on as myself I assumed it was a shortcoming of running Tomcat as a service. However if I run the same JSP page using a browser on another computer, it works fine. Rodrigo and Jacob were right in that checking the Allow service to interact with desktop this JSP page will properly execute any programs or shell commands while I am logged onto the web server computer as a user thereby allowing me to test that my code is functioning correctly. Newbie mistake. Anyways, thanks to everyone who replied. --- Rodrigo Ruiz [EMAIL PROTECTED] wrote: At least, doing so you should be able to test you are doing things well. We have developed a service (an internal project, not Tomcat related), and it's able to execute any program, including shells. Check the security policy used by your Tomcat service. Perhaps you are not allowed to call the Runtime.exec() method. - Original Message - From: Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, November 25, 2002 5:29 PM Subject: Re: Tomcat NT Service Runtime.exec() For each NT service, there is an option called Allow service to interact with desktop under Properties / Log On. Check that option and what you ask for should work just fine. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat NT Service Runtime.exec()
For each NT service, there is an option called Allow service to interact with desktop under Properties / Log On. Check that option and what you ask for should work just fine. Jake At 09:03 PM 11/22/2002 -0800, you wrote: Hi, Through much trial and error, I finally determined that using the Runtime.exec() in a JSP page might not be possible when serving with a Tomcat server that is being run as a NT service. It seems that when running Tomcat as a service, it is not possible to call the console. If I stop the service and load Tomcat as a stand-alone application, my JSP pages load without a hitch. Unfortunately, I think we will need to continue running Tomcat as a service. If that is the case, is there anyway to run external programs from JSP pages? __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat NT Service Runtime.exec()
I am running cmds ok from win200 with tomcat 4.12 have ago wuth this example - It migth be bad code but it works ok with and pinted as html escape code (#60; and #62;). Regards, Simon HTML BODY %@page language=java import=java.sql.*% %@page import=java.io.* % %@page import=java.util.* % %@page import=java.text.* % %! public String shellCommand(String cmd) { try { Runtime rt = Runtime.getRuntime(); Process p = rt.exec(cmd); int i; StringBuffer buf = new StringBuffer(); InputStream os=p.getInputStream(); while((i=os.read()) != -1) { if (i == 60 ) buf.append(#60;); else if (i == 62 ) buf.append(#62;); else buf.append((char)i); } return buf.toString(); }catch (Exception e) { return error + e; } } % h1ipconfig/h1 pre %= shellCommand(cmd /C ipconfig /all ) % /pre /BODY /HTML Jason Cheng wrote: Hi, Through much trial and error, I finally determined that using the Runtime.exec() in a JSP page might not be possible when serving with a Tomcat server that is being run as a NT service. It seems that when running Tomcat as a service, it is not possible to call the console. If I stop the service and load Tomcat as a stand-alone application, my JSP pages load without a hitch. Unfortunately, I think we will need to continue running Tomcat as a service. If that is the case, is there anyway to run external programs from JSP pages? __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat NT Service Runtime.exec()
I am comfortable with Java security though, but I would not place such code in the live site. Man! you guys got a lot of guts to do that. :-) Pae I am running cmds ok from win200 with tomcat 4.12 have ago wuth this example - It migth be bad code but it works ok with and pinted as html escape code (#60; and #62;). Regards, Simon HTML BODY %@page language=java import=java.sql.*% %@page import=java.io.* % %@page import=java.util.* % %@page import=java.text.* % %! public String shellCommand(String cmd) { try { Runtime rt = Runtime.getRuntime(); Process p = rt.exec(cmd); int i; StringBuffer buf = new StringBuffer(); InputStream os=p.getInputStream(); while((i=os.read()) != -1) { if (i == 60 ) buf.append(#60;); else if (i == 62 ) buf.append(#62;); else buf.append((char)i); } return buf.toString(); }catch (Exception e) { return error + e; } } % h1ipconfig/h1 pre %= shellCommand(cmd /C ipconfig /all ) % /pre /BODY /HTML Jason Cheng wrote: Hi, Through much trial and error, I finally determined that using the Runtime.exec() in a JSP page might not be possible when serving with a Tomcat server that is being run as a NT service. It seems that when running Tomcat as a service, it is not possible to call the console. If I stop the service and load Tomcat as a stand-alone application, my JSP pages load without a hitch. Unfortunately, I think we will need to continue running Tomcat as a service. If that is the case, is there anyway to run external programs from JSP pages? __ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat NT Service hogs 90% CPU - intermittent problem
Many thanks Ben I've similarly NOT YET seen the 90% CPU on a jdk1.4 and tomcat 4.1.12 system I set up with much the same webapps as the one that's thrashing I noticed some old mailing list messages related to this problem that talked about garbage collection, and I had begun to wonder whether 90% CPU was a jdk problem rather than a tomcat problem and your experience supports this. Do you - or anyone else - know the pedigree of tomcat.exe? Is it basically JavaService? Also, has anyone any ideas how I might get -verbose:gc output from it? I can do this with catalina_opts for catalina.bat, but adding the -verbose:gc parameter to the registry key for the NT service doesn't seem to result in any output for -verbose:gc, though the -Xms64m and -Xrs parameters I've added do seem to be actioned. Thanks again Ben -Original Message- From: Ben Walding [mailto:ben;walding.com] Sent: 06 November 2002 07:14 To: Tomcat Users List Subject: Re: Tomcat NT Service hogs 90% CPU - intermittent problem I had this problem at one point (4.1.10, and no IIS in my config though) My solution was to upgrade to 4.1.12 and upgrade the JDK to 1.4.1.01, this seemed to work. No idea what caused it though. Christopher Watson wrote: Hello All, Currently my config is TOMCAT 4.1.12 jdk1.3.1_03 Windows 2000 Pro NT Service configured using the server\jvm.dll with -Xrs IIS 5.0 ISAPI_REDIRECTOR version 2.0 using workers.properties however I have had this problem many times with different tomcat versions in the past. Suddenly, for no apparent reason - high load/ no load/ different webapps/ doesn't seem to make any difference ... tomcat.exe grabs 90% of cpu and won't let go of it. Nothing unexpected appears in the logs Has anyone seen this and know a way round it? Failing that, could they suggest any logging I could turn on (and how) to try and diagnose the problem. As I say, I've had it with various combinations of applications in webapps. I THINK it ONLY happens with the NT Service tomcat.exe, I'm pretty sure I've not seen it by running catalina.bat Sometimes it happens if I restart the machine and leave it. Other times I may not encounter it for a couple of days. If I leave about a week, then it almost always turns up. Any help much appreciated . Christopher -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Tomcat NT Service hogs 90% CPU - intermittent problem
I didn't notice the java processes thrashing. When I checked task manager it was just the tomcat.exe that was at high cpu usage. I also don't know where the tomcat.exe comes from, presumably someone builds it at the same time they build the install wizard etc. You could try -Xloggc:file (from JDK1.4.1 - no idea if it exists on anything earlier) Christopher Watson wrote: Many thanks Ben I've similarly NOT YET seen the 90% CPU on a jdk1.4 and tomcat 4.1.12 system I set up with much the same webapps as the one that's thrashing I noticed some old mailing list messages related to this problem that talked about garbage collection, and I had begun to wonder whether 90% CPU was a jdk problem rather than a tomcat problem and your experience supports this. Do you - or anyone else - know the pedigree of tomcat.exe? Is it basically JavaService? Also, has anyone any ideas how I might get -verbose:gc output from it? I can do this with catalina_opts for catalina.bat, but adding the -verbose:gc parameter to the registry key for the NT service doesn't seem to result in any output for -verbose:gc, though the -Xms64m and -Xrs parameters I've added do seem to be actioned. Thanks again Ben -Original Message- From: Ben Walding [mailto:ben;walding.com] Sent: 06 November 2002 07:14 To: Tomcat Users List Subject: Re: Tomcat NT Service hogs 90% CPU - intermittent problem I had this problem at one point (4.1.10, and no IIS in my config though) My solution was to upgrade to 4.1.12 and upgrade the JDK to 1.4.1.01, this seemed to work. No idea what caused it though. Christopher Watson wrote: Hello All, Currently my config is TOMCAT 4.1.12 jdk1.3.1_03 Windows 2000 Pro NT Service configured using the server\jvm.dll with -Xrs IIS 5.0 ISAPI_REDIRECTOR version 2.0 using workers.properties however I have had this problem many times with different tomcat versions in the past. Suddenly, for no apparent reason - high load/ no load/ different webapps/ doesn't seem to make any difference ... tomcat.exe grabs 90% of cpu and won't let go of it. Nothing unexpected appears in the logs Has anyone seen this and know a way round it? Failing that, could they suggest any logging I could turn on (and how) to try and diagnose the problem. As I say, I've had it with various combinations of applications in webapps. I THINK it ONLY happens with the NT Service tomcat.exe, I'm pretty sure I've not seen it by running catalina.bat Sometimes it happens if I restart the machine and leave it. Other times I may not encounter it for a couple of days. If I leave about a week, then it almost always turns up. Any help much appreciated . Christopher -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Tomcat NT Service hogs 90% CPU - intermittent problem
I had this problem at one point (4.1.10, and no IIS in my config though) My solution was to upgrade to 4.1.12 and upgrade the JDK to 1.4.1.01, this seemed to work. No idea what caused it though. Christopher Watson wrote: Hello All, Currently my config is TOMCAT 4.1.12 jdk1.3.1_03 Windows 2000 Pro NT Service configured using the server\jvm.dll with -Xrs IIS 5.0 ISAPI_REDIRECTOR version 2.0 using workers.properties however I have had this problem many times with different tomcat versions in the past. Suddenly, for no apparent reason - high load/ no load/ different webapps/ doesn't seem to make any difference ... tomcat.exe grabs 90% of cpu and won't let go of it. Nothing unexpected appears in the logs Has anyone seen this and know a way round it? Failing that, could they suggest any logging I could turn on (and how) to try and diagnose the problem. As I say, I've had it with various combinations of applications in webapps. I THINK it ONLY happens with the NT Service tomcat.exe, I'm pretty sure I've not seen it by running catalina.bat Sometimes it happens if I restart the machine and leave it. Other times I may not encounter it for a couple of days. If I leave about a week, then it almost always turns up. Any help much appreciated . Christopher -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Tomcat 4.1.12 Service problem vs. Tomcat Command Line
Hi, please check your registry, if the JVM Library key at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters points to the correct JVM (the one where you put your jars). Btw, why do you want to put your jars into jre/lib/ext? I think there's a passage in the Configuration Reference (Tomcat documentation) that tells you to put nothing into jre/lib/ext, cause Tomcat might not recognize these jars. Regards, Christine -Original Message- From: Matt Fury [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 4:34 PM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.12 Service problem vs. Tomcat Command Line Forgive me if I am overlooking something stupid but I am having a problem getting ANY classes recognized via the Tomcat service but when I run the command line version everything works fine. I don't recall having this problem in earlier versions of Tomcat (circa 4.0.4) I am running the latest J2DSK 1.4.1 and the latest Stable Tomcat 4.1.12 I put my jars in the jre/lib/ext and Tomcat is just not picking them up. I am also putting these classes in the classes folder for Tomcat and no dice. I think its strange that the Tomcat dos command line startup finds these classes fine. Any suggestions? = int myName() { cout -Matt Fury \n; return 0; } __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1.12 Service problem vs. Tomcat Command Line
Hi! Thanks for your reply. I've checked the registry and everything looks ok. The only reason I put my jars in the jre/lib/ext was because I couldn't get them to be recognized in the Tomcat classes dir. Why would that be the case? I've set my classpath in Windows 2000 Pro as well. --- [EMAIL PROTECTED] wrote: Hi, please check your registry, if the JVM Library key at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters points to the correct JVM (the one where you put your jars). Btw, why do you want to put your jars into jre/lib/ext? I think there's a passage in the Configuration Reference (Tomcat documentation) that tells you to put nothing into jre/lib/ext, cause Tomcat might not recognize these jars. Regards, Christine -Original Message- From: Matt Fury [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 4:34 PM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.12 Service problem vs. Tomcat Command Line Forgive me if I am overlooking something stupid but I am having a problem getting ANY classes recognized via the Tomcat service but when I run the command line version everything works fine. I don't recall having this problem in earlier versions of Tomcat (circa 4.0.4) I am running the latest J2DSK 1.4.1 and the latest Stable Tomcat 4.1.12 I put my jars in the jre/lib/ext and Tomcat is just not picking them up. I am also putting these classes in the classes folder for Tomcat and no dice. I think its strange that the Tomcat dos command line startup finds these classes fine. Any suggestions? = int myName() { cout -Matt Fury \n; return 0; } __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] = int myName() { cout -Matt Fury \n; return 0; } __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat as service - space in path in wrapper.properties - workaround
An even easier solution is to select the NT Service option when installing Tomcat. Then you don't even need jk_nt_service. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 1:02 PM To: [EMAIL PROTECTED] Subject: Tomcat as service - space in path in wrapper.properties - workaround I didn't see this specific topic or workaround in the archives so thought I would share - since it seems like this could be a fairly common problem. I hope it saves someone a little time troubleshooting. _Situation_: Attempting to run tomcat 4.0.4 as a service on NT4.0 SP6 using jk_nt_service.exe. May apply to other versions of Tomcat and Windows as well. _Symptoms_: Command jk_nt_service -i tomcat -a wrappers.properties adds the service just fine, but attempting to start the service with command jk_nt_service -s tomcat or from NT Services panel fails. _Most Likely Cause_ (Of course you may have other problems that I don't know about, but this one will definitely hang you up): Spaces in your path definitions. For example, I originally had the setting: wrapper.tomcat_home=d:\Program Files\Apache Tomcat 4.0 Quoting the path with double or single quotes will not rectify the problem either. _Workaround_: Use Dir -X to find the short (DOS 8.3) names of your directories and use those instead. For example, my new path setting is: wrapper.tomcat_home=d:\PROGRA~1\APACHE~1.0 This will eliminate the spaces and the service will start happily. If this doesn't solve your problem, then you've got something else wrong and I can't help you. Good Luck Doug -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat as service - space in path in wrapper.properties - wor karound
Excellent. Thanks, Mark. I must have blown right past that when I originally installed. Wagoner, Mark MWagoner@wildfl To: 'Tomcat Users List' avors.com [EMAIL PROTECTED] cc: 10/01/02 11:04 Subject: RE: Tomcat as service - space in path in AM wrapper.properties - workaround Please respond to Tomcat Users List An even easier solution is to select the NT Service option when installing Tomcat. Then you don't even need jk_nt_service. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 1:02 PM To: [EMAIL PROTECTED] Subject: Tomcat as service - space in path in wrapper.properties - workaround I didn't see this specific topic or workaround in the archives so thought I would share - since it seems like this could be a fairly common problem. I hope it saves someone a little time troubleshooting. _Situation_: Attempting to run tomcat 4.0.4 as a service on NT4.0 SP6 using jk_nt_service.exe. May apply to other versions of Tomcat and Windows as well. _Symptoms_: Command jk_nt_service -i tomcat -a wrappers.properties adds the service just fine, but attempting to start the service with command jk_nt_service -s tomcat or from NT Services panel fails. _Most Likely Cause_ (Of course you may have other problems that I don't know about, but this one will definitely hang you up): Spaces in your path definitions. For example, I originally had the setting: wrapper.tomcat_home=d:\Program Files\Apache Tomcat 4.0 Quoting the path with double or single quotes will not rectify the problem either. _Workaround_: Use Dir -X to find the short (DOS 8.3) names of your directories and use those instead. For example, my new path setting is: wrapper.tomcat_home=d:\PROGRA~1\APACHE~1.0 This will eliminate the spaces and the service will start happily. If this doesn't solve your problem, then you've got something else wrong and I can't help you. Good Luck Doug -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat NT Service Bug??
Hiya, This may be off base, but mapped drives may only exist while you're logged in. When the service starts, it runs as 'System' for whom the mapped drive does not exist. I remember there was a way for NT to 'map' drives during startup, so that they are available to all users including system even when they're not logged in. Perhaps this is the problem? I've encountered similar problems with Windows programs and usually use a UNC path, rather than a mapped drive. e.g. \\yourserver\yourshare or what not. Perhaps another idea is to map the drive when the service starts and unmap it afterwards? Kimbo. DCG Media Ltd 147 London Road Kingston-upon-Thames Surrey KT2 6NH United Kingdom Tel: +44 (0)20 8541 0800 Fax: +44 (0)20 8546 8686 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.dcg-is-here.com http://www.dcg-is-here.com This communication as well as any files attached hereto (the Message) are the confidential property of DCG Media Ltd (the Sender) who own all copyrights therein. No part of this Message may be copied, forwarded, distributed or in any manner whatsoever disclosed to any third party without the written approval of the Sender. Whilst every effort has been made to ensure the correctness of this Message, the Sender does not accept liability for any errors or omissions in the content hereof, since neither the security, nor accuracy of email can be guaranteed by us. If you have received this message in error we offer a sincere apology for any inconvenience caused and request that you not act on or disclose the contents hereof to anyone, but that you inform the sender by return email, or contact: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Vinay Urs [mailto:[EMAIL PROTECTED]] Sent: 06 February 2002 12:46 To: [EMAIL PROTECTED] Subject: Tomcat NT Service Bug?? Hello there, We are encountering problems with Tomcat (versions 3.3 and 4.0.1). Our application, running on Tomcat on one machine, is creating directories on a remote file system. Tomcat is being started with a policy file. The application is able to pickup the remote file system if Tomcat is started from the command prompt with the -security feature. But if we start it as a NT service and not as a mapped drive, the mapped remote network drive is not being picked up. And our application is unable to create directories. Our policy file has the following entry for the drives: grant codeBase file:${catalina.home}/webapps/codwap/- { permission java.security.AllPermission; permission java.io.FilePermission ALL FILES, read, write, delete, execute; }; Any help is much appreciated. Thanks, Vinaty __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat NT Service Bug??
Thanks for the suggestion, Kim. We have changed the NT Service to run for a particular user and we are using UNC instead of mapped drives. But this has still not solved the problem. Vinay --- Kimberley Scott [EMAIL PROTECTED] wrote: Hiya, This may be off base, but mapped drives may only exist while you're logged in. When the service starts, it runs as 'System' for whom the mapped drive does not exist. I remember there was a way for NT to 'map' drives during startup, so that they are available to all users including system even when they're not logged in. Perhaps this is the problem? I've encountered similar problems with Windows programs and usually use a UNC path, rather than a mapped drive. e.g. \\yourserver\yourshare or what not. Perhaps another idea is to map the drive when the service starts and unmap it afterwards? Kimbo. DCG Media Ltd 147 London Road Kingston-upon-Thames Surrey KT2 6NH United Kingdom Tel: +44 (0)20 8541 0800 Fax: +44 (0)20 8546 8686 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.dcg-is-here.com http://www.dcg-is-here.com This communication as well as any files attached hereto (the Message) are the confidential property of DCG Media Ltd (the Sender) who own all copyrights therein. No part of this Message may be copied, forwarded, distributed or in any manner whatsoever disclosed to any third party without the written approval of the Sender. Whilst every effort has been made to ensure the correctness of this Message, the Sender does not accept liability for any errors or omissions in the content hereof, since neither the security, nor accuracy of email can be guaranteed by us. If you have received this message in error we offer a sincere apology for any inconvenience caused and request that you not act on or disclose the contents hereof to anyone, but that you inform the sender by return email, or contact: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Vinay Urs [mailto:[EMAIL PROTECTED]] Sent: 06 February 2002 12:46 To: [EMAIL PROTECTED] Subject: Tomcat NT Service Bug?? Hello there, We are encountering problems with Tomcat (versions 3.3 and 4.0.1). Our application, running on Tomcat on one machine, is creating directories on a remote file system. Tomcat is being started with a policy file. The application is able to pickup the remote file system if Tomcat is started from the command prompt with the -security feature. But if we start it as a NT service and not as a mapped drive, the mapped remote network drive is not being picked up. And our application is unable to create directories. Our policy file has the following entry for the drives: grant codeBase file:${catalina.home}/webapps/codwap/- { permission java.security.AllPermission; permission java.io.FilePermission ALL FILES, read, write, delete, execute; }; Any help is much appreciated. Thanks, Vinaty __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat NT Service Bug??
Please ignore the previous mail.. the solution works like a charm. Thanks a lot, Vinay --- Kimberley Scott [EMAIL PROTECTED] wrote: Hiya, This may be off base, but mapped drives may only exist while you're logged in. When the service starts, it runs as 'System' for whom the mapped drive does not exist. I remember there was a way for NT to 'map' drives during startup, so that they are available to all users including system even when they're not logged in. Perhaps this is the problem? I've encountered similar problems with Windows programs and usually use a UNC path, rather than a mapped drive. e.g. \\yourserver\yourshare or what not. Perhaps another idea is to map the drive when the service starts and unmap it afterwards? Kimbo. DCG Media Ltd 147 London Road Kingston-upon-Thames Surrey KT2 6NH United Kingdom Tel: +44 (0)20 8541 0800 Fax: +44 (0)20 8546 8686 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.dcg-is-here.com http://www.dcg-is-here.com This communication as well as any files attached hereto (the Message) are the confidential property of DCG Media Ltd (the Sender) who own all copyrights therein. No part of this Message may be copied, forwarded, distributed or in any manner whatsoever disclosed to any third party without the written approval of the Sender. Whilst every effort has been made to ensure the correctness of this Message, the Sender does not accept liability for any errors or omissions in the content hereof, since neither the security, nor accuracy of email can be guaranteed by us. If you have received this message in error we offer a sincere apology for any inconvenience caused and request that you not act on or disclose the contents hereof to anyone, but that you inform the sender by return email, or contact: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Vinay Urs [mailto:[EMAIL PROTECTED]] Sent: 06 February 2002 12:46 To: [EMAIL PROTECTED] Subject: Tomcat NT Service Bug?? Hello there, We are encountering problems with Tomcat (versions 3.3 and 4.0.1). Our application, running on Tomcat on one machine, is creating directories on a remote file system. Tomcat is being started with a policy file. The application is able to pickup the remote file system if Tomcat is started from the command prompt with the -security feature. But if we start it as a NT service and not as a mapped drive, the mapped remote network drive is not being picked up. And our application is unable to create directories. Our policy file has the following entry for the drives: grant codeBase file:${catalina.home}/webapps/codwap/- { permission java.security.AllPermission; permission java.io.FilePermission ALL FILES, read, write, delete, execute; }; Any help is much appreciated. Thanks, Vinaty __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat Win32 Service question
Open up wrapper.properties, scroll all the way to the bottom of the file where java.cmdline is defined and insert the arguments as appropriate. (It should be pretty straight forward) Randy -Original Message- From: Tom Bednarz [mailto:[EMAIL PROTECTED]] Sent: Monday, January 21, 2002 3:03 AM To: [EMAIL PROTECTED] Subject: Tomcat Win32 Service question Hi, I run Tomcat 4.0.1 on a Win2000 box as System Service. Is there any way to modify startup parameters? I like to define the memory settings of the VM by setting the following options: -Xms64M -Xmx256M wich will start Tomcat with a minimum of 64 MB and a maximum of 256 MB RAM. When starting from the command line I guess modifying the catalina.bat as follows would do the job: set CATALINA_OPTS=-Xms64M -Xmx256M What do I need to do make this change in the service mode? How is this service implemented? Is this a real service using the JNI API? If so where can I find the source for this? Many thanks for your help! Thomas -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat Win32 Service question
Hello Randy, My installation has no file called wrapper.properties! Where should this file be?? Thomas At 21.01.2002 13:44, you wrote: Open up wrapper.properties, scroll all the way to the bottom of the file where java.cmdline is defined and insert the arguments as appropriate. (It should be pretty straight forward) Randy -Original Message- From: Tom Bednarz [mailto:[EMAIL PROTECTED]] Sent: Monday, January 21, 2002 3:03 AM To: [EMAIL PROTECTED] Subject: Tomcat Win32 Service question Hi, I run Tomcat 4.0.1 on a Win2000 box as System Service. Is there any way to modify startup parameters? I like to define the memory settings of the VM by setting the following options: -Xms64M -Xmx256M wich will start Tomcat with a minimum of 64 MB and a maximum of 256 MB RAM. When starting from the command line I guess modifying the catalina.bat as follows would do the job: set CATALINA_OPTS=-Xms64M -Xmx256M What do I need to do make this change in the service mode? How is this service implemented? Is this a real service using the JNI API? If so where can I find the source for this? Many thanks for your help! Thomas -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4 Service SSL
Just did - :) I have been looking for this for about a week now. I prepared my post last night - but apparently - it wasn't needed. It must be too early... :) Thanks... Randy - Original Message - From: Lauer, Oliver [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, December 14, 2001 6:51 AM Subject: AW: Tomcat 4 Service SSL Have a look at the messages below: That's what I tried to tell but you explained it better than me :-) Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Guido Medina [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Dezember 2001 14:26 An: 'Tomcat Users List' Betreff: RE: Running as service... I found the main reason for this problem: when you download jsse 1.0.2 you put the jar files into JAVA_HOME/lib/ext directory but you have to do it also into Program Files/JavaSoft/JRE/lib/ext as well, that's why it works out with the startup.bat file and not with the service by itself because on the first case you execute the java_home/bin/java runtime but with the service is the JRE... Enjoy and get the experience with my case... Guido. SSL is working properly... Regards, Guido. -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 9:16 AM To: 'Tomcat Users List' Subject: AW: Running as service... Hi, I had similar problems and had two jre on my maschine. The one I used with the bats and one the NT service was using. I only added the jsse-libs to the jre the bats were using. You should add nothing to the registry. You should search the registry for the jre the service is using or have a look for which jre the service uses by regarding at something like C:\WIN\Profiles\o66183\Startmenü\Programme\Apache Tomcat 4.0\Start Tomcat.lnk Looking at the properties of the link you see if the java.exe is the same you are using within the bats. Oliver P.S. If that is not the problem it might be the location of the .keystore as well. AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Guido Medina [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Dezember 2001 13:57 An: 'Tomcat Users List' Betreff: RE: Running as service... I don't understand, What I should add to the registry ?, Will it be for the entire system or only for my user ?, I guest I missed something but I don't understand. Guido. -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 3:35 AM To: 'Tomcat Users List' Subject: AW: Running as service... I had the same problem and I had two different jre after installation of jdk1.3. The one I installed and I was aware of I fixed with the jsse-libs and this is the one I used within the bats but the service uses another runtime that was installed automatically anywhere within program files. Check for the jre the service uses regedit.exe and put the jsse-libs there, too. Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Guido Medina [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 13. Dezember 2001 22:13 An: '[EMAIL PROTECTED]' Betreff: Running as service... Hi, I have installed Tomcat 4.0.1 (the executable file that also installs the service) on Windows 2000 Pro, and it works properly, I added the SSL connector with the key and son, I also tested it, the problem is that is only posible to start tomcat from the Command line with startup.bat, but not with the service itself, what it could be ?, Enviroment variables ?, or what ?, I also tried it with startup and after https://myhost and it worked out at all, but it doesnt start as a service with Start/Administrative tools/Services/Apache tomcat/Start after put the SSL support inside server.xml. Thanks in advanced, Guido. Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist
RE: Tomcat 4 Service SSL
put the *.jar from jsse 1.0.2 into three locations as standard from now: 1) TOMCAT_HOME/lib 2) JAVA_HOME/lib/ext 3) JRE_HOME/lib/ext (Normally for JDK 1.3.1_01 is Program Files/JavaSoft/JRE/lib/ext) That's it... It is not a bug, it is an enviroment problem... Guido. -Original Message- From: Randy K. Secrist [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 9:48 AM To: Tomcat Users List Subject: Tomcat 4 Service SSL I spent an evening this week setting up Tomcat with SSL - generating the certificate and configuring Tomcat. I was able to get it to work - Hooray! However I noticed a problem that I haven't seen documented anywhere. After I uncomment the SSL connector in server.xml - Tomcat 4.0.1 will no longer start as a service (using windows NT 2000 server.) It does however start using startup.bat I am using a self generated ssl key - having followed the instructions in the documentation. Can anyone tell me if it is possible to run ssl with it running as a service - and if not, is this a documented issue that will be resolved in future versions of Tomcat? I don't think it is necessary that i post anything connector xml here, but if anyone thinks it might be necessary - i'll do it.. Thanks... Randy
Re: tomcat as service!
Vara Prashanth wrote: Hello all: I am trying to run tomcat 3.2.2 as a service on my machine. The problem however is I don't have the jk_nt_service.exe file! Can anyone of you please tell me if I can use any oher version of the file? I tried looking up the 3.2.2 on the apache site but it gets re-directed to the 3.2.3 binaries. Does that mean I can use the exe file from there. thanks Prashanth _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com just try it out. no harms.
Re: tomcat as service!
Vara, The binaries appear to be forward compatable. One interesting difference is that you have to use forward slashes in the newer version - the backslash directory separator no longer works when specifying the path to your configuration (wrapper.properties)file. A benefit of the newer version is you can specify the dependency of your Apache service on your Tomcat service from the command line rather than having to play around in the registry! Bruce - Original Message - From: Vara Prashanth [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 29, 2001 4:01 PM Subject: tomcat as service! Hello all: I am trying to run tomcat 3.2.2 as a service on my machine. The problem however is I don't have the jk_nt_service.exe file! Can anyone of you please tell me if I can use any oher version of the file? I tried looking up the 3.2.2 on the apache site but it gets re-directed to the 3.2.3 binaries. Does that mean I can use the exe file from there. thanks Prashanth _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Tomcat as Service Crashing.
hi, this means that the connection where closed by the client, not by yout Application. (a proxy for example buffers the data and closes the connection every time). cheers Robert - Original Message - From: Chauhan, Anand [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 14, 2001 5:10 PM Subject: RE: Tomcat as Service Crashing. Hi Rauh, I am having the same problem. Let me know if you get any positive replies. Thanks. Good Luck, -Andy -Original Message- From: Christian Rauh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 2:45 PM To: Tomcat User Discussion List Subject: Tomcat as Service Crashing. Dear People, I have set up Tomcat to work as a service in Win2000. Everything works fine but it crashes after some time up. What I am getting on the stderr is the following: ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:86) at java.io.BufferedInputStream.fill(BufferedInputStream.java:186) at java.io.BufferedInputStream.read(BufferedInputStream.java:204) at org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestAdapter. java:115) at org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServletInpu tStream.java:106) at org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServletInputS tream.java:128) at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138) at org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(HttpReques tAdapter.java:129) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:195) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Any ideas on what is causing this? Yours, Christian Rauh
RE: Tomcat as Service Crashing.
I don't know if I agree with this should part - running a SecurityManager is another layer of overhead. We specifically choose not to run with a security manager because: 1. We control or trust all of the code on our systems (if we didn't trust it, we wouldn't use it) and if any team member used System.exit they would be beaten with a wet noodle 2. We generally need all of the performance we can get Randy -Original Message- From: Luba Powell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 7:22 PM To: [EMAIL PROTECTED]; David Wall Subject: Re: Tomcat as Service Crashing. What you say - is all correct. But some basic security policy protecting the integrity of the JVM could be embedded as part of tomcat distribution. Because how many questions are we getting on the system - JVM unexpectedly crash. And in real life many companies *should* but really *do* have one system which is dev, test and prod. Especially now with all the downsizing. Anyways, this is nothing against tomcat. It is an excellent system. R/L - Original Message - From: David Wall [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 13, 2001 7:15 PM Subject: Re: Tomcat as Service Crashing. Yes, o'course in production. In my mind - there is no place for this method in HttpServlet - it should throw the Exception. OK for GenericServlet, but this is Javasoft problem. Maybe I don't understand, but I think it should be there on development/test systems as well since you clearly want to capture such coding issues as soon as possible. HttpServlet doesn't have an exit method. That's System, so another class cannot throw an exception. Java has a clear solution to this which is the base of their java security architecture. It includes running JVMs with a security manager (the only way to go imho). When done, System.exit() won't be alllowed unless you grant that permission to the code. We don't allow code to call System.exit, but we do allow shutdown hooks so that our code will know when we're being shutdown using this basic policy statement (in our case, the app prefix is 'ssd'): grant codeBase file:${tomcat.home}/webapps/ssd/- { ... permission java.lang.RuntimePermission shutdownHooks; ... }; David
RE: Tomcat as Service Crashing.
Hi Rauh, I am having the same problem. Let me know if you get any positive replies. Thanks. Good Luck, -Andy -Original Message- From: Christian Rauh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 2:45 PM To: Tomcat User Discussion List Subject: Tomcat as Service Crashing. Dear People, I have set up Tomcat to work as a service in Win2000. Everything works fine but it crashes after some time up. What I am getting on the stderr is the following: ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:86) at java.io.BufferedInputStream.fill(BufferedInputStream.java:186) at java.io.BufferedInputStream.read(BufferedInputStream.java:204) at org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestAdapter.java:115) at org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServletInputStream.java:106) at org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServletInputStream.java:128) at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138) at org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(HttpRequestAdapter.java:129) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:195) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Any ideas on what is causing this? Yours, Christian Rauh
RE: Tomcat as Service Crashing.
Oh man we really need a FAQ or something, or this might be in the one that exists =) I think someone answered this yesterday... Internet Explorer is closing the connection, something like that, I think you can ignore it. Search the archives for the last couple of days! -Original Message- From: Christian Rauh [mailto:[EMAIL PROTECTED]] Sent: June 13, 2001 2:45 PM To: Tomcat User Discussion List Subject: Tomcat as Service Crashing. Dear People, I have set up Tomcat to work as a service in Win2000. Everything works fine but it crashes after some time up. What I am getting on the stderr is the following: ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:86) at java.io.BufferedInputStream.fill(BufferedInputStream.java:186) at java.io.BufferedInputStream.read(BufferedInputStream.java:204) at org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpR equestAdapter.java:115) at org.apache.tomcat.core.BufferedServletInputStream.doRead(Buffe redServletInputStream.java:106) at org.apache.tomcat.core.BufferedServletInputStream.read(Buffere dServletInputStream.java:128) at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138) at org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequ est(HttpRequestAdapter.java:129) at org.apache.tomcat.service.http.HttpConnectionHandler.processCo nnection(HttpConnectionHandler.java:195) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:498) at java.lang.Thread.run(Thread.java:484) Any ideas on what is causing this? Yours, Christian Rauh
Re: Tomcat as Service Crashing.
Robert Slifka wrote: Oh man we really need a FAQ or something, or this might be in the one that exists =) Probably. I think someone answered this yesterday... Internet Explorer is closing the connection, something like that, I think you can ignore it. Search the archives for the last couple of days! I cheked out the archives and found exactly what you said. The problem is that, if this isn't the problem that is crashing my tomcat, then what is? How may I find out if there is nothing else abnormal on the logs? I know there is an issue with the service stopping when the user logs off. But when I log off it continues working, it crashes after a day or two. Ideas? Christian Rauh -Original Message- From: Christian Rauh [mailto:[EMAIL PROTECTED]] Sent: June 13, 2001 2:45 PM To: Tomcat User Discussion List Subject: Tomcat as Service Crashing. Dear People, I have set up Tomcat to work as a service in Win2000. Everything works fine but it crashes after some time up. What I am getting on the stderr is the following: ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:86) at java.io.BufferedInputStream.fill(BufferedInputStream.java:186) at java.io.BufferedInputStream.read(BufferedInputStream.java:204) at org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpR equestAdapter.java:115) at org.apache.tomcat.core.BufferedServletInputStream.doRead(Buffe redServletInputStream.java:106) at org.apache.tomcat.core.BufferedServletInputStream.read(Buffere dServletInputStream.java:128) at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138) at org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequ est(HttpRequestAdapter.java:129) at org.apache.tomcat.service.http.HttpConnectionHandler.processCo nnection(HttpConnectionHandler.java:195) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:498) at java.lang.Thread.run(Thread.java:484) Any ideas on what is causing this? Yours, Christian Rauh
RE: Tomcat as Service Crashing.
I don't think that this is the problem that is typically found in the archives. This stack trace indicates that Tomcat was trying to read from the socket, not write to it. IE won't close the socket before it sends the request. However, I would say that I doubt that this is causing your Tomcat to crash - each thread handles a request and Tomcat takes precautions so that crashes in one thread doesn't crash others. Look at your system - there are only three ways to crash (kill) a Java process: 1. Kill it yourself. Probably not your problem unless you are running JDK 1.3 as a service (if so, read the NT-Service HOWTO again for information on why this combination is bad) 2. JVM crashes. Sun is usually pretty good about printing out messages when this type of crash occurs, check the jvm.stderr and jvm.stdout for messages. 3. Other native code crashes it - Sun can't protect against this killing the JVM and sometimes can't trap it to display a message. This is usually accompanied by a Dr. Watson dialog, but I believe that its possible to disable this popup. Check any native code that you might be using. If you are using the JDBC-ODBC bridge, then you can stop looking, this is your problem - its not thread safe, considered experimental by Sun, and its use is not advised for production systems by Sun (see Sun's Bug Parade for more information). Randy -Original Message- From: Christian Rauh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 4:45 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat as Service Crashing. Robert Slifka wrote: Oh man we really need a FAQ or something, or this might be in the one that exists =) Probably. I think someone answered this yesterday... Internet Explorer is closing the connection, something like that, I think you can ignore it. Search the archives for the last couple of days! I cheked out the archives and found exactly what you said. The problem is that, if this isn't the problem that is crashing my tomcat, then what is? How may I find out if there is nothing else abnormal on the logs? I know there is an issue with the service stopping when the user logs off. But when I log off it continues working, it crashes after a day or two. Ideas? Christian Rauh -Original Message- From: Christian Rauh [mailto:[EMAIL PROTECTED]] Sent: June 13, 2001 2:45 PM To: Tomcat User Discussion List Subject: Tomcat as Service Crashing. Dear People, I have set up Tomcat to work as a service in Win2000. Everything works fine but it crashes after some time up. What I am getting on the stderr is the following: ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:86) at java.io.BufferedInputStream.fill(BufferedInputStream.java:186) at java.io.BufferedInputStream.read(BufferedInputStream.java:204) at org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpR equestAdapter.java:115) at org.apache.tomcat.core.BufferedServletInputStream.doRead(Buffe redServletInputStream.java:106) at org.apache.tomcat.core.BufferedServletInputStream.read(Buffere dServletInputStream.java:128) at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138) at org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequ est(HttpRequestAdapter.java:129) at org.apache.tomcat.service.http.HttpConnectionHandler.processCo nnection(HttpConnectionHandler.java:195) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:498) at java.lang.Thread.run(Thread.java:484) Any ideas on what is causing this? Yours, Christian Rauh
Re: Tomcat as Service Crashing.
Randy-- Will System.exit(0) inside the servlet crash the JVM? - Original Message - From: Randy Layman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 13, 2001 4:42 PM Subject: RE: Tomcat as Service Crashing. I don't think that this is the problem that is typically found in the archives. This stack trace indicates that Tomcat was trying to read from the socket, not write to it. IE won't close the socket before it sends the request. However, I would say that I doubt that this is causing your Tomcat to crash - each thread handles a request and Tomcat takes precautions so that crashes in one thread doesn't crash others. Look at your system - there are only three ways to crash (kill) a Java process: 1. Kill it yourself. Probably not your problem unless you are running JDK 1.3 as a service (if so, read the NT-Service HOWTO again for information on why this combination is bad) 2. JVM crashes. Sun is usually pretty good about printing out messages when this type of crash occurs, check the jvm.stderr and jvm.stdout for messages. 3. Other native code crashes it - Sun can't protect against this killing the JVM and sometimes can't trap it to display a message. This is usually accompanied by a Dr. Watson dialog, but I believe that its possible to disable this popup. Check any native code that you might be using. If you are using the JDBC-ODBC bridge, then you can stop looking, this is your problem - its not thread safe, considered experimental by Sun, and its use is not advised for production systems by Sun (see Sun's Bug Parade for more information). Randy -Original Message- From: Christian Rauh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 4:45 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat as Service Crashing. Robert Slifka wrote: Oh man we really need a FAQ or something, or this might be in the one that exists =) Probably. I think someone answered this yesterday... Internet Explorer is closing the connection, something like that, I think you can ignore it. Search the archives for the last couple of days! I cheked out the archives and found exactly what you said. The problem is that, if this isn't the problem that is crashing my tomcat, then what is? How may I find out if there is nothing else abnormal on the logs? I know there is an issue with the service stopping when the user logs off. But when I log off it continues working, it crashes after a day or two. Ideas? Christian Rauh -Original Message- From: Christian Rauh [mailto:[EMAIL PROTECTED]] Sent: June 13, 2001 2:45 PM To: Tomcat User Discussion List Subject: Tomcat as Service Crashing. Dear People, I have set up Tomcat to work as a service in Win2000. Everything works fine but it crashes after some time up. What I am getting on the stderr is the following: ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:86) at java.io.BufferedInputStream.fill(BufferedInputStream.java:186) at java.io.BufferedInputStream.read(BufferedInputStream.java:204) at org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpR equestAdapter.java:115) at org.apache.tomcat.core.BufferedServletInputStream.doRead(Buffe redServletInputStream.java:106) at org.apache.tomcat.core.BufferedServletInputStream.read(Buffere dServletInputStream.java:128) at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138) at org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequ est(HttpRequestAdapter.java:129) at org.apache.tomcat.service.http.HttpConnectionHandler.processCo nnection(HttpConnectionHandler.java:195) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:498) at java.lang.Thread.run(Thread.java:484) Any ideas on what is causing this? Yours, Christian Rauh
Re: Tomcat as Service Crashing.
Yap! As sad as it is - I could crash THE JVM started by Tomcat by merely putting System.exit(-9) in my servlet. How can webmasters protect themselves from such code? - Original Message - From: Luba Powell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 13, 2001 5:27 PM Subject: Re: Tomcat as Service Crashing. Randy-- Will System.exit(0) inside the servlet crash the JVM? - Original Message - From: Randy Layman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 13, 2001 4:42 PM Subject: RE: Tomcat as Service Crashing. I don't think that this is the problem that is typically found in the archives. This stack trace indicates that Tomcat was trying to read from the socket, not write to it. IE won't close the socket before it sends the request. However, I would say that I doubt that this is causing your Tomcat to crash - each thread handles a request and Tomcat takes precautions so that crashes in one thread doesn't crash others. Look at your system - there are only three ways to crash (kill) a Java process: 1. Kill it yourself. Probably not your problem unless you are running JDK 1.3 as a service (if so, read the NT-Service HOWTO again for information on why this combination is bad) 2. JVM crashes. Sun is usually pretty good about printing out messages when this type of crash occurs, check the jvm.stderr and jvm.stdout for messages. 3. Other native code crashes it - Sun can't protect against this killing the JVM and sometimes can't trap it to display a message. This is usually accompanied by a Dr. Watson dialog, but I believe that its possible to disable this popup. Check any native code that you might be using. If you are using the JDBC-ODBC bridge, then you can stop looking, this is your problem - its not thread safe, considered experimental by Sun, and its use is not advised for production systems by Sun (see Sun's Bug Parade for more information). Randy -Original Message- From: Christian Rauh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 4:45 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat as Service Crashing. Robert Slifka wrote: Oh man we really need a FAQ or something, or this might be in the one that exists =) Probably. I think someone answered this yesterday... Internet Explorer is closing the connection, something like that, I think you can ignore it. Search the archives for the last couple of days! I cheked out the archives and found exactly what you said. The problem is that, if this isn't the problem that is crashing my tomcat, then what is? How may I find out if there is nothing else abnormal on the logs? I know there is an issue with the service stopping when the user logs off. But when I log off it continues working, it crashes after a day or two. Ideas? Christian Rauh -Original Message- From: Christian Rauh [mailto:[EMAIL PROTECTED]] Sent: June 13, 2001 2:45 PM To: Tomcat User Discussion List Subject: Tomcat as Service Crashing. Dear People, I have set up Tomcat to work as a service in Win2000. Everything works fine but it crashes after some time up. What I am getting on the stderr is the following: ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:86) at java.io.BufferedInputStream.fill(BufferedInputStream.java:186) at java.io.BufferedInputStream.read(BufferedInputStream.java:204) at org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpR equestAdapter.java:115) at org.apache.tomcat.core.BufferedServletInputStream.doRead(Buffe redServletInputStream.java:106) at org.apache.tomcat.core.BufferedServletInputStream.read(Buffere dServletInputStream.java:128) at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138) at org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequ est(HttpRequestAdapter.java:129) at org.apache.tomcat.service.http.HttpConnectionHandler.processCo nnection(HttpConnectionHandler.java:195) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:498) at java.lang.Thread.run(Thread.java:484) Any ideas on what is causing this? Yours, Christian Rauh
Re: Tomcat as Service Crashing.
Yap! As sad as it is - I could crash THE JVM started by Tomcat by merely putting System.exit(-9) in my servlet. How can webmasters protect themselves from such code? You should run with a security manager installed and don't allow System.exit in the tomcat.policy file. David
Re: Tomcat as Service Crashing.
Yes, o'course in production. In my mind - there is no place for this method in HttpServlet - it should throw the Exception. OK for GenericServlet, but this is Javasoft problem. R - Original Message - From: David Wall [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 13, 2001 6:58 PM Subject: Re: Tomcat as Service Crashing. Yap! As sad as it is - I could crash THE JVM started by Tomcat by merely putting System.exit(-9) in my servlet. How can webmasters protect themselves from such code? You should run with a security manager installed and don't allow System.exit in the tomcat.policy file. David
Re: Tomcat as Service Crashing.
Yes, o'course in production. In my mind - there is no place for this method in HttpServlet - it should throw the Exception. OK for GenericServlet, but this is Javasoft problem. Maybe I don't understand, but I think it should be there on development/test systems as well since you clearly want to capture such coding issues as soon as possible. HttpServlet doesn't have an exit method. That's System, so another class cannot throw an exception. Java has a clear solution to this which is the base of their java security architecture. It includes running JVMs with a security manager (the only way to go imho). When done, System.exit() won't be alllowed unless you grant that permission to the code. We don't allow code to call System.exit, but we do allow shutdown hooks so that our code will know when we're being shutdown using this basic policy statement (in our case, the app prefix is 'ssd'): grant codeBase file:${tomcat.home}/webapps/ssd/- { ... permission java.lang.RuntimePermission shutdownHooks; ... }; David
Re: Tomcat as Service Crashing.
What you say - is all correct. But some basic security policy protecting the integrity of the JVM could be embedded as part of tomcat distribution. Because how many questions are we getting on the system - JVM unexpectedly crash. And in real life many companies *should* but really *do* have one system which is dev, test and prod. Especially now with all the downsizing. Anyways, this is nothing against tomcat. It is an excellent system. R/L - Original Message - From: David Wall [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 13, 2001 7:15 PM Subject: Re: Tomcat as Service Crashing. Yes, o'course in production. In my mind - there is no place for this method in HttpServlet - it should throw the Exception. OK for GenericServlet, but this is Javasoft problem. Maybe I don't understand, but I think it should be there on development/test systems as well since you clearly want to capture such coding issues as soon as possible. HttpServlet doesn't have an exit method. That's System, so another class cannot throw an exception. Java has a clear solution to this which is the base of their java security architecture. It includes running JVMs with a security manager (the only way to go imho). When done, System.exit() won't be alllowed unless you grant that permission to the code. We don't allow code to call System.exit, but we do allow shutdown hooks so that our code will know when we're being shutdown using this basic policy statement (in our case, the app prefix is 'ssd'): grant codeBase file:${tomcat.home}/webapps/ssd/- { ... permission java.lang.RuntimePermission shutdownHooks; ... }; David
RE: Tomcat NT service mode
I've a similar requirement... If anyone has done this before, please let me know.. Thanks, -Ratnakar From: Swart, James (Jim) ** CTR ** Subject: RE: Tomcat NT service mode Date: Tue, 5 Jun 2001 13:00:07 -0400 can't you just change it's properties to startup up automatically in the services control panel? -Original Message- From: Dong Chen (Non CoCreate) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 10:29 AM To: '[EMAIL PROTECTED]' Subject: Tomcat NT service mode Hello, When we run jk_nt_service.exe, by default the Tomcat NT service will be set in manual mode. But we want to set the automatic mode as the default when we register Tomcat NT service. Is it difficult to change the source code to do that? Where may I find the source code for jk_nt_service.exe? Thank you! Dong
RE: Tomcat NT service mode
Ratnakar, After you run the jk_nt_service -i service config-file if you go into the Services Control Panel you will see the service Sitting there set to manual and stoped. For example if I create a service by the following: jk_nk_service -i Tomcat wrapper.properties In the Service I will find Tomcat and I can change it to Automatic, Manual, or Disabled. You can even put in a description. -Matt Winer -Original Message- From: Ratnakar Palle [mailto:[EMAIL PROTECTED]] Sent: Monday, June 11, 2001 2:26 PM To: [EMAIL PROTECTED] Subject: RE: Tomcat NT service mode I've a similar requirement... If anyone has done this before, please let me know.. Thanks, -Ratnakar
RE: Tomcat NT service mode
To do this from a program/non-interactive environment, for an already installed service, edit the registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\[ServiceName]\Start. The value 2 is definitely for Automatic. I believe that 0 is disabled, 1 is manual, but I'm not 100% sure of the last two. Randy -Original Message- From: Ratnakar Palle [mailto:[EMAIL PROTECTED]] Sent: Monday, June 11, 2001 2:26 PM To: [EMAIL PROTECTED] Subject: RE: Tomcat NT service mode I've a similar requirement... If anyone has done this before, please let me know.. Thanks, -Ratnakar From: Swart, James (Jim) ** CTR ** Subject: RE: Tomcat NT service mode Date: Tue, 5 Jun 2001 13:00:07 -0400 can't you just change it's properties to startup up automatically in the services control panel? -Original Message- From: Dong Chen (Non CoCreate) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 10:29 AM To: '[EMAIL PROTECTED]' Subject: Tomcat NT service mode Hello, When we run jk_nt_service.exe, by default the Tomcat NT service will be set in manual mode. But we want to set the automatic mode as the default when we register Tomcat NT service. Is it difficult to change the source code to do that? Where may I find the source code for jk_nt_service.exe? Thank you! Dong
RE: Tomcat NT service mode
Thanks Randy... I think, this one helps... -Ratnakar -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Monday, June 11, 2001 11:00 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat NT service mode To do this from a program/non-interactive environment, for an already installed service, edit the registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\[ServiceName]\Start. The value 2 is definitely for Automatic. I believe that 0 is disabled, 1 is manual, but I'm not 100% sure of the last two. Randy -Original Message- From: Ratnakar Palle [mailto:[EMAIL PROTECTED]] Sent: Monday, June 11, 2001 2:26 PM To: [EMAIL PROTECTED] Subject: RE: Tomcat NT service mode I've a similar requirement... If anyone has done this before, please let me know.. Thanks, -Ratnakar From: Swart, James (Jim) ** CTR ** Subject: RE: Tomcat NT service mode Date: Tue, 5 Jun 2001 13:00:07 -0400 can't you just change it's properties to startup up automatically in the services control panel? -Original Message- From: Dong Chen (Non CoCreate) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 10:29 AM To: '[EMAIL PROTECTED]' Subject: Tomcat NT service mode Hello, When we run jk_nt_service.exe, by default the Tomcat NT service will be set in manual mode. But we want to set the automatic mode as the default when we register Tomcat NT service. Is it difficult to change the source code to do that? Where may I find the source code for jk_nt_service.exe? Thank you! Dong
RE: Tomcat NT Service: Strange issue
The JAR file for the com.sun...Provider class is in a JAR file that is in the CLASSPATH environment variable, but not in your wrapper.properties file's wrapper.class_path variable. (When the service starts the new JVM it ignores the System's CLASSPATH environment variable) Randy -Original Message- From: Nibler Jeff R. (PDX1JRN) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 1:19 PM To: [EMAIL PROTECTED] Subject: Tomcat NT Service: Strange issue Ok, I've been banging my head against the keyboard for a day and a half trying to figure this out. Here is the scenario: I have Tomcat 3.2 running as a service on an NT server with IIS. Until yesterday, I had an older Version of Tomcat running, then I upgraded it. Now, when I start the service, everything seems to work fine, but in one of my servlet's init method, I have the following code: System.getProperties().put(java.protocol.handler.pkgs,com.s un.net.ssl.int ernal.www.protocol); java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider()); When I try to hit that servlet in a browser, I get a java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider error. Now HERE is the strange part. If I stop the service, and launch Tomcat using the Startup.bat file, everything works just fine. The only thing I could see causing this problem would be some sort of classpath issue, but I have the correct TOMCAT_HOME environment variable, as well as the correct CLASSPATH and JAVA_HOME env variables. I also put the TOMCAT_HOME and JAVA_HOME in the wrapper.properties file, but still it gives me the NoClassDefFoundError when I run as a service, but not when I run it using the Startup.bat. Does ANYONE have any idea what could be causing this? Thanks in advance for any help with this!! -Jeff
RE: Tomcat NT Service: Strange issue
It never fails. You could wait days before sending a question to the list, but the second you do, you figure the problem out yourself. Well, I didn't figure it out exactly, but I did get it to work. I had to add each and every entry in my CLASSPATH environment variable to the wrapper.properties file. This made everything ok when running Tomcat as an NT service. I do still have a question though: Why doesn't Tomcat just use the existing CLASSPATH environment variable? Jeff -Original Message- From: Nibler Jeff R. (PDX1JRN) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 10:19 AM To: [EMAIL PROTECTED] Subject: Tomcat NT Service: Strange issue Ok, I've been banging my head against the keyboard for a day and a half trying to figure this out. Here is the scenario: I have Tomcat 3.2 running as a service on an NT server with IIS. Until yesterday, I had an older Version of Tomcat running, then I upgraded it. Now, when I start the service, everything seems to work fine, but in one of my servlet's init method, I have the following code: System.getProperties().put(java.protocol.handler.pkgs,com.sun.net.ssl.int ernal.www.protocol); java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider()); When I try to hit that servlet in a browser, I get a java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider error. Now HERE is the strange part. If I stop the service, and launch Tomcat using the Startup.bat file, everything works just fine. The only thing I could see causing this problem would be some sort of classpath issue, but I have the correct TOMCAT_HOME environment variable, as well as the correct CLASSPATH and JAVA_HOME env variables. I also put the TOMCAT_HOME and JAVA_HOME in the wrapper.properties file, but still it gives me the NoClassDefFoundError when I run as a service, but not when I run it using the Startup.bat. Does ANYONE have any idea what could be causing this? Thanks in advance for any help with this!! -Jeff
RE: Tomcat NT Service: Strange issue
Very strange. I wonder why it does that? I wish it would have been documented in the NT-IIS-Service-How-To. Thanks for your reply Randy! Jeff -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 10:20 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat NT Service: Strange issue The JAR file for the com.sun...Provider class is in a JAR file that is in the CLASSPATH environment variable, but not in your wrapper.properties file's wrapper.class_path variable. (When the service starts the new JVM it ignores the System's CLASSPATH environment variable) Randy -Original Message- From: Nibler Jeff R. (PDX1JRN) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 1:19 PM To: [EMAIL PROTECTED] Subject: Tomcat NT Service: Strange issue Ok, I've been banging my head against the keyboard for a day and a half trying to figure this out. Here is the scenario: I have Tomcat 3.2 running as a service on an NT server with IIS. Until yesterday, I had an older Version of Tomcat running, then I upgraded it. Now, when I start the service, everything seems to work fine, but in one of my servlet's init method, I have the following code: System.getProperties().put(java.protocol.handler.pkgs,com.s un.net.ssl.int ernal.www.protocol); java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider()); When I try to hit that servlet in a browser, I get a java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider error. Now HERE is the strange part. If I stop the service, and launch Tomcat using the Startup.bat file, everything works just fine. The only thing I could see causing this problem would be some sort of classpath issue, but I have the correct TOMCAT_HOME environment variable, as well as the correct CLASSPATH and JAVA_HOME env variables. I also put the TOMCAT_HOME and JAVA_HOME in the wrapper.properties file, but still it gives me the NoClassDefFoundError when I run as a service, but not when I run it using the Startup.bat. Does ANYONE have any idea what could be causing this? Thanks in advance for any help with this!! -Jeff
RE: Tomcat NT service mode
can't you just change it's properties to startup up automatically in the services control panel? -Original Message- From: Dong Chen (Non CoCreate) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 10:29 AM To: '[EMAIL PROTECTED]' Subject: Tomcat NT service mode Hello, When we run jk_nt_service.exe, by default the Tomcat NT service will be set in manual mode. But we want to set the automatic mode as the default when we register Tomcat NT service. Is it difficult to change the source code to do that? Where may I find the source code for jk_nt_service.exe? Thank you! Dong
Re: Tomcat as Service...
So I'm tryin with JavaService (http://www.alexandriasc.com/software/JavaService/). I configured the Tomcat Service and it starts but it doesn't works. If I start Tomcat in the manual mode (and the prompt window appears) it works fine I used the bat examples in JavaService that help making tomcat a service I called Tomcatsv.exe the file. ... do you have any suggestion? Try TomcatService.exe -install Tomcat %JAVA_HOME%\jre\bin\hotspot\jvm.dll -Xms1M -Xmx8M -Djava.class.path=%TOMCAT_HOME%\lib\webserver.jar;%TOMCAT_HOME%\lib\jasper.jar;%TOMCAT_HOME%\lib\jaxp.jar;%TOMCAT_HOME%\lib\parser.jar;%TOMCAT_HOME%\lib\servlet.jar;%JAVA_HOME%\lib\tools.jar -Dtomcat.home=%TOMCAT_HOME% -start org.apache.tomcat.startup.Tomcat -params -config "%TOMCAT_HOME%\conf\server.xml" -stop org.apache.tomcat.startup.Tomcat -params -stop -config "%TOMCAT_HOME%\conf\server.xml" -out %TOMCAT_HOME%\logs\stdout.log -err %TOMCAT_HOME%\logs\stderr.log which is what worked for me; the old batch file won't work with 3.2 as the names of the startup and shutdown classes have changed... np: Luke Vibert - I Hear The Drummer (Xen Cuts comp.) - Sent through MailGateway - http://www.ssw.uni-linz.ac.at:2000/ Send or read your emails anywhere. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Tomcat NT service
You don't say which version of Tomcat your using so I'll assume one of the recent 3.2 betas. See step 2 of the NT-Service-howto document (tomcat\doc\NT-Service-howto.html). It says to customize the wrapper.properties file that ships with Tomcat in the tomcat\conf directory. -Original Message- From: Shukor Idris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 22, 2000 5:49 AM To: [EMAIL PROTECTED] Subject: Tomcat NT service helloi want to ask something about working with the Jakarta NT services... where can i get wrapper.properties file?... may u can help me...please... regards shukor