I can't get JBoss as a service working. This is my install script:
set NAME=JBossService
set JS=c:\downloads\JavaService
set JB=c:\jboss-4.0.3SP1
set JBI=%JB%\server\all
set JBBIN=%JB%\bin
set JDK=c:\jdk1.5.0_06
set JBEXE=%JBI%\%NAME%.exe
copy %JS%\JavaService.exe %JBEXE%
net stop %NAME%
%JBEXE% -uninstall %NAME%
%JBEXE% -install %NAME% %JDK%\jre\bin\client\jvm.dll -Djava.class.path=%JDK%\lib\tools.jar;%JBBIN%\run.jar -start org.jboss.Main -stop org.jboss.Main -method systemExit -out %JBBIN%\stdout.log -err %JBBIN%\stderr.log -current %JBBIN% -manual
When run it says it is successfully installed. But when I try and start the service it says "Could not start the JBossService on the Local Computer. The service did not return an error....". The stdout.log and stderr.log are not created. JBoss can start fine from the run.bat script. I've checked and double checked all the paths and I'm stumped for what to try next.