I commented out those lines, I changed the startmode and stopmode to exe (and 
also tried java).  I get an error when starting the service.  I checked all of 
the paths and they appear to be correct.  The error that I am getting is:


[2010-01-12 10:40:39] [info] Procrun (2.0.4.0) started
[2010-01-12 10:40:39] [info] Running Service...
[2010-01-12 10:40:39] [info] Starting service...
[2010-01-12 10:40:39] [1030 prunsrv.c] [error] Failed setting process executable
[2010-01-12 10:40:39] [1269 prunsrv.c] [error] ServiceStart returned 2
[2010-01-12 10:40:39] [info] Run service finished.
[2010-01-12 10:40:39] [info] Procrun finished.

Does anyone know how I can correct that??


-----Original Message-----
From: Pid [mailto:p...@pidster.com]
Sent: Tuesday, January 12, 2010 3:44 AM
To: users@tomcat.apache.org
Subject: Re: Running Tomcat 6 as a service

On 12/01/2010 04:10, Russell Collins wrote:
> I am using JRockit as my java runtime.  When I manually start Tomcat, I have 
> no problems with it.  However, when I try to run Tomcat as a service with 
> JRockit as my java runtime, I get an error that says that it cannot start the 
> service.  I looked in the service.bat file and I think that I may have found 
> where this error is happening.  The following lines are in the batch file
>
> rem Set the server jvm from JAVA_HOME
> set PR_JVM=%JAVA_HOME%\jre\bin\server\jvm.dll
> if exist "%PR_JVM%" goto foundJvm
> rem Set the client jvm from JAVA_HOME
> set PR_JVM=%JAVA_HOME%\jre\bin\client\jvm.dll
> if exist "%PR_JVM%" goto foundJvm
>
> JRockit does not have these entries in their java runtime directories.  These 
> are specific to Sun's implementation.  The interesting thing is that I also 
> run an Apache Geronimo serice using JRockit as the java runtime and it runs 
> great.  Can these lines be omitted?  Are they crucial for Apache Tomcat to 
> run as a service without issue?
>
>
 >
 >
> "Do or do not, there is no try." - Yoda

Maybe you could "try" it?


p


> ________________________________
> CONFIDENTIALITY NOTICE: The information contained in this electronic mail 
> (email) transmission (including attachments), is intended by MCLANE ADVANCED 
> TECHNOLOGIES for the use of the named individual or entity to which it is 
> addressed and may contain information that is privileged, confidential and/or 
> protected as a trade secret. It is not intended for transmission to, or 
> receipt by, any individual or entity other than the named addressee(s). If 
> you have received this email in error, please delete it (including 
> attachments) and any copies thereof without printing, copying or forwarding 
> it, and notify the sender of the error by email reply immediately.
>


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


CONFIDENTIALITY NOTICE: The information contained in this electronic mail 
(email) transmission (including attachments), is intended by MCLANE ADVANCED 
TECHNOLOGIES for the use of the named individual or entity to which it is 
addressed and may contain information that is privileged, confidential and/or 
protected as a trade secret. It is not intended for transmission to, or receipt 
by, any individual or entity other than the named addressee(s). If you have 
received this email in error, please delete it (including attachments) and any 
copies thereof without printing, copying or forwarding it, and notify the 
sender of the error by email reply immediately.

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

Reply via email to