5

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).

рüффп
  • 5,172
  • 34
  • 67
  • 113
ScArcher2
  • 85,501
  • 44
  • 121
  • 160

6 Answers6

9

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.

anjanb
  • 12,999
  • 18
  • 77
  • 106
  • If by launching Tomcat monitor you find you are pointing to a location where there is jvm.dll, like jre/server/jvm.dll, copy the dll where you have the jvm.dll. – Pietro Polsinelli Jun 29 '12 at 08:30
3

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.

Community
  • 1
  • 1
ScArcher2
  • 85,501
  • 44
  • 121
  • 160
2

I solved the same problem enabling the default java virtual machine in the configuration app.

Assuming you have installed tomcat using:

service install tomcat-6.0.35  

execute:

tomcat6w //ES/tomcat-6.0.35

a window pops up, select the java tab and click on "Use default" checkbox.

The service install script (I immagine) selected C:\Program Files(x86)\Java\jre\bin\client\jvm.dll instead.

Environment:

  • Windows Server standard SP2 64-bin
  • Java 1.6.0_23-b05 (Java hotspot 64-bit server vm 19.0-b09 mixed mode)
  • Apache tomcat 6.35 (you guessed this didn't you?)
lrkwz
  • 6,105
  • 3
  • 36
  • 59
2

i follow the above guide but still the same, error 0, my process monitor log at http://www.sendspace.com/file/t0tahr

cometta
  • 35,071
  • 77
  • 215
  • 324
1

Even though it's an older post, I thought I'd share the knowledge about the very same issue I had, but the workaround was different.

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

As there was no more information regarding the problem I went back to the Tomcat Control Panel and had a look at the Java path, which was pointed to an earlier installation of Java Virtual Machine:

C:\Program Files\Java\jre6\bin\client\jvm.dll, which no longer existed, so I had to change the JRE version to jre7.

Having done that, the service started up and all running now.

Hope it'll help some of you out there.

army
  • 545
  • 5
  • 16
1

I copied the msvcr71.dll from the java home directory to the bin directory of the apache-tomcat install, and the service started after that.

Marty
  • 11
  • 1