Starting JBoss as a Service on Windows XP has an issue
parag.goyal Feb 27, 2009 5:16 AMHi All,
I have installed JBoss4.2.2 as a service on Windows XP . So that we can start or stop JBoss AS as a window service. I faced problem that whenever trailing backslash ("\") appears at the end of value of PATH (PATH in "system variables" not in "user variables")
For e.g.
PATH =%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\MSSQL7\BINN;C:\PROGRA~1\ULTRAE~1;C:\Program Files\CA\Unicenter Software Delivery\BIN;C:\Lang\JProbe 7.0\bin\
JBoss will not start as a windows service.
As per my observation its a bug of service wrapper of JBoss4.2.2 "jbosssvc.exe"
JBoss 4.2.2 AS starts well as a service if value of PATH( system variable) is without backslash "\" at the end.
like below :
PATH =%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\MSSQL7\BINN;C:\PROGRA~1\ULTRAE~1;C:\Program Files\CA\Unicenter Software Delivery\BIN;C:\Lang\JProbe 7.0\bin
Run.log is shown below when JBoss 4.2.2 AS is not able to start as a service:
Please help me to fix this issue,if there is any other solution please suggest me.
Thanks in Advance
Parag Goyal
=============================================================================== JBoss Bootstrap Environment JBOSS_HOME: C:\Lang\JBoss\jboss-4.2.2.GA JAVA: C:\Lang\Java\jdk1.6.0_03\bin\java JAVA_OPTS: -Djava.library.path="C:\Lang\JBoss\jboss-4.2.2.GA\bin\native;C:\Program Files\CA\Dcs\DMScripting\;C:\Program Files\CA\DCS\CAWIN\;C:\Program Files\MKS\IntegrityClient\bin;C:\Lang\MKS\IntegrityClient\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\MSSQL7\BINN;C:\PROGRA~1\ULTRAE~1;C:\Program Files\CA\Unicenter Software Delivery\BIN;C:\Lang\JProbe 7.0\bin\" -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 CLASSPATH: C:\Lang\Java\jdk1.6.0_03\lib\tools.jar;C:\Lang\JBoss\jboss-4.2.2.GA\bin\run.jar =============================================================================== Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: -client to select the "client" VM -server to select the "server" VM -hotspot is a synonym for the "client" VM [deprecated] The default VM is client. -cp <class search path of directories and zip/jar files> -classpath <class search path of directories and zip/jar files> A ; separated list of directories, JAR archives, and ZIP archives to search for class files. -D<name>=<value> set a system property -verbose[:class|gc|jni] enable verbose output -version print product version and exit -version:<value> require the specified version to run -showversion print product version and continue -jre-restrict-search | -jre-no-restrict-search include/exclude user private JREs in the version search -? -help print this help message -X print help on non-standard options -ea[:<packagename>...|:<classname>] -enableassertions[:<packagename>...|:<classname>] enable assertions -da[:<packagename>...|:<classname>] -disableassertions[:<packagename>...|:<classname>] disable assertions -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system assertions -agentlib:<libname>[=<options>] load native agent library <libname>, e.g. -agentlib:hprof see also, -agentlib:jdwp=help and -agentlib:hprof=help -agentpath:<pathname>[=<options>] load native agent library by full pathname -javaagent:<jarpath>[=<options>] load Java programming language agent, see java.lang.instrument -splash:<imagepath> show splash screen with specified image