Starting Tomcat as a service on 2000/NT
Is there any performance benefits if Tomcat is configures as a service on 2000/NT? Thanks -Manoj.
starting tomcat from the service
My name is Chiharu Nakatani. I have found your name and e-mail address from http://jakarta.apache.org/tomcat/tomcat-3.3-doc/NT-Service-howto.html I am trying to startup tomcat from the service and am facing some problems. I can't start Tomcat after installing tomcat to the service, using jk_nt_service.exe. The error is "the service didn't report an error - net helpmsg 3534". I can startup tomcat from hitting a startup.bat file, in C:\tomcat\bin\startup but never from the service. This is the environment I have on my machine, that is Windows 2000 Server. C:\tomcat C:\jdk1.3.1 I have environmental variables on tomcat_home, and java_home. Also, I have specified those in the wrapper.properties. wrapper.tomcat_home=c:\tomcat # # wrapper.java_home should point to your Java installation. Normally # you should have a bin and lib directories beneath it. # wrapper.java_home=c:\jdk1.3.1 What can be wrong? _ Chiharu Nakatani MTI Ltd. 4F Shinjuku Kokusai Bldg. Shinkan 6-6-3 NishiShinjuku, Shinjuku-ku Tokyo Japan,160-0023 TEL:+81-3-5325-6211 FAX:+81-3-5325-6223 E-Mail:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: starting tomcat from the service
Hello Chiharu I have environmental variables on tomcat_home, and java_home. Also, I have specified those in the wrapper.properties. wrapper.tomcat_home=c:\tomcat If you use additional jar files in WEB-INF\lib, try putting those into wrapper.properties as well (like wrapper.classpath=c:\tomcat\webapps\myapp\WEB-INF\lib\myjar.jar)... If you take away all the other webapps, can you get the examples context working as a service? ChrisC -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: starting tomcat from the service
I'd recommend ditching jk_nt_service. Tomcat can install itself as a service just fine. You'll find the instructions to do so in my article, JSP Quick-Start Guide for Windows on www.webmasterbase.com. ___ Kevin Yank Technical Content Director SitePoint.com - Master the Web! e: [EMAIL PROTECTED] w: www.sitepoint.com ___ -Original Message- From: ’†’J ’q° [mailto:[EMAIL PROTECTED]] Sent: June 5, 2002 6:38 AM To: '[EMAIL PROTECTED]' Subject: starting tomcat from the service My name is Chiharu Nakatani. I have found your name and e-mail address from http://jakarta.apache.org/tomcat/tomcat-3.3- doc/NT-Service-howto.html I am trying to startup tomcat from the service and am facing some problems. I can't start Tomcat after installing tomcat to the service, using jk_nt_service.exe. The error is the service didn't report an error - net helpmsg 3534. I can startup tomcat from hitting a startup.bat file, in C:\tomcat\bin\startup but never from the service. This is the environment I have on my machine, that is Windows 2000 Server. C:\tomcat C:\jdk1.3.1 I have environmental variables on tomcat_home, and java_home. Also, I have specified those in the wrapper.properties. wrapper.tomcat_home=c:\tomcat # # wrapper.java_home should point to your Java installation. Normally # you should have a bin and lib directories beneath it. # wrapper.java_home=c:\jdk1.3.1 What can be wrong? __ ___ Chiharu Nakatani MTI Ltd. 4F Shinjuku Kokusai Bldg. Shinkan 6-6-3 NishiShinjuku, Shinjuku-ku Tokyo Japan,160-0023 TEL:+81-3-5325-6211 FAX:+81-3-5325-6223 E-Mail:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [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: starting tomcat as a service
Sounds like it can't find a class definition. Check the classpath you assigned when you started the JVM as a service. [EMAIL PROTECTED] 4/23/2001 8:07:29 AM Hi, I'm using Tomcat 3.2 on Windows 2000. It works fine when I start and stop it manually (with the scripts in /bin, I mean), but it doens't work as a service: I install the service, and just after I start it, stops again writting on /logs/jvm.stderr the following message: --- java.lang.NoClassDefFoundError: de Exception in thread main --- Any idea what my problem could be? Thanks beforehand and best regards, Iñaki Sáinz de Murieta - This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/
RE: starting tomcat as a service
I've found that the service for Tomcat (I'm not sure which one you are using or even if there are more than one) doesn't shut down properly. Be careful if you need (like I did) ContextListeners to do things when it shuts down. They don't get called (or at least not by the service I have). Other than that, it worked fine for me. -Original Message- From: Mark Mynsted [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 9:28 AM To: [EMAIL PROTECTED] Subject: Re: starting tomcat as a service Sounds like it can't find a class definition. Check the classpath you assigned when you started the JVM as a service. [EMAIL PROTECTED] 4/23/2001 8:07:29 AM Hi, I'm using Tomcat 3.2 on Windows 2000. It works fine when I start and stop it manually (with the scripts in /bin, I mean), but it doens't work as a service: I install the service, and just after I start it, stops again writting on /logs/jvm.stderr the following message: --- java.lang.NoClassDefFoundError: de Exception in thread main --- Any idea what my problem could be? Thanks beforehand and best regards, Iñaki Sáinz de Murieta - This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/
starting tomcat as a service
Hi, I'm using Tomcat 3.2 on Windows 2000. It works fine when I start and stop it manually (with the scripts in /bin, I mean), but it doens't work as a service: I install the service, and just after I start it, stops again writting on /logs/jvm.stderr the following message: --- java.lang.NoClassDefFoundError: de Exception in thread main --- Any idea what my problem could be? Thanks beforehand and best regards, Iñaki Sáinz de Murieta - This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/
Troubles starting Tomcat as NT service
Hello ! I'm running WinNT4 Client, SP6 and Apache on my machine. Tomcat and Apache run together very well. However to keep Apache *and* Tomcat running when logging out i would like to get Tomcat running as NT service. Up to now I failed. The steps I performed: - edit TOMCAT_HOME\conf\wrapper.properties - wrapper.tomcat_home=c:\progra~1\jakart~1.2 - wrapper.java_home=p:\java\jdk1.3 (location of jdk on our intranet) - check log directories: is there - comment out line with lib\classes.zip (don't need, using jdk1.3) - install as NT service: TOMCAT_HOME\bin\jk_nt_service -i Tomcat ..\conf\wrapper.properties (reports no errors) - try to start nt service: NET START Tomcat reports: C:\PROGRA~1\JAKART~1.2\binnet start Tomcat The Tomcat service is starting. The Tomcat service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. C:\PROGRA~1\JAKART~1.2\bin What's wrong ? Thanks for help Stefan Rufer PS: - Attached file wrapper.properties - I can start Tomcat manually, eg. with "startup.bat" or the following command line: p:\java\jdk1.3\bin\java.exe -classpath c:\progra~1\jakart~1.2\classes;c:\progra~1\jakart~1.2\lib\jaxp.jar;c:\progra~1\jakart~1.2\lib\parser.jar;c:\progra~1\jakart~1.2\lib\webserver.jar;c:\progra~1\jakart~1.2\lib\servlet.jar;c:\progra~1\jakart~1.2\lib\jasper.jar;p:\java\jdk1.3\lib\tools.jar org.apache.tomcat.startup.Tomcat -config c:\progra~1\jakart~1.2\conf\server.xml -home c:\progra~1\jakart~1.2 -- Assistant Competence Center Electronic Commerce (CCEC) http://ccec.hta-bi.bfh.ch/ +41-32-321 63 37 private: http://www.hta-bi.bfh.ch/~rfs/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Troubles starting Tomcat as NT service
line: p:\java\jdk1.3\bin\java.exe -classpath c:\progra~1\jakart~1.2\classes;c:\progra~1\jakart~1.2\lib\jaxp.jar;c:\progra ~1\jakart~1.2\lib\parser.jar;c:\progra~1\jakart~1.2\lib\webserver.jar;c:\pro gra~1\jakart~1.2\lib\servlet.jar;c:\progra~1\jakart~1.2\lib\jasper.jar;p:\ja va\jdk1.3\lib\tools.jar org.apache.tomcat.startup.Tomcat -config c:\progra~1\jakart~1.2\conf\server.xml -home c:\progra~1\jakart~1.2 Is that really a driver p? If so, is it a network drive? If so, does the System account on this machine have permissions to access java.exe from the remote computer? If this is the problem, you will probably want to either (1) install jdk locally or (2) change the account that Tomcat runs as to an account that has permissions on the drive. That's really the only thing that looks troublesome to me. Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]