Re: How to run tomcat as service program in Win2k [[HELP]]
Did you get past this? Ted Neward {.NET || Java} Course Author Instructor, DevelopMentor (http://www.develop.com) http://www.javageeks.com/tneward http://www.clrgeeks.com/tneward - Original Message - From: Dahnke, Eric [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, April 11, 2002 9:29 AM Subject: RE: How to run tomcat as service program in Win2k [[HELP]] I've followed this thread and am still having no luck. Here's the situation. The TC that comes with jwsdp is TC4.0b7. This release of TC doesn't include a tomcat.exe file, so I grabbed one from the TC4.0.1 release. I then run following from the cmd prompt. %CATALINA_HOME%\bin\tomcat.exe -install Tomcat %JAVA_HOME%\jre\bin\classic\jvm.dll -Djava.class.path= %CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log Response is: The service was successfully installed. Upon starting the service I get: Could not start the service on Local Computer. The service did not return an error. This could be a Windows error or an internal service error. the stderr.log file is created but is empty. Anyone have any ideas? How can I further troubleshoot. Regards Eric -Original Message- From: Jordan C N Chong [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:06 AM To: Tomcat Users List Subject: Access local directory with Tomcat 4.0 Dear all, Sorry to post this question again, cause I didn't receive any reply... so I think I should rephrase my question. I am using standalone Apache Tomcat 4.0, on my Windows 2000 machine. I am making a servlet for file downloading using the Tomcat 4.0, but I am not sure how to setup or configure the local directory, cause when I do this: FileInputStream filein = new FileInputStream(C:\\temp\\text.txt); I got IOException for that, because Tomcat 4.0 complains the directory is not accessible... Please help me. Thank you very much. Best regards, Jo -- 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: How to run tomcat as service program in Win2k [[HELP]]
It might be useful to check the registry to see if you have the expected options set. Just search for the name of the service.I had some surprises on that account. There might be a problem with the 's. Or at least they look different from how I used them.??? - Original Message - From: Ted Neward [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, April 12, 2002 11:34 AM Subject: Re: How to run tomcat as service program in Win2k [[HELP]] Did you get past this? Ted Neward {.NET || Java} Course Author Instructor, DevelopMentor (http://www.develop.com) http://www.javageeks.com/tneward http://www.clrgeeks.com/tneward - Original Message - From: Dahnke, Eric [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, April 11, 2002 9:29 AM Subject: RE: How to run tomcat as service program in Win2k [[HELP]] I've followed this thread and am still having no luck. Here's the situation. The TC that comes with jwsdp is TC4.0b7. This release of TC doesn't include a tomcat.exe file, so I grabbed one from the TC4.0.1 release. I then run following from the cmd prompt. %CATALINA_HOME%\bin\tomcat.exe -install Tomcat %JAVA_HOME%\jre\bin\classic\jvm.dll -Djava.class.path= %CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log Response is: The service was successfully installed. Upon starting the service I get: Could not start the service on Local Computer. The service did not return an error. This could be a Windows error or an internal service error. the stderr.log file is created but is empty. Anyone have any ideas? How can I further troubleshoot. Regards Eric -Original Message- From: Jordan C N Chong [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:06 AM To: Tomcat Users List Subject: Access local directory with Tomcat 4.0 Dear all, Sorry to post this question again, cause I didn't receive any reply... so I think I should rephrase my question. I am using standalone Apache Tomcat 4.0, on my Windows 2000 machine. I am making a servlet for file downloading using the Tomcat 4.0, but I am not sure how to setup or configure the local directory, cause when I do this: FileInputStream filein = new FileInputStream(C:\\temp\\text.txt); I got IOException for that, because Tomcat 4.0 complains the directory is not accessible... Please help me. Thank you very much. Best regards, Jo -- 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] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to run tomcat as service program in Win2k [[HELP]]
I've followed this thread and am still having no luck. Here's the situation. The TC that comes with jwsdp is TC4.0b7. This release of TC doesn't include a tomcat.exe file, so I grabbed one from the TC4.0.1 release. I then run following from the cmd prompt. %CATALINA_HOME%\bin\tomcat.exe -install Tomcat %JAVA_HOME%\jre\bin\classic\jvm.dll -Djava.class.path= %CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log Response is: The service was successfully installed. Upon starting the service I get: Could not start the service on Local Computer. The service did not return an error. This could be a Windows error or an internal service error. the stderr.log file is created but is empty. Anyone have any ideas? How can I further troubleshoot. Regards Eric -Original Message- From: Jordan C N Chong [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:06 AM To: Tomcat Users List Subject: Access local directory with Tomcat 4.0 Dear all, Sorry to post this question again, cause I didn't receive any reply... so I think I should rephrase my question. I am using standalone Apache Tomcat 4.0, on my Windows 2000 machine. I am making a servlet for file downloading using the Tomcat 4.0, but I am not sure how to setup or configure the local directory, cause when I do this: FileInputStream filein = new FileInputStream(C:\\temp\\text.txt); I got IOException for that, because Tomcat 4.0 complains the directory is not accessible... Please help me. Thank you very much. Best regards, Jo -- 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[2]: How to run tomcat as service program in Win2k [[HELP]]
Hello Eric, What JDK are you using? If you are using JDK1.4, there is no such thing as %JAVA_HOME%\jre\bin\classic\jvm.dll. With 1.4, you have a choice between client and server. JDK1.3.1 still has classic, though. Jake Thursday, April 11, 2002, 11:29:00 AM, you wrote: DE I've followed this thread and am still having no luck. Here's the situation. DE The TC that comes with jwsdp is TC4.0b7. This release of TC doesn't include DE a tomcat.exe file, so I grabbed one from the TC4.0.1 release. I then run DE following from the cmd prompt. DE %CATALINA_HOME%\bin\tomcat.exe -install Tomcat DE %JAVA_HOME%\jre\bin\classic\jvm.dll -Djava.class.path= DE %CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar DE -Dcatalina.home=%CATALINA_HOME% -Xrs -start DE org.apache.catalina.startup.Bootstrap -params start -stop DE org.apache.catalina.startup.Bootstrap -params stop -out DE %CATALINA_HOME%\logs\stderr.log DE Response is: DE The service was successfully installed. DE Upon starting the service I get: DE Could not start the service on Local Computer. The service did not return DE an error. This could be a Windows error or an internal service error. DE the stderr.log file is created but is empty. DE Anyone have any ideas? How can I further troubleshoot. Regards Eric DE -Original Message- DE From: Jordan C N Chong [mailto:[EMAIL PROTECTED]] DE Sent: Thursday, April 11, 2002 2:06 AM DE To: Tomcat Users List DE Subject: Access local directory with Tomcat 4.0 DE Dear all, DE Sorry to post this question again, cause I didn't receive any reply... so I DE think I should rephrase my question. DE I am using standalone Apache Tomcat 4.0, on my Windows 2000 machine. DE I am making a servlet for file downloading using the Tomcat 4.0, but I am DE not sure how to setup or configure the local directory, cause when I do DE this: DE FileInputStream filein = new FileInputStream(C:\\temp\\text.txt); DE I got IOException for that, because Tomcat 4.0 complains the directory is DE not accessible... Please help me. Thank you very much. DE Best regards, DE Jo DE -- DE To unsubscribe: mailto:[EMAIL PROTECTED] DE For additional commands: mailto:[EMAIL PROTECTED] DE Troubles with the list: mailto:[EMAIL PROTECTED] DE -- DE To unsubscribe: mailto:[EMAIL PROTECTED] DE For additional commands: mailto:[EMAIL PROTECTED] DE 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]: How to run tomcat as service program in Win2k [[HELP]]
Thanks for the response: jdk1.3.1_02 I tried both %JAVA_HOME%\jre\bin\classic\jvm.dll and %JAVA_HOME%\jre\bin\hotspot\jvm.dll same result. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re[4]: How to run tomcat as service program in Win2k [[HELP]]
Hello Eric, Hmmm... you probably should be using server for Tomcat...since it is a server and not a client side gui app, but it should still run in either of the other two. Not sure what else the problem could be at this point? Jake Thursday, April 11, 2002, 11:37:21 AM, you wrote: DE Thanks for the response: DE jdk1.3.1_02 DE I tried both DE %JAVA_HOME%\jre\bin\classic\jvm.dll DE and DE %JAVA_HOME%\jre\bin\hotspot\jvm.dll DE same result. DE -- DE To unsubscribe: mailto:[EMAIL PROTECTED] DE For additional commands: mailto:[EMAIL PROTECTED] DE 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: How to run tomcat as service program in Win2k
which kind your Tomcat and jdk version? - Original Message - From: "Xiao Juguang" [EMAIL PROTECTED] To: "Tomcat Users List" [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 15:25 Subject: Re: How to run tomcat as service program in Win2k I think you are careless when installing. There is an option to make Tomcat as Windows NT Service. - Original Message - From: "oh" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 3:18 PM Subject: How to run tomcat as service program in Win2k hello, I just donloaded Tomcat4.0.3, and I didn't find "jk_nt_service.exe" and the associated files, I want to run my tomcat as a service program in my Windows 2000 Pro, How can I do this? Huimin Wang -- 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: How to run tomcat as service program in Win2k
-Original Message- From: Galbayar [mailto:[EMAIL PROTECTED]] Sent: 14 March 2002 09:38 To: Tomcat Users List Subject: Re: How to run tomcat as service program in Win2k which kind your Tomcat and jdk version? Tomcat 3.2 up through to 4.0.3, all with jdk 1.2.2 (I really should migrate that app to jdk 1.4...) I've always installed from a zip, but from what I can gather, there's an exe version of Tomcat, that offers the option to install Tomcat as a service. John - Original Message - From: Xiao Juguang [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 15:25 Subject: Re: How to run tomcat as service program in Win2k I think you are careless when installing. There is an option to make Tomcat as Windows NT Service. -- John Niven Please reply through mailing list -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to run tomcat as service program in Win2k
JavaService.exe is the same as the Tomcat.exe that comes with the Tomcat distribution for Win32. Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ralphn Sent: 13 March 2002 07:37 To: [EMAIL PROTECTED] Subject: AW: How to run tomcat as service program in Win2k Hello Try www.alexandriasc.com You can download a exe-file which does all the nessecary registry handling for you to make tomcat 4.x a service under windows2000. There is an example batch file, how to use the exe-file. Just have a look at it. It works fine. (Till now ;-) ) Greetings Ralph -Ursprungliche Nachricht- Von: oh [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 13. Marz 2002 08:18 An: [EMAIL PROTECTED] Betreff: How to run tomcat as service program in Win2k hello, I just donloaded Tomcat4.0.3, and I didn't find "jk_nt_service.exe" and the associated files, I want to run my tomcat as a service program in my Windows 2000 Pro, How can I do this? Huimin Wang -- 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: How to run tomcat as service program in Win2k
-Original Message- From: Xiao Juguang [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 07:25 To: Tomcat Users List Subject: Re: How to run tomcat as service program in Win2k I think you are careless when installing. There is an option to make Tomcat as Windows NT Service. I've got to admit I missed it too, but found instructions later: Enter the following at a command prompt (it's all one line, but I've added carriage returns here for legibility): %CATALINA_HOME%\bin\tomcat.exe -install Tomcat %JAVA_HOME%\jre\bin\classic\jvm.dll -Djava.class.path= %CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log I got these instructions from a URL posted here recently - a search of the archives should show it up. The only change I had to make was the path to jvm.dll - I'm using JDK1.2.2 and had to change to ...jre\bin\classic\... from ...jre\bin\hotspot\ Incidentally, and this is probably my ignorance showing here, I can start the service fine, but it spews an error when I shut it down (though it shuts down fine apart from the error). Does anyone have any idea what I've done wrong? Cheers John -- John Niven Please reply through mailing list -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to run tomcat as service program in Win2k
-Original Message- From: John Niven [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 15:43 To: 'Tomcat Users List' Subject: RE: How to run tomcat as service program in Win2k Oops. A bit of investigation and I answer my own question - ain't it always the way... There's a problem with the code I posted earlier - the correct version is: %CATALINA_HOME%\bin\tomcat.exe -install Tomcat %JAVA_HOME%\jre\bin\classic\jvm.dll -Djava.class.path= %CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log Note the position of the final '' in the last line. This is why I had problems shutting down the service. Hope this clarifies/helps, John ... %CATALINA_HOME%\bin\tomcat.exe -install Tomcat %JAVA_HOME%\jre\bin\classic\jvm.dll -Djava.class.path= %CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log ... Incidentally, and this is probably my ignorance showing here, I can start the service fine, but it spews an error when I shut it down (though it shuts down fine apart from the error). Does anyone have any idea what I've done wrong? Cheers John -- John Niven Please reply through mailing list -- 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]
How to run tomcat as service program in Win2k
hello, I just donloaded Tomcat4.0.3, and I didn't find "jk_nt_service.exe" and the associated files, I want to run my tomcat as a service program in my Windows 2000 Pro, How can I do this? Huimin Wang -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: How to run tomcat as service program in Win2k
I think you are careless when installing. There is an option to make Tomcat as Windows NT Service. - Original Message - From: "oh" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 3:18 PM Subject: How to run tomcat as service program in Win2k hello, I just donloaded Tomcat4.0.3, and I didn't find "jk_nt_service.exe" and the associated files, I want to run my tomcat as a service program in my Windows 2000 Pro, How can I do this? Huimin Wang -- 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]
AW: How to run tomcat as service program in Win2k
Hello Try www.alexandriasc.com You can download a exe-file which does all the nessecary registry handling for you to make tomcat 4.x a service under windows2000. There is an example batch file, how to use the exe-file. Just have a look at it. It works fine. (Till now ;-) ) Greetings Ralph -Ursprungliche Nachricht- Von: oh [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 13. Marz 2002 08:18 An: [EMAIL PROTECTED] Betreff: How to run tomcat as service program in Win2k hello, I just donloaded Tomcat4.0.3, and I didn't find "jk_nt_service.exe" and the associated files, I want to run my tomcat as a service program in my Windows 2000 Pro, How can I do this? Huimin Wang -- 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: How to run tomcat as service program in Win2k
Thanks! I downloaded jakarta-tomcat-4.0.3.exe instead of jakarta-tomcat-4.0.3.zip, and installed my tomcat as a service of Windows2000. Huimin Wang - Original Message - From: "Xiao Juguang" [EMAIL PROTECTED] To: "Tomcat Users List" [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 4:25 PM Subject: Re: How to run tomcat as service program in Win2k I think you are careless when installing. There is an option to make Tomcat as Windows NT Service. - Original Message - From: "oh" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 3:18 PM Subject: How to run tomcat as service program in Win2k hello, I just donloaded Tomcat4.0.3, and I didn't find "jk_nt_service.exe" and the associated files, I want to run my tomcat as a service program in my Windows 2000 Pro, How can I do this? Huimin Wang -- 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]