I normally run Tomcat in a Un*x environment, but I had to load it on a Windows box recently.  I first installed Java, and then Tomcat but the Windows service failed to start following the installation.  I was left with the following set of messages:

[2008-07-11 17:39:00] [info] Procrun (2.0.3.0) started
[2008-07-11 17:39:00] [info] Running Service...
[2008-07-11 17:39:00] [info] Starting service...
[2008-07-11 17:39:00] [174  javajni.c] [error] The specified module could not be found.
[2008-07-11 17:39:00] [986  prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.6.0_07\bin\client\jvm.dll
[2008-07-11 17:39:00] [1260 prunsrv.c] [error] ServiceStart returned 1
[2008-07-11 17:39:00] [info] Run service finished.
[2008-07-11 17:39:00] [info] Procrun finished.

Not a very helpful set of error messages!  It turns out that this is related to the following:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6509291

Two workarounds exist:

  1. Copy msvcr71.dll from the Java installation bin directory, e.g. C:\Program Files\Java\jdk1.6.0_07\bin directory, to  the %WINDIR%/system32 directory.
  2. Include the Java installation bin directory in your system PATH environment variable.

I chose option #1, and Tomcat loads without a problem.

Advertisements