Remy Maucherat wrote:
Hi,

I've switched (temporarily, maybe) away from JavaService to Procrun.
The problem is that I couldn't get it to work.

In the install script, I'm using the following command:
ExecWait '"$INSTDIR\bin\tomcatw.exe" //IS//Tomcat5 --DisplayName "Apache Tomcat @VERSION@" --Description "Apache Tomcat @VERSION@ Server http://jakarta.apache.org/tomcat"; --Install "$INSTDIR\bin\tomcat.exe" --ImagePath "$INSTDIR\bin\bootstrap.jar" --StartupClass org.apache.catalina.startup.Bootstrap;main;start --ShutdownClass org.apache.catalina.startup.Bootstrap;main;stop --Java auto --JavaOptions -Djava.endorsed.dirs="$INSTDIR\common\endorsed"#-Dcatalina.home="$INSTDIR" --StdOutputFile "$INSTDIR\logs\stdout.log" --StdErrorFile "$INSTDIR\logs\stderr.log" --WorkingPath "$INSTDIR"'
Have you try without the @VERSION@?


I believe this is correct, and using the test mode sort of works (except that the console output doesn't get redirected). Trying to run the service doesn't work at all, and looking in the registry, it doesn't seem to have the needed parameters (so I wonder how the test mode does work).

Also, Procrun doesn't seem to be designed to handle Tomcat in service mode (that is, where Tomcat doesn't block and wait for a shutdown command).

Mladen, I think I need some help :)

Other that that, there are now too many ways to start Tomcat in standalone mode:
- Bootstrap
- The launcher
- JMX

I think the most compelling is to use the launcher + JMX (and allow JMX only also). Basically, in the Windows distribution, there are some incosistencies, as the scripts use the launcher, while the service uses direct invocation of Bootstrap.

I can't do those changes alone.
Comments ?
Java code of daemon:
jakarta-commons-sandbox/daemon/src/java/org/apache/commons/daemon
Java code of launcher:
jakarta-commons-sandbox/daemon/src/java/org/apache/commons/launcher

C code of procrun:
jakarta-commons-sandbox/daemon/src/native/nt/procrun
C code of daemon:
jakarta-commons-sandbox/daemon/src/native (except nt/procrun)

I am using daemon to start Tomcat as normal user but listening on port 80 on Linux.
I am also using daemon (with cygwin) to run Tomcat on windoze but I am thinking to change to procrun for that platfrom.

For the moment I have not enough time to look to launcher nor JMX.


Remy


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to