tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: Problems installing Tomcat on Windows 2008
Date Fri, 19 Nov 2010 14:09:07 GMT
Richard Pless wrote:
>  Hi All,
> I'm having problems installing Tomcat 6.0.29 as a service on a Windows 2008
> server.  Here are the relevant specs
>     Apache Tomcat v6.0.29 (64 bit)
>     JDK 6u22 (64 bit)
>     Windows Server Standard 2008 (sp2)
> I've tried to start the Tomcat as a service unsuccessfully.  I have run
> Tomcat6 and service.bat from the command line.  Here's my output from
> service.bat
>     C:\c\tomcat\bin>service.bat install
>     Installing the service 'Tomcat6' ...
>     Using CATALINA_HOME:    "C:\c\tomcat"
>     Using CATALINA_BASE:    "C:\c\tomcat"
>     Using JAVA_HOME:        "c:\Program Files\Java\jdk1.6.0_22"
>     Using JVM:              "c:\Program
> Files\Java\jdk1.6.0_22\jre\bin\server\jvm.dll"
>     Failed installing 'Tomcat6' service
>     C:\c\tomcat\bin>
> Here is what I'm seeing in my Jakarta Service Log:
>     [2010-11-18 11:42:20] [1381 prunsrv.c] [debug] Commons Daemon procrun
> log initialized
>     [2010-11-18 11:42:20] [info] Commons Daemon procrun ( started
>     [2010-11-18 11:42:20] [info] Running Service...
>     [2010-11-18 11:42:20] [1165 prunsrv.c] [debug] Inside ServiceMain...
>     [2010-11-18 11:42:20] [info] Starting service...
>     [2010-11-18 11:42:20] [206  javajni.c] [error] The specified module
> could not be found.
>     [2010-11-18 11:42:20] [985  prunsrv.c] [error] Failed creating java
>     [2010-11-18 11:42:20] [1280 prunsrv.c] [error] ServiceStart returned 1
>     [2010-11-18 11:42:20] [info] Run service finished.
>     [2010-11-18 11:42:20] [info] Commons Daemon procrun finished.
> I have checked the environmental variables above and I believe that they are
> correct.  I have also copied msrvc71.dll to my oc\tomcat\bin directory
> (where Tomcat6.exe is located) per some other suggestions I've found online.
> I can see the service from Windows Services but I can't start it from there
> Nor can I start it using netstart from the command line or using
> service.bat.  I'm new to Apache and Java.  Any help would be appreciated.

Can you run Tomcat from a command window ?
Navigate to C:\c\tomcat\bin
run "startup.bat" (it should open another window where tomcat messages will appear)
(terminate with ctrl-c in the new window)

You can also run the program "tomcat6w.exe" directly. It is a GUI program which allows to

edit the Registry settings of the Tomcat Service.  Maybe you can spot there what is missing.

For info, "tomcat6.exe" is actually the Commons Daemon "procrun" mentioned above in the 
log.  It is just renamed.  tomcat6.exe is a "wrapper program", which reads the Registry 
settings of the Tomcat service and starts the JVM accordingly (or tries to).

It looks like it cannot start the java JVM for some reason.
Maybe also the Windows Event log will give a clue ?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message