Using the version of JBoss included in the User App install, however
using JDK 1.5 which I downloaded from Sun I have successfully setup
JBoss to run as a service using the JavaService found here: 'OW2 Forge:
Project Info- JavaService' (

Then I created the following batch file to create the service:

----- Snip ------
set JBOSS_HOME=D:\UserApp\Dev\jboss
set javadll=%JAVA_HOME%\jre\bin\server\jvm.dll
rem set javadll=%JAVA_HOME%\jre\bin\client\jvm.dll (if you have the
client JVM installed)
set javatool=%JAVA_HOME%\lib\tools.jar
set javarun=%JBOSS_HOME%\bin\run.jar
set outlog=%JBOSS_HOME%\bin\stdout.log
set errlog=%JBOSS_HOME%\bin\stderr.log

JavaService -uninstall UserApp

JavaService -install UserApp "%javadll%"
-Djava.class.path="%javatool%";"%javarun%" -server -Xms128m -Xmx512m
-XX:MaxPermSize=128m -Dsun.rmi.dgc.client.gcInterval=3600000
-Djava.endorsed.dirs=%JBOSS_ENDORSED_DIRS% -start org.jboss.Main -params
-c IDMProv -b -stop org.jboss.Main -method systemExit -out
"%outlog%" -err "%errlog%" -current "%JBOSS_HOME%\bin" -manual
----- Snip ------

Change JBOSS_HOME to reflect where your JBOSS Home is.

And The JavaService -install line is all on one line.

Copy the downloaded JavaService.exe into the jboss\bin directory, then
put the batch file into the same directory.

And in the command prompt call the batch file and you will have a

JBoss running successfully on Windows 2008 64 Bit, with Sun JDK
1.5.0_19 64 Bit, and the shipping version of JBoss and User app 3.6.1.

plambrechtsen's Profile:
View this thread: