Jboss 5.1.0 GA start error
kkb Jun 14, 2014 10:17 AMHi,
I have installed Jboss 5.1.0 GA and trying to start the application server using startjboss.bat ... when the below line is executed,
net start "MBJBAS51SVC"
the error "The service name is invalid" appears and the jboss server does not start at all. I have tried certain ways to get this resolved, like, stoping my firewall before installation of jboss, but without luck... can someone throw light on how to resolve this and possible reasons for this error. Thanks for your help.
Content of startjboss.bat ***********************************************************
@echo off
TITLE Application Server (JBoss 5.1.0.GA) : Port 9095
::: -- Set the window size --
MODE CON: COLS=80 LINES=20
::: -- Set the window color --
COLOR 4F
set AGENT=%CD%
set ROOT=%AGENT%\..
set JAVA_HOME=%ROOT%\Java
cd %ROOT%\jboss\bin
@echo on
@echo Press 'Y' for running Application Server in debug mode within 5 sec.
@echo ---------------------------------------------------------------------
@echo off
choice /c:YN /t 5 /d N
IF errorlevel 2 goto NODEBUG
IF errorlevel 1 goto DEBUG
:DEBUG
ECHO DEBUG
net stop "MBJBAS51SVC"
net start "MBJBAS51SVC"
PING -n 10 127.0.0.1>nul
cd %ROOT%\jboss\bin
tail -100f ..\server\default\log\server.log
goto EOF
:NODEBUG
ECHO NODEBUG
net start "MBJBAS51SVC"
@echo on
@echo ---------------------------------------------------------------
@echo. "...Wait for applications to be up. No key input required..."
@echo ---------------------------------------------------------------
@echo off
:START
findstr /C:"Started in" run.log
if %errorlevel%==0 (
@echo on
@echo.
@echo -----------------------------------------------------------------------------
@echo *** Application Server - All Applications UP ***
@echo You can close this window. JBoss running in TASKMGR
@echo -----------------------------------------------------------------------------
@echo.
GOTO:END
@echo off
) else (
GOTO:START
)
:END
:EOF
Content of startjboss.bat ***********************************************************
-
jboss_error.PNG 45.8 KB