1 Reply Latest reply on Jun 19, 2018 1:09 AM by phani kumar

    on windows 2008 r2 machine jboss service failed to stop java processes

    phani kumar Newbie

      hi ,

          we have installed jboss as windows service on windows 2008 R2 using service.bat . When service is stopped from services manager or using windows command line "net stop" looks service is stopped but corresponding java process are not killed. Can you guys please help me why java process are still running even after stopping windows service.

       

      content of the service.bat is as follows

       

       

      :: Set JBOSS Home

      set JBOSS_HOME=C:\PROGRA~1\MC\MAS\jboss

       

       

      :: Set JAVA_HOME

      set JAVA_HOME=C:\PROGRA~1\MC\MAS\jre

      set JAVA_COMMAND="%JAVA_HOME%\bin\java.exe"

       

      :: Set mc Home

      set UMV_HOME=C:\PROGRA~1\MC\MAS\jboss\domain

       

       

      :: RESET the Error Level

      set ERRORLEVEL=

       

       

      cd /d %JBOSS_HOME%\bin

       

      set PATH=%CSTPATH%;%PATH%

       

      echo JBOSS_HOME is %JBOSS_HOME%

      echo JAVA_HOME is %JAVA_HOME%

      echo UMV_HOME is %UMV_HOME%

       

       

      echo PATH is %PATH%

       

       

      @if not "%ECHO%" == "" echo %ECHO%

      @if "%OS%" == "Windows_NT" setlocal

      set DIRNAME=%CD%

       

      set SVCNAME=MCMAS

      set SVCDISP=MC Management Application Server

      set SVCDESC=MC  Management Application Server

       

      set NOPAUSE=Y

       

       

      REM Figure out the running mode

       

       

      if /I "%1" == "install"    goto cmdInstall

       

      REM jbosssvc retun values

      REM ERR_RET_USAGE           1

      REM ERR_RET_VERSION         2

      REM ERR_RET_INSTALL         3

      REM ERR_RET_REMOVE          4

      REM ERR_RET_PARAMS          5

      REM ERR_RET_MODE            6

       

       

      :errExplain

      if errorlevel 1 echo Invalid command line parameters

      if errorlevel 2 echo Failed installing %SVCDISP%

      if errorlevel 4 echo Failed removing %SVCDISP%

      if errorlevel 6 echo Unknown service mode for %SVCDISP%

      goto cmdEnd

       

       

      :cmdInstall

      jbosssvc.exe -iwdc  %SVCNAME% "%DIRNAME%" "%SVCDISP%" "%SVCDESC%" service.bat

      if not errorlevel 0 goto errExplain

      echo Service %SVCDISP% installed

      goto cmdEnd