Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat 6.0.18 service will not start on a windows server

I installed Tomcat 6.0.18 on a windows server 2003 box and it will not start as a service. I'm running it with jdk 1.6.0_07.

It runs when I start it with tomcat6.exe.

I got a vague error in the System Event Log on Windows.

The Apache Tomcat 6 service terminated with service-specific error 0 (0x0).

like image 927
ScArcher2 Avatar asked Sep 26 '08 19:09

ScArcher2


People also ask

Why is my Tomcat 7 service not running?

If it is not running, try to start the service manually by selecting it and clicking Start. While trying to start the service, you might receive the following error message, which may result from a Java update: "Windows could not start the Apache Tomcat 7 on Local Computer. For more information, review the System Event Log.

How to run Tomcat server as a Windows service?

With Tcat Server, you can simply run ‘tcatserverw.exe’ from your bin folder. Go to the “Java” tab and enter the start parameter values (for ex: increase memory size). Thats it! You can repeat this process for as many Tomcat instances as you want to run as Windows services.

How do I resolve the Apache Tomcat service start-up error?

If you receive this error while attempting to start the Apache Tomcat service, follow the step-by-step instructions below to resolve your issue: Navigate to your %TOMCAT_HOME%\bin directory (for example, C:\Program Files\Apache Tomcat\Tomcat7\bin) and double-click tomcat7w.exe.

Does Tomcat start after a reboot and run 24/7?

Ensure that Tomcat starts after a reboot and runs 24/7! Tomcat is a world class, open source Java Servlet container developed by the Apache Software Foundation. To set up Tomcat with AlwaysUp:


2 Answers

I'll bite it :-)

Tomcat Service on windows is dependent on the MS C Runtime library msvcr71.dll. As long as it is in the path, the service will start just fine.

Just to prevent your other windows to be forced to use this version of the runtime library, you might want to copy the DLL to just the tomcat bin path instead of windows\system32.

like image 72
anjanb Avatar answered Nov 14 '22 22:11

anjanb


From gobaco.wordpress.com

Tomcat 6 couldn’t find a file called msvcr71.dll.
I just copied it over from c:\windows\microsoft.net\framework\v1.1.4322 to c:\windows\system32

and was able to start tomcat.

I thought this was very strange, so I wanted to post it on SO in case anyone else runs into this problem. If someone wants to post the same answer I'll accept it.

like image 34
ScArcher2 Avatar answered Nov 14 '22 23:11

ScArcher2