If I run startup.bat, Tomcat starts successfully.  I navigated to
http://localhost:8080 and saw the Tomcat page.

Unfortunately I can't get the service to start using "Tomcat6.exe //IS//"
from the command line, Tomcat6w or Server Manager -> Services.

I'm using all of the defaults in Tomcat6w.  On the Java tab, 'Use Default'
is checked and everything else is blank.

I found the following error in my log:
"The Tomcat6 service terminated with service-specific error 0 (0x0)."
When I searched for the error in user groups, the only answer that I found
was to copy msvrc71.dll to my c:/c/tomcat/bin directory.  I've tried
that and it doesn't seem to help.

Richard

On Fri, Nov 19, 2010 at 8:09 AM, André Warnier <a...@ice-sa.com> wrote:

>  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 (1.0.2.0) 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: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Richard

"L'audace, l'audace. Toujours l'audace!"

============================================================

Reply via email to