I first downloaded windows service installer of 5.5.20 and can't get it work,
then I switched to zip file version. Reason is I checked doc for how-to and
it indicated service.bat which can only be found in zip version.

I followed how-to and ran "service.bat install", which was successful based
on console as below,

Installing the service 'Tomcat5' ...
Using CATALINA_HOME:    C:\tomcat-5.5.20
Using CATALINA_BASE:    C:\tomcat-5.5.20
Using JAVA_HOME:        C:\Program Files\Java\jdk1.6.0
Using JVM:              C:\Program
Files\Java\jdk1.6.0\jre\bin\server\jvm.dll
The service 'Tomcat5' has been installed.

Then I clicked tomcat5w.exe and chose start button, but status still showed
stopped. I checked log file which showed me following info,

[2006-12-29 23:27:47] [info] Starting service...
[2006-12-29 23:27:47] [173  javajni.c] [error] The specified module could
not be found.
[2006-12-29 23:27:47] [924  prunsrv.c] [error] Failed creating java
C:\Program Files\Java\jdk1.6.0\jre\bin\server\jvm.dll
[2006-12-29 23:27:47] [1179 prunsrv.c] [error] ServiceStart returned 1
[2006-12-29 23:27:47] [info] Run service finished.
[2006-12-29 23:27:47] [info] Procrun finished.

Some configuration in tomcat5w.exe are,

(General tab)Path to execute: C:\tomcat-5.5.20\bin\tomcat5.exe //RS//Tomcat5
(Java tab)Use default: not checked;
Java Virtual Machine: C:\Program Files\Java\jdk1.6.0\jre\bin\server\jvm.dll
Java Classpath: C:\tomcat-5.5.20\bin\bootstrap.jar
Java Options: -Dcatalina.base=C:\tomcat-5.5.20
                   -Dcatalina.home=C:\tomcat-5.5.20
                   -Djava.endorsed.dirs=C:\tomcat-5.5.20\common\endorsed
                   -Djava.io.tmpdir=C:\tomcat-5.5.20\temp
(Startup tab) Class: org.apache.catalina.startup.Bootstrap
Working Path: empty (I even tried putting C:\tomcat-5.5.20 here, but still
doesn't work)
Methods: empty
Argument: start
Mode: jvm

Has anyone used JDK 6 for 5.5.20? Any idea? Thanks and Happy New Year!
-- 
View this message in context: 
http://www.nabble.com/How-to-run-tomcat-service-in-JDK6--tf2899055.html#a8099595
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to