Not able to install JBoss 5.1 as a windows service on Windows 2008 64 bit
nitin.bhardwaj21 Aug 28, 2011 6:53 AMHi Friends,
I am trying to install JBoss 5.1 as a Windows service on Windows 2008 server (64 bit). I tried using two JVM configurations:
1. JDK 1.6 update 27 64 bit
2. JDK 1.6 update 27 32 bit
However, I was unsuccessful using both of the above.
I used service.bat install command from bin directory of JBoss and kept logging on, but no error was displayed. However, the service was not installed.
The log for both of the above approaches remained the following:
C:\servers\jboss-5.1.0\bin>service.bat install
C:\servers\jboss-5.1.0\bin>REM JBoss, the OpenSource webOS
C:\servers\jboss-5.1.0\bin>REM
C:\servers\jboss-5.1.0\bin>REM Distributable under LGPL license.
C:\servers\jboss-5.1.0\bin>REM See terms of license at gnu.org.
C:\servers\jboss-5.1.0\bin>REM
C:\servers\jboss-5.1.0\bin>REM -------------------------------------------------
------------------------
C:\servers\jboss-5.1.0\bin>REM JBoss Service Script for Windows
C:\servers\jboss-5.1.0\bin>REM -------------------------------------------------
------------------------
C:\servers\jboss-5.1.0\bin>set DIRNAME=C:\servers\jboss-5.1.0\bin
C:\servers\jboss-5.1.0\bin>REM
C:\servers\jboss-5.1.0\bin>REM VERSION, VERSION_MAJOR and VERSION_MINOR are popu
lated
C:\servers\jboss-5.1.0\bin>REM during the build with ant filter.
C:\servers\jboss-5.1.0\bin>REM
C:\servers\jboss-5.1.0\bin>set SVCNAME=JBAS50SVC
C:\servers\jboss-5.1.0\bin>set SVCDISP=JBoss Application Server 5.1
C:\servers\jboss-5.1.0\bin>set SVCDESC=JBoss Application Server 5.1.0 GA/Platfor
m: Windows x86
C:\servers\jboss-5.1.0\bin>set NOPAUSE=Y
C:\servers\jboss-5.1.0\bin>REM Suppress killing service on logoff event
C:\servers\jboss-5.1.0\bin>set JAVA_OPTS=-Xrs
C:\servers\jboss-5.1.0\bin>REM Figure out the running mode
C:\servers\jboss-5.1.0\bin>if /I "install" == "install" goto cmdInstall
C:\servers\jboss-5.1.0\bin>jbosssvc.exe -imwdcl JBAS50SVC "C:\servers\jboss-5.1.
0\bin" "JBoss Application Server 5.1" "JBoss Application Server 5.1.0 GA/Platfor
m: Windows x86" service.bat
C:\servers\jboss-5.1.0\bin>if not errorlevel 0 goto errExplain
C:\servers\jboss-5.1.0\bin>echo Service JBoss Application Server 5.1 installed
Service JBoss Application Server 5.1 installed
C:\servers\jboss-5.1.0\bin>goto cmdEnd
C:\servers\jboss-5.1.0\bin>
The most important thing is that no error is being displayed and also that no service is being installed on the server. I've checked "Administrative Tools ---> Services" that no service related to Jboss has been installed.
Also note that when I install the JBoss 5.1 as a Windows Service on my XP (32 bit) OS machine then it is installed perfectly fine.
Request you to help me.
Best Regards,
Nitin
Message was edited by: Nitin Bhardwaj