-
1. Re: Jboss 4.0.4 as a window service
vannguyen0 Sep 21, 2006 2:11 PM (in response to mishra_rajneesh)"mishra_rajneesh" wrote:
hi experts,
how to implement JBoss Application Server 4.0.4 as a window service. I tried with JavaService-2.0.10, but it is not working..
Any help will be appreciated..
Copy JavaService.exe to your JBOSS_HOME/bin directory.
Rename it to JBossService.exe
Follow directions here:
http://wiki.jboss.org/wiki/Wiki.jsp?page=RunJBossAsAServiceOnWindows
If you need to modify the service - ie: java option (min memory/max memory, etc), jboss option, change location of jvm, etc - you can open up your registry editor and go to this location:
My Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\%name_of_your _JBoss_service%\Parameter
Again... only modify the registry entries if you are absolutely certain of what you're doing. If not, then follow the directions to remove the service and then reinstall it. -
2. Re: Jboss 4.0.4 as a window service
mishra_rajneesh Sep 22, 2006 3:17 AM (in response to mishra_rajneesh)first of all thanx for the reply...
I uesd the following command to create the service:
JBossService.exe -install JBossAll C:\jdk1.5.0_06\jre\bin\jvm.dll -Djava.class.path=C:\jdk1.5.0_06\lib\tools.jar;C:\JBOSS\run.jar -start org.jboss.Main -params -c all -stop org.jboss.Main -method systemExit -out C:\JBOSS\stdout.log -err C:\JBOSS\stderr.log -current C:\JBOSS -manual
When i tried to run the service, i got the following msg
The JBossAll Service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the performance Logs and Alerts service.
--------------------------------------------------------------------------------
Please check if i have done anything wrong -
3. Re: Jboss 4.0.4 as a window service
vannguyen0 Sep 22, 2006 12:38 PM (in response to mishra_rajneesh)"mishra_rajneesh" wrote:
first of all thanx for the reply...
I uesd the following command to create the service:
JBossService.exe -install JBossAll C:\jdk1.5.0_06\jre\bin\jvm.dll -Djava.class.path=C:\jdk1.5.0_06\lib\tools.jar;C:\JBOSS\run.jar -start org.jboss.Main -params -c all -stop org.jboss.Main -method systemExit -out C:\JBOSS\stdout.log -err C:\JBOSS\stderr.log -current C:\JBOSS -manual
When i tried to run the service, i got the following msg
The JBossAll Service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the performance Logs and Alerts service.
--------------------------------------------------------------------------------
Please check if i have done anything wrong
I assume that since you have the "-params -c all" option, you renamed the 'default' folder underneath your %JBOSS_HOME%/server directory to 'all'? If so... did you do this because you have more than one JBoss instance running on this server?
I would also check to make sure that you have a jvm.dll in your C:\jdk1.5.0_06\jre\bin directory. From what I can tell on both our JBoss servers (and from the directory structure after the installation of the Java SDK), the jvm.dll is separated into %JAVA_HOME%\jre\bin\{server or client}\jvm.dll
Everything else looks OK. -
4. Re: Jboss 4.0.4 as a window service
vishalbakare Oct 10, 2008 12:19 PM (in response to mishra_rajneesh)HI,
I am getting the same error, I am trying to run JBOSS 4.3 as a windows service.
The jvm.dll path and other option that you suggested are correct.
Have you solved the problem?
Can anybody please guide me to get through this.
Thanks
Vishal -
5. Re: Jboss 4.0.4 as a window service
vishalbakare Oct 10, 2008 12:21 PM (in response to mishra_rajneesh)I forget to mention,
I am using 64 bit windows machine with windows 2000 os. -
6. Re: Jboss 4.0.4 as a window service
peterj Oct 10, 2008 1:33 PM (in response to mishra_rajneesh)vishalbakare, what software are you using run JBossAS as a service? Tanuki Java Service? JBoss Native? Or some other (please provide a URL if neither of these two)? Each software uses different mechanism to configure the service.
-
7. Re: Jboss 4.0.4 as a window service
schmyrczyk Nov 12, 2015 3:45 PM (in response to mishra_rajneesh)Starting JBoss AS 4, 5, and 6 as a Windows service is still topical. Unfortunately, most of the internet resources regarding this issue are not up-to-date or even disappeared in the meantime.
For that reason I wrote a step-by-step guide that can be found here: http://www.lukas.tech/en/blog/run-jboss-as-as-a-windows-service/