FORUMS


Discussion about Intalio|BPP Community Edition.


Back to Intalio|BPP 6.0 beta (0 viewing) 
Go to bottom Favoured: 0
TOPIC: Cannot run server as Windows service
Jun 23, 2009 7:44 am
24 posts
Junior Boarder

Karma: 1  
Hello,

I have installed the most recent Intalio 6 Server on my machine. It starts up fine when I launch it "normally", but I cannot run it as a Windows service. I am able to run both Intalio 5 Server and another Tomcat 5.5 based application as a service. Naturally, either of them are not in the Windows service list while trying to run Intalio 6 Server.

There text in jakarta_service log file is the following:
[2009-06-23 07:42:57] [info] Procrun (2.0.3.0) started
[2009-06-23 07:42:57] [info] Running Service...
[2009-06-23 07:42:57] [info] Starting service...
[2009-06-23 07:42:57] [443 javajni.c] [error] FindClass org/apache/catalina/startup/Bootstrap failed
[2009-06-23 07:42:57] [997 prunsrv.c] [error] Failed loading main org/apache/catalina/startup/Bootstrap class C:\Asennukset\intalio-bpms-6.0.0.071\bin\bootstrap.jar
[2009-06-23 07:42:57] [1260 prunsrv.c] [error] ServiceStart returned 3
[2009-06-23 07:42:57] [info] Run service finished.
[2009-06-23 07:42:57] [info] Procrun finished.
Naturally, that bootstrap.jar is there.

I have followed the instructions here:
http://community.intalio.com/getting-started/getting-started-with-intalio-bpms-server.html

...and here:
http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html

I also discovered this Tomcat related issue:
https://issues.apache.org/bugzilla/show_bug.cgi?id=41538

I have tried changing the environment variables as suggested in the link above. I also used the Filemon tool by Microsoft to find out which DLL files are missing. A total of 5 DLL files were copied to Intalio Server's /bin folder (MSVCR71.DLL, psapi.dll, rdpsnd.dll, winmm.dll, winsta.dll).

System info:
Windows XP Professional SP3
Java 1.6.0_13
CLASSPATH: C:\Asennukset\intalio-bpms-6.0.0.071\bin;.
JAVA_HOME: C:\Sun\SDK\jdk
JRE_HOME: C:\Sun\SDK\jdk\jre
PATH: %JAVA_HOME%\jre\bin;C:\Sun\SDK\jdk\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\Program Files\Matlab\R2009a\bin;c:\Program Files\Matlab\R2009a\bin\win32

So, what could cause it? All the instructions have been followed, and I have no problems running another Tomcat as a service.

Thanks,
Petri Kannisto
 
  The administrator has disabled public write access.
Jun 23, 2009 3:43 pm
boisvert (User)
153 posts
Moderator

Karma: 13  
Running as a service should work, provided that you pass the same options as defined in the setenv.bat file.

alex
 
  The administrator has disabled public write access.
Jun 25, 2009 9:54 am
24 posts
Junior Boarder

Karma: 1  
I copied the Java options from setenv.bat and added them into the configuration. My tomcat5w.exe > Java tab > Java options look like this now:

-Dcatalina.base=C:\Asennukset\intalio-bpms-6.0.0.071
-Dcatalina.home=C:\Asennukset\intalio-bpms-6.0.0.071
-Djava.endorsed.dirs=C:\Asennukset\intalio-bpms-6.0.0.071\common\endorsed
-Djava.io.tmpdir=C:\Asennukset\intalio-bpms-6.0.0.071\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=C:\Asennukset\intalio-bpms-6.0.0.071\conf\logging.properties
-XX:MaxPermSize=256m
-Xms64m
-Xmx512m
-Dfile.encoding=UTF-8
-Djavax.net.ssl.trustStore="%CATALINA_HOME%\var\config\intalio-keystore.jks"
-Dorg.intalio.deploy.configDirectory=%CATALINA_HOME%\var\config
-Dorg.intalio.tempo.configDirectory="%CATALINA_HOME%\var\config"
-Dcom.intalio.bpms.configDirectory="%CATALINA_HOME%\var\config"
-Dorg.apache.ode.configDir="%CATALINA_HOME%\var\config"
-Dode.connection.isolation=2
-Dderby.system.home="%CATALINA_HOME%\var\derby"
-Dbtm.root="%CATALINA_HOME%"
-Dbitronix.tm.configuration="%CATALINA_HOME%\conf\btm-config.properties"


"Initial pool memory" and "Maximum memory pool" fields on the same tab have now values 64 and 512.

The server starts up with no problems when not running it as a service. Still, the service doesn't start up. Log output is the following:

[2009-06-25 10:28:11] [1334 prunsrv.c] [debug] Procrun log initialized
[2009-06-25 10:28:11] [info] Procrun (2.0.3.0) started
[2009-06-25 10:28:11] [info] Running Service...
[2009-06-25 10:28:11] [1158 prunsrv.c] [debug] Inside ServiceMain...
[2009-06-25 10:28:11] [info] Starting service...
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[0] -Dcatalina.base=C:\Asennukset\intalio-bpms-6.0.0.071
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[1] -Dcatalina.home=C:\Asennukset\intalio-bpms-6.0.0.071
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[2] -Djava.endorsed.dirs=C:\Asennukset\intalio-bpms-6.0.0.071\common\endorsed
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[3] -Djava.io.tmpdir=C:\Asennukset\intalio-bpms-6.0.0.071\temp
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[4] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[5] -Djava.util.logging.config.file=C:\Asennukset\intalio-bpms-6.0.0.071\conf\logging.properties
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[6] -XX:MaxPermSize=256m
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[7] -Xms64m
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[8] -Xmx512m
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[9] -Dfile.encoding=UTF-8
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[10] -Djavax.net.ssl.trustStore=%CATALINA_HOME%\var\config\intalio-keystore.jks
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[11] -Dorg.intalio.deploy.configDirectory=%CATALINA_HOME%\var\config
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[12] -Dorg.intalio.tempo.configDirectory=%CATALINA_HOME%\var\config
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[13] -Dcom.intalio.bpms.configDirectory=%CATALINA_HOME%\var\config
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[14] -Dorg.apache.ode.configDir=%CATALINA_HOME%\var\config
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[15] -Dode.connection.isolation=2
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[16] -Dderby.system.home=%CATALINA_HOME%\var\derby
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[17] -Dbtm.root=%CATALINA_HOME%
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[18] -Dbitronix.tm.configuration=%CATALINA_HOME%\conf\btm-config.properties
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[19] -Djava.class.path=C:\Asennukset\intalio-bpms-6.0.0.071\bin\bootstrap.jar
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[20] vfprintf
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[21] -Xms64m
[2009-06-25 10:28:11] [385 javajni.c] [debug] Jvm Option[22] -Xmx512m
[2009-06-25 10:28:11] [443 javajni.c] [error] FindClass org/apache/catalina/startup/Bootstrap failed
[2009-06-25 10:28:11] [997 prunsrv.c] [error] Failed loading main org/apache/catalina/startup/Bootstrap class C:\Asennukset\intalio-bpms-6.0.0.071\bin\bootstrap.jar
[2009-06-25 10:28:11] [1260 prunsrv.c] [error] ServiceStart returned 3
[2009-06-25 10:28:11] [info] Run service finished.
[2009-06-25 10:28:11] [info] Procrun finished.


That "failed loading Bootstrap class" is interesting. The JAR file is there, and the server finds it, as the output by Filemon (attached) indicates.

I have no idea what could cause this. Has anyone experienced the same problem?

Thanks,
Petri
File Attachment:
File Name: filemon_bootstrap.txt
File Size: 3033
 
  The administrator has disabled public write access.
Jul 6, 2009 11:13 pm
paul.johnson (User)
13 posts
Fresh Boarder

Karma: 0  
Well...you are not going crazy. I have the same problem.

I have not found a fix for this either.

Paul
 
  The administrator has disabled public write access.
Jul 7, 2009 7:03 am
24 posts
Junior Boarder

Karma: 1  
paul.johnson wrote:
Well...you are not going crazy. I have the same problem.

I have not found a fix for this either.

Paul


Hello Paul,

Finally, I managed to solve this problem. One cannot use Tomcat's built-in service tools, one has to use Java Service Wrapper instead - or at least that works on our machine. Configuring the wrapper wasn't as hard as it could have been, at least when comparing it to the configuration of Geronimo based server 5.2.

The following steps should do it.

1. Download Java Service Wrapper.
http://wrapper.tanukisoftware.org/doc/english/download.jsp

2. Configure JSW as if you were using an ordinary Tomcat.
http://wrapper.tanukisoftware.org/doc/english/integrate-start-stop-win.html

3. Add the Java options provided in setenv.bat into the wrapper.conf file. You will have to use wrapper.java.additional.X parameters. Put each setenv.bat parameter on its own wrapper.java.additional.X line.
About using wrapper.java.additional.X lines:
http://wrapper.tanukisoftware.org/doc/english/prop-java-additional-n.html

4. You may want to rename the service (in my opinion, Intalio is better than Tomcat in this case). The following lines do it:
wrapper.ntservice.name=
wrapper.ntservice.displayname=
wrapper.ntservice.description=

5. Install the service as if it was an ordinary Tomcat (by running the InstallTomcat-NT.bat you created).

6. Try if the service starts up. If it doesn't, view wrapper.log to see what's wrong. If there is an error in the configuration, it is usually in wrapper.conf. If you edit that file, reinstall the service after editing.

Regards,
Petri
 
  The administrator has disabled public write access.
Jul 15, 2009 11:09 am
24 posts
Junior Boarder

Karma: 1  
3. Add the Java options provided in setenv.bat into the wrapper.conf file. You will have to use wrapper.java.additional.X parameters. Put each setenv.bat parameter on its own wrapper.java.additional.X line.
About using wrapper.java.additional.X lines:
http://wrapper.tanukisoftware.org/doc/english/prop-java-additional-n.html

I encoutered problems related to Orbeon forms and log files. To get rid of them, on has to add the following lines to wrapper.conf:
wrapper.java.classpath.4="../bin/jcl104-over-slf4j-1.4.3.jar"
wrapper.java.classpath.5="../bin/slf4j-api-1.4.3.jar"
wrapper.java.classpath.6="../bin/slf4j-log4j12-1.4.3.jar"
wrapper.java.classpath.7="../bin/log4j-1.2.15.jar"
wrapper.java.classpath.8="../var/log"


If not running as a service, these parameters are set in setclasspath.bat file.

The required additional parameters that I mentioned are the following:
wrapper.java.additional.5=-XX:MaxPermSize=256m
wrapper.java.additional.6=-Xms64m
wrapper.java.additional.7=-Xmx512m
wrapper.java.additional.8=-Dfile.encoding=UTF-8
wrapper.java.additional.9=-Djavax.net.ssl.trustStore="..\var\config\intalio-keystore.jks"
wrapper.java.additional.10=-Dorg.intalio.deploy.configDirectory=..\var\config
wrapper.java.additional.11=-Dorg.intalio.tempo.configDirectory="..\var\config"
wrapper.java.additional.12=-Dcom.intalio.bpms.configDirectory="..\var\config"
wrapper.java.additional.13=-Dorg.apache.ode.configDir="..\var\config"
wrapper.java.additional.14=-Dode.connection.isolation=2
wrapper.java.additional.15=-Dderby.system.home="..\var\derby"
wrapper.java.additional.16=-Dbtm.root=".."
wrapper.java.additional.17=-Dbitronix.tm.configuration="..\conf\btm-config.properties"


Regards,
Petri
 
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop

Top Posters

Last 30 days

  • estebanf (35)
  • madhav.vodnala (21)
  • scott.hebden (20)
  • kevin.fernandez (15)
  • ianoboa (9)
  • jigonzalez@vertice.es (8)
  • Antoine (6)
  • spyridoula.markopoulou (6)
  • gino.de.cock (5)
  • lars.roediger (5)

All time

  • Antoine (2754)
  • Shivanand (1194)
  • cshekhar (933)
  • psq (797)
  • metabyte (415)
  • jag (393)
  • dfrench (367)
  • arnaud (329)
  • jalateras (325)
  • talita.pezzi (254)

Show last 4 hrs - 12 hrs - 24 hrs

Copyright © Intalio, 1999-2010.