Bug 900896 (JBEWS-476)

Summary: Tomcat6 and Tomcat7 is not starting as MS Windows Service
Product: [JBoss] JBoss Enterprise Web Server 2 Reporter: Libor Fuka <lfuka>
Component: unspecifiedAssignee: Mladen Turk <mturk>
Status: CLOSED DUPLICATE QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: 2.0.0CC: lfuka, mturk
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEWS-476
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
MS Windows 2008 R2, JDK 1.6.0_32
Last Closed: 2012-09-17 15:31:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Deadline: 2012-09-20   

Description Libor Fuka 2012-09-17 13:49:22 UTC
project_key: JBEWS

When i installed Tomcat6 as MS Windows service (service.bat install) and then tried to start with net start tomcat6 it fails.
You can see erorr in commons-daemon.2012-09-17.log:
{code}
[2012-09-17 06:40:05] [info]  Commons Daemon procrun (1.0.10.0 64-bit) started
[2012-09-17 06:40:05] [info]  Running 'Tomcat6' Service...
[2012-09-17 06:40:05] [info]  Starting service...
[2012-09-17 06:40:05] [error] The specified module could not be found.
[2012-09-17 06:40:05] [error] Failed creating java T:\opt\windows\jdk1.6.0_32\jre\bin\client\jvm.dll
[2012-09-17 06:40:05] [error] The specified module could not be found.
[2012-09-17 06:40:05] [error] ServiceStart returned 1
[2012-09-17 06:40:05] [error] The specified module could not be found.
[2012-09-17 06:40:05] [info]  Run service finished.
[2012-09-17 06:40:05] [info]  Commons Daemon procrun finished
{code}


I found solution :
===================
http://www.mkyong.com/tomcat/tomcat-error-prunsrvc-failed-creating-java-jvmdll/
or here:
http://www.iisadmin.co.uk/?p=22

Comment 1 Libor Fuka 2012-09-17 13:50:00 UTC
Link: Added: This issue relates to JBPAPP-9551


Comment 2 Mladen Turk 2012-09-17 14:39:26 UTC
That's the error caused by your Java installation
Installer picked up 32-bit Java and you run 64-bit


Comment 3 Mladen Turk 2012-09-17 14:42:51 UTC
BTW, you can always make such setup that won't work.
System environment variable JAVA_HOME should be set correctly.
Without that depending on the installed Java version(s) things
might work or might fail like in this example.



Comment 4 Mladen Turk 2012-09-17 14:44:21 UTC
... and BTW, we have how many JIRA's opened for EWS-2 tomcat installer issues.
I mean either it works or not. So one issue please.

Comment 5 Libor Fuka 2012-09-17 15:30:13 UTC
Sorry, it was solved in JBPAPP-9580
Closing.

Comment 6 Jiri Skrabal 2012-11-14 08:26:46 UTC
Docs QE Status: Removed: NEW