You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Barry Kimelman <bl...@comcast.net> on 2009/09/06 22:27:08 UTC

Can't start Tomcat5 service on Windows Vista Home Premium

My PC is running the 64 bit version of Windows Visa Home Premium.

I am trying to get Tomcat 5.5.28 up and running. In years past I have been 
able to get older versions of Tomcat up and running on various versions of 
Windows. But now I am getting an error which I have not previously 
encountered.

The problem: at the end of the installation process the installation wizard 
asks me if I want to start  Tomcat. I select "yes" and click OK to continue. 
I receive and error message that simply states:

Windows could not start the Apache Tomcat on Local Computer. For more 
information,
review the System Event Log. If this is a non-Microsoft service, contact the 
service
vendor, and refer to service-specific error code 0.

I restarted windows and tghen tried to start Tomcat. I received the same 
error message.

I used Google to search for people with similar problems and followed the 
advice but I was not successful. I tried the following
*  I turned off User Account Control
* I modified the firewall setting to allow access to port 8080

I checked the windows system event log and found the following error.
"The Apache Tomcat service terminated with service-specific  error (0x0).
The event id asscoiated with this error was 7024. A search of the web turned 
up the following description of errfor 7024.

Event ID 7024 - Service Stop Operations
Updated: December 11, 2007
Applies To: Windows Server 2008

Service Control Manager (SCM) stops services and driver services. It also 
reports when services terminate unexpectedly or fail to restart after it 
takes corrective action.
Event Details
Product: Windows Operating System
ID: 7024
Source: Service Control Manager
Version: 6.0
Symbolic Name: EVENT_SERVICE_EXIT_FAILED_SPECIFIC
Message: The %1 service terminated with service-specific error %2.

Resolve
Review the service-specific error information
To resolve this issue, first review the service-specific error code that the 
Service Control Manager encountered when trying to stop the service, and 
then review the Event logs for other related events that have been logged by 
the Service Control Manager (SCM) Eventlog Provider.
To perform these procedures, you must have membership in Administrators, or 
you must have been delegated the appropriate authority.
Review the service-specific error code
To review the service-specific error code:
Click the Start button, Run, then type cmd to open a command prompt.
Type sc query service_name (where service_name is the name of the service) 
at the command prompt to display the service-specific SERVICE_EXIT_CODE 
error code that the Service Control Manager encountered when stopping the 
service.
Note: If the service was stopped successfully, the SERVICE_EXIT_CODE field 
should contain a zero (0). If the service failed to stop when an attempt was 
made, this field should contain an exit code provided by the service when it 
could not stop.


I found the following text a Tomcat logfile:
[2009-09-06 15:18:15] [info] Starting service...
[2009-09-06 15:18:15] [197  javajni.c] [error] %1 is not a valid Win32 
application.
[2009-09-06 15:18:15] [994  prunsrv.c] [error] Failed creating java 
C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
[2009-09-06 15:18:15] [1269 prunsrv.c] [error] ServiceStart returned 1
[2009-09-06 15:18:15] [info] Run service finished.
[2009-09-06 15:18:15] [info] Procrun finished.


Does anyone have any suggestions on how I can resolve this issue ?

Thanks for all your assistance.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Can't start Tomcat5 service on Windows Vista Home Premium

Posted by Martin Gainty <mg...@hotmail.com>.
i originally ported 32bit JDK/JRE install with same consequences

once I installed 64bit JRE/JDK properly i was able to get TC operational
click on details for %JRE_HOME%/bin/server/jvm.dll and you *should* see 64 bit server VM
 
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Sun, 6 Sep 2009 22:20:40 +0100
> From: markt@apache.org
> To: users@tomcat.apache.org
> Subject: Re: Can't start Tomcat5 service on Windows Vista Home Premium
> 
> André Warnier wrote:
> > Mark Thomas wrote:
> >> Barry Kimelman wrote:
> > ...
> > 
> >>
> >> This is a 'feature' of newer versions of Java where the required dlls
> >> aren't placed where they are meant to be. I believe there is a fix in
> >> the works in commons-daemon to try and work around this. More details
> >> (including background and workarounds) can be found in the associated
> >> JIRA.
> >>
> >> https://issues.apache.org/jira/browse/DAEMON-110
> >>
> > I stand corrected thus.  Please ignore my previous answer about the
> > 64-bit tomcatX.exe.  Things seem to have moved ahead while I was on
> > holiday..
> 
> Maybe, maybe not. Looking again at the log message it does look more
> like a 64-bit issue rather than the JVM issue.
> 
> Mark
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

_________________________________________________________________
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1

RE: Can't start Tomcat5 service on Windows Vista Home Premium

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Mark Thomas [mailto:markt@apache.org]
> Subject: Re: Can't start Tomcat5 service on Windows Vista Home Premium
> 
> Maybe, maybe not. Looking again at the log message it does look more
> like a 64-bit issue rather than the JVM issue.

The log shows that it's using a 32-bit JVM - C:\Program Files (x86) - so the default tomcat6.exe should work.

I'd suggest downloading the .zip version and verify that Tomcat functions with the installed JVM, and only then trying to install the service with the service.bat script.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Can't start Tomcat5 service on Windows Vista Home Premium

Posted by Mark Thomas <ma...@apache.org>.
André Warnier wrote:
> Mark Thomas wrote:
>> Barry Kimelman wrote:
> ...
> 
>>
>> This is a 'feature' of newer versions of Java where the required dlls
>> aren't placed where they are meant to be. I believe there is a fix in
>> the works in commons-daemon to try and work around this. More details
>> (including background and workarounds) can be found in the associated
>> JIRA.
>>
>> https://issues.apache.org/jira/browse/DAEMON-110
>>
> I stand corrected thus.  Please ignore my previous answer about the
> 64-bit tomcatX.exe.  Things seem to have moved ahead while I was on
> holiday..

Maybe, maybe not. Looking again at the log message it does look more
like a 64-bit issue rather than the JVM issue.

Mark




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Can't start Tomcat5 service on Windows Vista Home Premium

Posted by André Warnier <aw...@ice-sa.com>.
Mark Thomas wrote:
> Barry Kimelman wrote:
...

> 
> This is a 'feature' of newer versions of Java where the required dlls
> aren't placed where they are meant to be. I believe there is a fix in
> the works in commons-daemon to try and work around this. More details
> (including background and workarounds) can be found in the associated JIRA.
> 
> https://issues.apache.org/jira/browse/DAEMON-110
> 
I stand corrected thus.  Please ignore my previous answer about the 
64-bit tomcatX.exe.  Things seem to have moved ahead while I was on 
holiday..


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Can't start Tomcat5 service on Windows Vista Home Premium

Posted by Mark Thomas <ma...@apache.org>.
Barry Kimelman wrote:
> I found the following text a Tomcat logfile:
> [2009-09-06 15:18:15] [info] Starting service...
> [2009-09-06 15:18:15] [197  javajni.c] [error] %1 is not a valid Win32
> application.
> [2009-09-06 15:18:15] [994  prunsrv.c] [error] Failed creating java
> C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
> [2009-09-06 15:18:15] [1269 prunsrv.c] [error] ServiceStart returned 1
> [2009-09-06 15:18:15] [info] Run service finished.
> [2009-09-06 15:18:15] [info] Procrun finished.

This is a 'feature' of newer versions of Java where the required dlls
aren't placed where they are meant to be. I believe there is a fix in
the works in commons-daemon to try and work around this. More details
(including background and workarounds) can be found in the associated JIRA.

https://issues.apache.org/jira/browse/DAEMON-110

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Can't start Tomcat5 service on Windows Vista Home Premium

Posted by Barry Kimelman <bl...@comcast.net>.
Thanks to all who replied to my message. I was able to get Tomcat 6 up and 
running by starting it from the command line and for now that is good 
enough.  I will eventually work on getting it running as a service, but for 
now the fact that it is running is satisfactory.


----- Original Message ----- 
From: "Barry Kimelman" <bl...@comcast.net>
To: <us...@tomcat.apache.org>
Sent: Sunday, September 06, 2009 3:27 PM
Subject: Can't start Tomcat5 service on Windows Vista Home Premium


> My PC is running the 64 bit version of Windows Visa Home Premium.
>
> I am trying to get Tomcat 5.5.28 up and running. In years past I have been 
> able to get older versions of Tomcat up and running on various versions of 
> Windows. But now I am getting an error which I have not previously 
> encountered.
>
> The problem: at the end of the installation process the installation 
> wizard asks me if I want to start  Tomcat. I select "yes" and click OK to 
> continue. I receive and error message that simply states:
>
> Windows could not start the Apache Tomcat on Local Computer. For more 
> information,
> review the System Event Log. If this is a non-Microsoft service, contact 
> the service
> vendor, and refer to service-specific error code 0.
>
> I restarted windows and tghen tried to start Tomcat. I received the same 
> error message.
>
> I used Google to search for people with similar problems and followed the 
> advice but I was not successful. I tried the following
> *  I turned off User Account Control
> * I modified the firewall setting to allow access to port 8080
>
> I checked the windows system event log and found the following error.
> "The Apache Tomcat service terminated with service-specific  error (0x0).
> The event id asscoiated with this error was 7024. A search of the web 
> turned up the following description of errfor 7024.
>
> Event ID 7024 - Service Stop Operations
> Updated: December 11, 2007
> Applies To: Windows Server 2008
>
> Service Control Manager (SCM) stops services and driver services. It also 
> reports when services terminate unexpectedly or fail to restart after it 
> takes corrective action.
> Event Details
> Product: Windows Operating System
> ID: 7024
> Source: Service Control Manager
> Version: 6.0
> Symbolic Name: EVENT_SERVICE_EXIT_FAILED_SPECIFIC
> Message: The %1 service terminated with service-specific error %2.
>
> Resolve
> Review the service-specific error information
> To resolve this issue, first review the service-specific error code that 
> the Service Control Manager encountered when trying to stop the service, 
> and then review the Event logs for other related events that have been 
> logged by the Service Control Manager (SCM) Eventlog Provider.
> To perform these procedures, you must have membership in Administrators, 
> or you must have been delegated the appropriate authority.
> Review the service-specific error code
> To review the service-specific error code:
> Click the Start button, Run, then type cmd to open a command prompt.
> Type sc query service_name (where service_name is the name of the service) 
> at the command prompt to display the service-specific SERVICE_EXIT_CODE 
> error code that the Service Control Manager encountered when stopping the 
> service.
> Note: If the service was stopped successfully, the SERVICE_EXIT_CODE field 
> should contain a zero (0). If the service failed to stop when an attempt 
> was made, this field should contain an exit code provided by the service 
> when it could not stop.
>
>
> I found the following text a Tomcat logfile:
> [2009-09-06 15:18:15] [info] Starting service...
> [2009-09-06 15:18:15] [197  javajni.c] [error] %1 is not a valid Win32 
> application.
> [2009-09-06 15:18:15] [994  prunsrv.c] [error] Failed creating java 
> C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
> [2009-09-06 15:18:15] [1269 prunsrv.c] [error] ServiceStart returned 1
> [2009-09-06 15:18:15] [info] Run service finished.
> [2009-09-06 15:18:15] [info] Procrun finished.
>
>
> Does anyone have any suggestions on how I can resolve this issue ?
>
> Thanks for all your assistance.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Can't start Tomcat5 service on Windows Vista Home Premium

Posted by André Warnier <aw...@ice-sa.com>.
Barry Kimelman wrote:
> My PC is running the 64 bit version of Windows Visa Home Premium.
> 
> I am trying to get Tomcat 5.5.28 up and running. In years past I have 
> been able to get older versions of Tomcat up and running on various 
> versions of Windows. But now I am getting an error which I have not 
> previously encountered.
> 
> The problem: at the end of the installation process the installation 
> wizard asks me if I want to start  Tomcat. I select "yes" and click OK 
> to continue. I receive and error message that simply states:
> 
> Windows could not start the Apache Tomcat on Local Computer. For more 
> information,
> review the System Event Log. If this is a non-Microsoft service, contact 
> the service
> vendor, and refer to service-specific error code 0.
> 
> I restarted windows and tghen tried to start Tomcat. I received the same 
> error message.
> 
> I used Google to search for people with similar problems and followed 
> the advice but I was not successful. I tried the following
> *  I turned off User Account Control
> * I modified the firewall setting to allow access to port 8080
> 
> I checked the windows system event log and found the following error.
> "The Apache Tomcat service terminated with service-specific  error (0x0).
> The event id asscoiated with this error was 7024. A search of the web 
> turned up the following description of errfor 7024.
> 
> Event ID 7024 - Service Stop Operations
> Updated: December 11, 2007
> Applies To: Windows Server 2008
> 
> Service Control Manager (SCM) stops services and driver services. It 
> also reports when services terminate unexpectedly or fail to restart 
> after it takes corrective action.
> Event Details
> Product: Windows Operating System
> ID: 7024
> Source: Service Control Manager
> Version: 6.0
> Symbolic Name: EVENT_SERVICE_EXIT_FAILED_SPECIFIC
> Message: The %1 service terminated with service-specific error %2.
> 
> Resolve
> Review the service-specific error information
> To resolve this issue, first review the service-specific error code that 
> the Service Control Manager encountered when trying to stop the service, 
> and then review the Event logs for other related events that have been 
> logged by the Service Control Manager (SCM) Eventlog Provider.
> To perform these procedures, you must have membership in Administrators, 
> or you must have been delegated the appropriate authority.
> Review the service-specific error code
> To review the service-specific error code:
> Click the Start button, Run, then type cmd to open a command prompt.
> Type sc query service_name (where service_name is the name of the 
> service) at the command prompt to display the service-specific 
> SERVICE_EXIT_CODE error code that the Service Control Manager 
> encountered when stopping the service.
> Note: If the service was stopped successfully, the SERVICE_EXIT_CODE 
> field should contain a zero (0). If the service failed to stop when an 
> attempt was made, this field should contain an exit code provided by the 
> service when it could not stop.
> 
> 
> I found the following text a Tomcat logfile:
> [2009-09-06 15:18:15] [info] Starting service...
> [2009-09-06 15:18:15] [197  javajni.c] [error] %1 is not a valid Win32 
> application.
> [2009-09-06 15:18:15] [994  prunsrv.c] [error] Failed creating java 
> C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
> [2009-09-06 15:18:15] [1269 prunsrv.c] [error] ServiceStart returned 1
> [2009-09-06 15:18:15] [info] Run service finished.
> [2009-09-06 15:18:15] [info] Procrun finished.
> 
> 
> Does anyone have any suggestions on how I can resolve this issue ?
> 
Short answer : see http://tomcat.markmail.org/search/?q=64%20bit
(you probably need the 64-bit tomcatX.exe)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org