tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nadia Kunkov" <nkun...@plusfunds.com>
Subject Procrun returns too fast.
Date Tue, 04 Oct 2005 13:04:48 GMT
Hi,
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
that.
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
procrun.
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:

SERVICE_NAME: MyTest
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 1  STOPPED
                                (NOT_STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN)
        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.
NK





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


Mime
View raw message