I performed the following steps to install JBoss service: 1) Download and unpack the JavaService utility from http://forge.objectweb.org/projects/javaservice 2) Copy the JavaService.exe file to JBoss bin directory and rename it to JBossService.exe 3) After considerable trial and error, and lots of Googling, I came up with the following install batch to actually install the service
echo off setlocal JAVA_HOME setlocal JBOSS_HOME set JAVA_HOME=c:\Sun\AppServer\jdk set JBOSS_HOME=c:\jboss-4.0.2 if "%JAVA_HOME%" == "" goto help if "%JBOSS_HOME%" == "" goto help net stop JBoss JBossService -uninstall JBoss JBossService -install JBoss %JAVA_HOME%\jre\bin\server\jvm.dll -Xms192m -Xmx256m -Djava.class.path=%JAVA_HOME%\lib\tools.jar;%JBOSS_HOME%\bin\run.jar;%JBOSS_HOME%\bin\shutdown.jar;%JBOSS_HOME%\lib\dom4j.jar -start org.jboss.Main -params -c Default -stop org.jboss.Main -method systemExit -out %JBOSS_HOME%\bin\out.log -err %JBOSS_HOME%\bin\err.log -current %JBOSS_HOME%\bin net start JBoss goto end :help echo The environment variables %JAVA_HOME% and %JBOSS_HOME% have to be set, echo JavaService.exe and this script have to be in %%JBOSS_HOME%%\bin. echo. echo The Service has NOT been installed echo. echo JAVA_HOME = %JAVA_HOME% echo JBOSS_HOME = %JBOSS_HOME% echo. :end 3) I also verified the values of JAVA_HOME and JBOSS_HOME environment variables, and rebooted just to be sure. The service runs fine, but the error log contains the previously posted exception. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883480#3883480 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883480 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
