Re: Starting Tomcat 4 as an NT service
NT Services are installed at the command line with --install and removed with --remove following the .exe name. Notice there are TWO hyphens before install and remove. - Original Message - From: Ken Anderson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, April 27, 2002 4:48 PM Subject: Re: Starting Tomcat 4 as an NT service On WinXP, I found I had to do %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache Tomcat To uninstall the Tomcat Service. %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina gave me a cryptic error about overlapped i/o in progress and didn't remove the service. Ken Jacob Kjome wrote: Hello rsudama, Just a note. I've posted this answer twice before on this list. Please search the archives because it *has* been answered and I gave the solution in the email and didn't ask anyone to search anywhere for the answer. Anyway, here it is again: I distilled the following from this article: http://www.webmasterbase.com/printTemplate.php?aid=305 Assuming you have all your environment variables set, just copy+paste the following to a command line... To Install Catalina Service: %CATALINA_HOME%\bin\tomcat.exe -install Apache-Catalina %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\boo tstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log To Uninstall Catalina Service: %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina Now, check in your Services applet and the Apache-Catalina service should be there. Jake Tuesday, April 09, 2002, 2:08:10 PM, you wrote: roc Yes, I understand perfectly well that it's an option in the installer. I'm roc trying to find out where the documentation are sources are for this tool that is roc included as part of the open source distribution. If there's some reasons for roc not distributing the sources for the tool itself (or how about the whole install roc program?) that's fine, but it would be nice if there was at least some roc documentation on its use. As far as I can tell, the general attitude of the roc Tomcat community on this is we've figured out a way to get this done, and roc here's a bunch of pointers to places where you can figure it our for yourself. roc I already have other tools that can do this if I need to, but since a perfectly roc good tool has already been developed by someone I'd rather use that if it's roc possible. roc - Ram roc [EMAIL PROTECTED] on 04/09/2002 01:22:22 PM roc Please respond to Tomcat Users List [EMAIL PROTECTED] roc To: 'Tomcat Users List' roc [EMAIL PROTECTED] roc cc: (bcc: Ram Sudama/ON Technology) roc Subject: RE: Starting Tomcat 4 as an NT service service. However, no one has seemed to address how Tomcat 4.0.3 roc actually _is_ installed as an NT service. roc It is now included as an option in the installer. roc - tex roc -- roc To unsubscribe: mailto:[EMAIL PROTECTED] roc For additional commands: mailto:[EMAIL PROTECTED] roc 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]
Starting Tomcat 4 as an NT service
I know there has been considerable discussion and recommendations for how to start Tomcat as an NT service. However, no one has seemed to address how Tomcat 4.0.3 actually _is_ installed as an NT service. In the standard distribution there is a program in the bin directory called tomcat.exe. This is apparently used during the installation on Windows to install the Tomcat service. I've been able to figure out how to make this work on my own, but I can't help wonder where this program came from or why - it is not mentioned or documented anywhere on the Jakarta web site (that I can find). I'd be glad to share a batch file for using this program from the command line to install or uninstall the Tomcat service. But first I'd like to know something about the origins of this and whether it is intended to replace jk_nt_service.exe, whether it will be supported in future versions of Tomcat, whether it is extensible to support running other Java applications as services, etc. - Ram -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Starting Tomcat 4 as an NT service
service. However, no one has seemed to address how Tomcat 4.0.3 actually _is_ installed as an NT service. It is now included as an option in the installer. - tex -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Starting Tomcat 4 as an NT service
Yes, I understand perfectly well that it's an option in the installer. I'm trying to find out where the documentation are sources are for this tool that is included as part of the open source distribution. If there's some reasons for not distributing the sources for the tool itself (or how about the whole install program?) that's fine, but it would be nice if there was at least some documentation on its use. As far as I can tell, the general attitude of the Tomcat community on this is we've figured out a way to get this done, and here's a bunch of pointers to places where you can figure it our for yourself. I already have other tools that can do this if I need to, but since a perfectly good tool has already been developed by someone I'd rather use that if it's possible. - Ram [EMAIL PROTECTED] on 04/09/2002 01:22:22 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] cc: (bcc: Ram Sudama/ON Technology) Subject: RE: Starting Tomcat 4 as an NT service service. However, no one has seemed to address how Tomcat 4.0.3 actually _is_ installed as an NT service. It is now included as an option in the installer. - tex -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] att1.eml Description: Binary data -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re[2]: Starting Tomcat 4 as an NT service
Hello rsudama, Just a note. I've posted this answer twice before on this list. Please search the archives because it *has* been answered and I gave the solution in the email and didn't ask anyone to search anywhere for the answer. Anyway, here it is again: I distilled the following from this article: http://www.webmasterbase.com/printTemplate.php?aid=305 Assuming you have all your environment variables set, just copy+paste the following to a command line... To Install Catalina Service: %CATALINA_HOME%\bin\tomcat.exe -install Apache-Catalina %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log To Uninstall Catalina Service: %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina Now, check in your Services applet and the Apache-Catalina service should be there. Jake Tuesday, April 09, 2002, 2:08:10 PM, you wrote: roc Yes, I understand perfectly well that it's an option in the installer. I'm roc trying to find out where the documentation are sources are for this tool that is roc included as part of the open source distribution. If there's some reasons for roc not distributing the sources for the tool itself (or how about the whole install roc program?) that's fine, but it would be nice if there was at least some roc documentation on its use. As far as I can tell, the general attitude of the roc Tomcat community on this is we've figured out a way to get this done, and roc here's a bunch of pointers to places where you can figure it our for yourself. roc I already have other tools that can do this if I need to, but since a perfectly roc good tool has already been developed by someone I'd rather use that if it's roc possible. roc - Ram roc [EMAIL PROTECTED] on 04/09/2002 01:22:22 PM roc Please respond to Tomcat Users List [EMAIL PROTECTED] roc To: 'Tomcat Users List' roc [EMAIL PROTECTED] roc cc: (bcc: Ram Sudama/ON Technology) roc Subject: RE: Starting Tomcat 4 as an NT service service. However, no one has seemed to address how Tomcat 4.0.3 roc actually _is_ installed as an NT service. roc It is now included as an option in the installer. roc - tex roc -- roc To unsubscribe: mailto:[EMAIL PROTECTED] roc For additional commands: mailto:[EMAIL PROTECTED] roc Troubles with the list: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Re[2]: Starting Tomcat 4 as an NT service
Yes, thanks, but you're still not answering the questions I asked. I have figured this much out for myself (and I have searched the archives extensively). No one seems to know where the tomcat.exe program came from or is willing to document it's usage. Like I said, if this is intended to be kept as a deep, dark secret for some reason I would just like to know that. I have to say that I spent considerable time chasing down useless references to the Tomcat 3.x way of doing things with jk_nt_service.exe before I figured out for myself that this doesn't really seem to be in vogue anymore. And I would also have to say that there is a lot of misinformation floating around on this subject - which is why you've probably answered it several times before. If there was a simple (and accurate) HOWTO on installing Tomcat as an NT service in the 4.x documentation I wouldn't be asking this question. If such documentation does exist, I'd just like to know where it is. Sorry for being a pain, but all I keep getting in answer to my questions are the answers to somebody else's questions. - Ram Jacob Kjome [EMAIL PROTECTED] on 04/09/2002 03:24:24 PM Please respond to Tomcat Users List [EMAIL PROTECTED]; Please respond to Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: (bcc: Ram Sudama/ON Technology) Subject: Re[2]: Starting Tomcat 4 as an NT service Hello rsudama, Just a note. I've posted this answer twice before on this list. Please search the archives because it *has* been answered and I gave the solution in the email and didn't ask anyone to search anywhere for the answer. Anyway, here it is again: I distilled the following from this article: http://www.webmasterbase.com/printTemplate.php?aid=305 Assuming you have all your environment variables set, just copy+paste the following to a command line... To Install Catalina Service: %CATALINA_HOME%\bin\tomcat.exe -install Apache-Catalina %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log To Uninstall Catalina Service: %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina Now, check in your Services applet and the Apache-Catalina service should be there. Jake Tuesday, April 09, 2002, 2:08:10 PM, you wrote: roc Yes, I understand perfectly well that it's an option in the installer. I'm roc trying to find out where the documentation are sources are for this tool that is roc included as part of the open source distribution. If there's some reasons for roc not distributing the sources for the tool itself (or how about the whole install roc program?) that's fine, but it would be nice if there was at least some roc documentation on its use. As far as I can tell, the general attitude of the roc Tomcat community on this is we've figured out a way to get this done, and roc here's a bunch of pointers to places where you can figure it our for yourself. roc I already have other tools that can do this if I need to, but since a perfectly roc good tool has already been developed by someone I'd rather use that if it's roc possible. roc - Ram roc [EMAIL PROTECTED] on 04/09/2002 01:22:22 PM roc Please respond to Tomcat Users List [EMAIL PROTECTED] roc To: 'Tomcat Users List' roc [EMAIL PROTECTED] roc cc: (bcc: Ram Sudama/ON Technology) roc Subject: RE: Starting Tomcat 4 as an NT service service. However, no one has seemed to address how Tomcat 4.0.3 roc actually _is_ installed as an NT service. roc It is now included as an option in the installer. roc - tex roc -- roc To unsubscribe: mailto:[EMAIL PROTECTED] roc For additional commands: mailto:[EMAIL PROTECTED] roc Troubles with the list: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional
Re: Starting Tomcat 4 as an NT service
On WinXP, I found I had to do %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache Tomcat To uninstall the Tomcat Service. %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina gave me a cryptic error about overlapped i/o in progress and didn't remove the service. Ken Jacob Kjome wrote: Hello rsudama, Just a note. I've posted this answer twice before on this list. Please search the archives because it *has* been answered and I gave the solution in the email and didn't ask anyone to search anywhere for the answer. Anyway, here it is again: I distilled the following from this article: http://www.webmasterbase.com/printTemplate.php?aid=305 Assuming you have all your environment variables set, just copy+paste the following to a command line... To Install Catalina Service: %CATALINA_HOME%\bin\tomcat.exe -install Apache-Catalina %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log To Uninstall Catalina Service: %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina Now, check in your Services applet and the Apache-Catalina service should be there. Jake Tuesday, April 09, 2002, 2:08:10 PM, you wrote: roc Yes, I understand perfectly well that it's an option in the installer. I'm roc trying to find out where the documentation are sources are for this tool that is roc included as part of the open source distribution. If there's some reasons for roc not distributing the sources for the tool itself (or how about the whole install roc program?) that's fine, but it would be nice if there was at least some roc documentation on its use. As far as I can tell, the general attitude of the roc Tomcat community on this is we've figured out a way to get this done, and roc here's a bunch of pointers to places where you can figure it our for yourself. roc I already have other tools that can do this if I need to, but since a perfectly roc good tool has already been developed by someone I'd rather use that if it's roc possible. roc - Ram roc [EMAIL PROTECTED] on 04/09/2002 01:22:22 PM roc Please respond to Tomcat Users List [EMAIL PROTECTED] roc To: 'Tomcat Users List' roc [EMAIL PROTECTED] roc cc: (bcc: Ram Sudama/ON Technology) roc Subject: RE: Starting Tomcat 4 as an NT service service. However, no one has seemed to address how Tomcat 4.0.3 roc actually _is_ installed as an NT service. roc It is now included as an option in the installer. roc - tex roc -- roc To unsubscribe: mailto:[EMAIL PROTECTED] roc For additional commands: mailto:[EMAIL PROTECTED] roc 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: Starting Tomcat 4 as an NT service
Just a word of caution: Be sure to STOP the service (and wait for it to completely stop) before attempting to uninstall it. Otherwise he service won't uninstall completely. Jim -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 27, 2002 3:48 PM To: Tomcat Users List Subject: Re: Starting Tomcat 4 as an NT service On WinXP, I found I had to do %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache Tomcat To uninstall the Tomcat Service. %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina gave me a cryptic error about overlapped i/o in progress and didn't remove the service. Ken Jacob Kjome wrote: Hello rsudama, Just a note. I've posted this answer twice before on this list. Please search the archives because it *has* been answered and I gave the solution in the email and didn't ask anyone to search anywhere for the answer. Anyway, here it is again: I distilled the following from this article: http://www.webmasterbase.com/printTemplate.php?aid=305 Assuming you have all your environment variables set, just copy+paste the following to a command line... To Install Catalina Service: %CATALINA_HOME%\bin\tomcat.exe -install Apache-Catalina %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\li b\tools.jar -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log To Uninstall Catalina Service: %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina Now, check in your Services applet and the Apache-Catalina service should be there. Jake Tuesday, April 09, 2002, 2:08:10 PM, you wrote: roc Yes, I understand perfectly well that it's an option in the installer. I'm roc trying to find out where the documentation are sources are for this tool that is roc included as part of the open source distribution. If there's some reasons for roc not distributing the sources for the tool itself (or how about the whole install roc program?) that's fine, but it would be nice if there was at least some roc documentation on its use. As far as I can tell, the general attitude of the roc Tomcat community on this is we've figured out a way to get this done, and roc here's a bunch of pointers to places where you can figure it our for yourself. roc I already have other tools that can do this if I need to, but since a perfectly roc good tool has already been developed by someone I'd rather use that if it's roc possible. roc - Ram roc [EMAIL PROTECTED] on 04/09/2002 01:22:22 PM roc Please respond to Tomcat Users List [EMAIL PROTECTED] roc To: 'Tomcat Users List' roc [EMAIL PROTECTED] roc cc: (bcc: Ram Sudama/ON Technology) roc Subject: RE: Starting Tomcat 4 as an NT service service. However, no one has seemed to address how Tomcat 4.0.3 roc actually _is_ installed as an NT service. roc It is now included as an option in the installer. roc - tex roc -- roc To unsubscribe: mailto:[EMAIL PROTECTED] roc For additional commands: mailto:[EMAIL PROTECTED] roc 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: Starting Tomcat 4 as an NT service
Well..., then you uninstalled a different service named Apache Tomcat. If you installed it as Apache Tomcat, that's great. However, if you copied the install script to the command line exactly as I wrote it, then the service would have been named Apache-Catalina. So, you will need to reference the name Apache-Catalina (quotes not necessary) to uninstall that service. BTW, before you try uninstalling the service, make sure you do a few things first: 1. Stop the Apache-Catalina service 2. Close the Services applet. I have seen that error and I believe it was simply because I had that applet open. 3. Not sure if this is necessary, but you might want to shut down Apache if it has mod_jk running. This is probably not necessary, though. Just thought I'd mention it to be safe. It should work after that. jake At 01:48 PM 4/27/2002 -0700, you wrote: On WinXP, I found I had to do %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache Tomcat To uninstall the Tomcat Service. %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina gave me a cryptic error about overlapped i/o in progress and didn't remove the service. Ken Jacob Kjome wrote: Hello rsudama, Just a note. I've posted this answer twice before on this list. Please search the archives because it *has* been answered and I gave the solution in the email and didn't ask anyone to search anywhere for the answer. Anyway, here it is again: I distilled the following from this article: http://www.webmasterbase.com/printTemplate.php?aid=305 Assuming you have all your environment variables set, just copy+paste the following to a command line... To Install Catalina Service: %CATALINA_HOME%\bin\tomcat.exe -install Apache-Catalina %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log To Uninstall Catalina Service: %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina Now, check in your Services applet and the Apache-Catalina service should be there. Jake Tuesday, April 09, 2002, 2:08:10 PM, you wrote: roc Yes, I understand perfectly well that it's an option in the installer. I'm roc trying to find out where the documentation are sources are for this tool that is roc included as part of the open source distribution. If there's some reasons for roc not distributing the sources for the tool itself (or how about the whole install roc program?) that's fine, but it would be nice if there was at least some roc documentation on its use. As far as I can tell, the general attitude of the roc Tomcat community on this is we've figured out a way to get this done, and roc here's a bunch of pointers to places where you can figure it our for yourself. roc I already have other tools that can do this if I need to, but since a perfectly roc good tool has already been developed by someone I'd rather use that if it's roc possible. roc - Ram roc [EMAIL PROTECTED] on 04/09/2002 01:22:22 PM roc Please respond to Tomcat Users List [EMAIL PROTECTED] roc To: 'Tomcat Users List' roc [EMAIL PROTECTED] roc cc: (bcc: Ram Sudama/ON Technology) roc Subject: RE: Starting Tomcat 4 as an NT service service. However, no one has seemed to address how Tomcat 4.0.3 roc actually _is_ installed as an NT service. roc It is now included as an option in the installer. roc - tex roc -- roc To unsubscribe: mailto:[EMAIL PROTECTED] roc For additional commands: mailto:[EMAIL PROTECTED] roc 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]