Bug 24943

Summary: Tomcat 5.0.14 / Windows 2000 Service does not start
Product: Tomcat 5 Reporter: Mr.Sea (Deniz TATAR) <mrsea77>
Component: Native:IntegrationAssignee: Tomcat Developers Mailing List <dev>
Status: CLOSED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 5.0.14   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Mr.Sea (Deniz TATAR) 2003-11-24 16:45:25 UTC
I downloaded jakarta-tomcat-5.0.14.exe and installed without any problem.
I have only j2sdk 1.4.2 and not jre. (But jre included with jdk you know)

After installation I opened the Windows 2000 "Services" tool and tried to start
"Apache Tomcat" service but it didn't start and I received following error 
message;

"Could not start the Apache Tomcat service on Local Computer. 
Error 1053: The service did not respond to the start or control request in a 
timely fashion."

I can start/stop Tomcat 5 with startup.bat and shutdown.bat without any problem.

I think there was a problem about tomcat.exe or tomcatw.exe service 
installation parameters. But I couldn't find any documentation about Windows 
NT/2000/XP Service Installation in currect documentation bundle.

For example if I want to use tomcat zip distribution (jakarta-tomcat-
5.0.14.zip) and make a manual installation (which it is better and flexible for 
me) I must know how to install the service with command line arguments. Or you 
can put a batch file for this, it will be very usefull.

I read "http://jakarta.apache.org/commons/daemon/procrun.html"  but I couldn't 
install tomcat5 service. I don't know what is the problem?

Thanks lot,
Comment 1 Remy Maucherat 2003-11-24 16:48:13 UTC

*** This bug has been marked as a duplicate of 24942 ***
Comment 2 James 2003-12-17 03:19:04 UTC
Mine will start but then stops immediately.
Comment 3 Martin Gainty 2003-12-28 15:57:44 UTC
Was able to reproduce bug 24943 with Tomcat 5 installed on Windows 2000 
Advanced Server SP4
"Cannot start Apache Tomcat Service "
Error 1053 The service did not respond to the start or control requests in a 
timely fashion.
Comment 4 Mladen Turk 2003-12-28 16:04:39 UTC
Will be fixed, but only if you have
system JAVA_HOME set correctly so that jvm.dll
could be found.
Comment 5 George Sexton 2003-12-28 16:58:04 UTC
You can actually figure this out by having the installer look at the Registry.

For the Sun JVM read

HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment

to get the CurrentVersion property

Once you have the CurrentVersion property, open the key named by it and read the
RuntimeLib property.

For the IBM JVM, read:

\Software\IBM\Java2 Runtime Environment
Comment 6 Chris Poulton 2004-01-02 21:37:57 UTC
I was able to solve this problem simply by installing the Java Runtime 
Environment along with the Java SDK.
The JAVA_HOME environment variable can still point to your Java SDK, but the RE 
has to be installed with valid registry entries, for example:

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
"CurrentVersion"="1.4"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4]
"JavaHome"="C:\\Program Files\\Java\\j2re1.4.1_01"
"MicroVersion"="1"
"RuntimeLib"="C:\\Program Files\\Java\\j2re1.4.1_01\\bin\\client\\jvm.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4.1_01]
"JavaHome"="C:\\Program Files\\Java\\j2re1.4.1_01"
"MicroVersion"="1"
"RuntimeLib"="C:\\Program Files\\Java\\j2re1.4.1_01\\bin\\client\\jvm.dll"
Comment 7 Michael Talavera 2004-01-07 18:04:43 UTC
Thank you Chris Poulton for your posting on this issue.  I could not get 
Tomcat 5.0.16 to start on my Windows XP machine, and edited the registry keys 
to match what you have listed.  I also changed the JVM path on the 
installation to point to the JavaSoft directory instead of the SDK.  Tomcat 
will now start after installation as well as the service.