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,
*** This bug has been marked as a duplicate of 24942 ***
Mine will start but then stops immediately.
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.
Will be fixed, but only if you have system JAVA_HOME set correctly so that jvm.dll could be found.
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
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"
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.