You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alessandro Fredianelli <al...@italtbs.com> on 2005/04/26 11:51:31 UTC

procrun and NT service

Setting the --StartMode parameter of procrun to java or exe seems to be
not working.
Any other special setting is needed in order to have these parameters work?

If i try to install my server application as nt service with procrun, it
starts and after the
startup process the service ends. From the command line it normally
starts and remain
active waiting for incoming connection.
Any idea?

Thanks.


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


Re: procrun and NT service

Posted by Alessandro Fredianelli <al...@italtbs.com>.
Mladen Turk wrote:

> Hmm, are you using the CVS HEAD or last released version?
> Any log messages?
>
> Also does you Administrator account has a 'Log On As Service'
> privilege?
>
>
last released.
Using LocalSystem account.
this is the log.

[2005-04-26 13:00:37] [info] Service CIS name CIS
[2005-04-26 13:00:38] [info] Service CIS installed
[2005-04-26 13:00:38] [info] Procrun finished.
[2005-04-26 13:02:14] [info] Running Service...
[2005-04-26 13:02:15] [info] Starting service...
[2005-04-26 13:02:16] [info] Service started in 1265 ms.
[2005-04-26 13:02:18] [info] Run service finished.
[2005-04-26 13:02:18] [info] Procrun finished.
[2005-04-26 13:03:57] [1193 prunsrv.c] [debug] Procrun log initialized
[2005-04-26 13:03:57] [info] Running Service...
[2005-04-26 13:03:57] [1036 prunsrv.c] [debug] Inside ServiceMain...
[2005-04-26 13:03:57] [info] Starting service...
[2005-04-26 13:03:57] [408  javajni.c] [debug] Jvm Option[0] 
-Djava.security.policy=cis.policy
[2005-04-26 13:03:57] [408  javajni.c] [debug] Jvm Option[1] 
-Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl
[2005-04-26 13:03:57] [408  javajni.c] [debug] Jvm Option[2] -Xrs
[2005-04-26 13:03:57] [408  javajni.c] [debug] Jvm Option[3] 
-Djava.class.path=c:\cis\xqueue\bin\jdbc.jar;c:\cis\xqueue\bin\router.jar;c:\cis\xqueue\bin\xengine.jar;c:\cis\xqueue\bin\xplorer.jar;c:\cis\xqueue\bin\fs2mom.jar;c:\cis\xqueue\bin\scheduler.jar;lib\aqapi.jar;lib\jms.jar;lib\nls_charset12.jar;lib\ojdbc14.jar;c:\cis\xqueue\bin\client.jar;c:\cis\xqueue\bin\utilities.jar;c:\cis\xqueue\bin\server.jar;c:\cis\xqueue\bin\logservice.jar;c:\cis\xqueue\lib\saxon8.jar;c:\cis\xqueue\lib\saxon8-jdom.jar;c:\cis\xqueue\lib\saxon8-sql.jar;c:\cis\xqueue
[2005-04-26 13:03:58] [408  javajni.c] [debug] Jvm Option[4] vfprintf
[2005-04-26 13:03:58] [494  javajni.c] [debug] argv[0] = start
[2005-04-26 13:03:59] [907  prunsrv.c] [debug] Java started 
xqueue/server/WorkFlowManager
[2005-04-26 13:03:59] [info] Service started in 1875 ms.
[2005-04-26 13:03:59] [1110 prunsrv.c] [debug] Waitning worker to finish...
[2005-04-26 13:04:01] [531  javajni.c] [debug] Java Worker thread finished
[2005-04-26 13:04:01] [1115 prunsrv.c] [debug] Worker finished.
[2005-04-26 13:04:01] [info] Run service finished.
[2005-04-26 13:04:01] [info] Procrun finished.




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


Re: procrun and NT service

Posted by Mladen Turk <ml...@jboss.com>.
Alessandro Fredianelli wrote:
> that's how i create the service.
> If i set startmode=java in order to have the possibility to specify an 
> account different than LocalSystem,
> procrun doesent start.
> 

Hmm, are you using the CVS HEAD or last released version?
Any log messages?

Also does you Administrator account has a 'Log On As Service'
privilege?

Regards,
Mladen.

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


Re: procrun and NT service

Posted by Alessandro Fredianelli <al...@italtbs.com>.
@echo off
call setenv.bat

echo %CLASSPATH%
pause

set line=
set line=%line% --ClassPath=%CLASSPATH%
set line=%line% --Description=ClinicalIntegrationServer
set line=%line% --Install=c:\cis\xqueue\service.exe
set line=%line% --DisplayName=CIS
set line=%line% 
--JvmOptions="-Djava.security.policy=cis.policy;-Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl"
set line=%line% --JvmMx=20M --JvmMs=20M


set line=%line% --Startup=auto
set line=%line% --User=.\Administrator
set line=%line% --Password=pwd

set line=%line% --LogPath=c:\cis\xqueue\log
set line=%line% --LogPrefix=service.log
set line=%line% --StdOutput=c:\cis\xqueue\log\out.log.txt
set line=%line% --StdError=c:\cis\xqueue\log\err.log.txt

set line=%line% --JavaHome=c:\java
set line=%line% --Jvm=C:\java\jre\bin\server\jvm.dll


set line=%line% --StartPath=c:\cis\xqueue
set line=%line% --StartMode=jvm
set line=%line% --StartClass=xqueue.server.WorkFlowManager
set line=%line% --StartParams=start

set line=%line% --StopPath=c:\cis\xqueue
set line=%line% --StopClass=xqueue.server.WorkFlowManager
set line=%line% --StopParams=stop
set line=%line% --StopMode=jvm


service //IS//CIS %line%
set line=


that's how i create the service.
If i set startmode=java in order to have the possibility to specify an 
account different than LocalSystem,
procrun doesent start.

With the settings showed my server starts and after starting process the 
service ends without any error.


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


Re: procrun and NT service

Posted by Mladen Turk <ml...@jboss.com>.
Alessandro Fredianelli wrote:
> Setting the --StartMode parameter of procrun to java or exe seems to be
> not working.
> Any other special setting is needed in order to have these parameters work?
> 

--StartMode=java|jvm
It defines if the JNI or out of process java.exe will be used.
The same is for --StopMode

Perhaps you were thinking on --Startup=manual|auto params?


> If i try to install my server application as nt service with procrun, it
> starts and after the
> startup process the service ends. From the command line it normally
> starts and remain
> active waiting for incoming connection.
> Any idea?
> 

Just post the command line you are using for installation.

Regards,
Mladen.

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