tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nadia Kunkov" <>
Subject Procrun returns too fast.
Date Tue, 04 Oct 2005 13:04:48 GMT
I'm an absolute beginner in setting up services on Windows box.
Please, bear with me if my questions seem stupid.
I have a windows XP machine, I'm using Oracle Java Developer for java develpment, I'm using
Quartz as a scheduler.  We will be transferring our application to a Linux box eventually.
I need to set up a service and I understand that commons-daemon package will allow me to do
I was not able to find a built version of procrun  and I don't have a C or C++ compiler.
I found out that people use tomcat5.exe insted since that seems to be a compiled version of
Here is how I tried setting up my service:

C:\tomcat\jakarta-tomcat-5.5.9\bin>tomcat5.exe //IS//MyTest --DisplayName="MyTest" 
\ --Install="C:\tomcat\bin\tomcat5.exe" --Jvm=auto --StartMode=jvm --StopMode=jvm 
\ --StartClass="com.mypackage.pfjobmanager.testQuartz" \ 
--"C:\Program Files\JavaDeveloper\jdev\mywork\PFJobManager\Project\src" \ 
--JavaHome="C:\Program Files\JavaDeveloper\jdk\jre\bin"

When executed on the command line, the above command doesn't give me any errors but returns
right away.

When I ran:
sc query MyTest

here is what I get:

        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 1  STOPPED
        WIN32_EXIT_CODE    : 1077       (0x435)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0

I'm not sure how to read the above.
How do I know my service is working?
The class that the service is supposed to run should wait about a minute and then print some
lines to stdout.
How can I ran a good test?

Your help is greatly appreciated.
Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message