0 Replies Latest reply on Mar 14, 2013 7:39 PM by PREM KUMAR N V

    jbosssvc.exe -imwdc JBAS50SVC "C:\jboss-5.0.0.GA\bin" "JBo ss Application Server 5.0" "JBoss Application Server 5.0.0 GA/Platform: Windows x86" service.bat The system cannot execute the specified program.

    PREM KUMAR N V Newbie

      Hello All,

       

      I was trying to use jboss as a windows service but was unable to do this

       

      I encountered the following error.

      C:\jboss-5.0.0.GA\bin>jbosssvc.exe -imwdc JBAS50SVC "C:\jboss-5.0.0.GA\bin" "JBo

      ss Application Server 5.0" "JBoss Application Server 5.0.0 GA/Platform: Windows

      x86" service.bat

      The system cannot execute the specified program.

       

      Full Details

       

       

      C:\jboss-5.0.0.GA\bin>service.bat install

       

       

      C:\jboss-5.0.0.GA\bin>REM JBoss, the OpenSource webOS

       

       

      C:\jboss-5.0.0.GA\bin>REM

       

       

      C:\jboss-5.0.0.GA\bin>REM Distributable under LGPL license.

       

       

      C:\jboss-5.0.0.GA\bin>REM See terms of license at gnu.org.

       

       

      C:\jboss-5.0.0.GA\bin>REM

       

       

      C:\jboss-5.0.0.GA\bin>REM ------------------------------------------------------

      -------------------

       

       

      C:\jboss-5.0.0.GA\bin>REM JBoss Service Script for Windows

       

       

      C:\jboss-5.0.0.GA\bin>REM ------------------------------------------------------

      -------------------

       

       

      C:\jboss-5.0.0.GA\bin>set DIRNAME=C:\jboss-5.0.0.GA\bin

       

       

      C:\jboss-5.0.0.GA\bin>REM

       

       

      C:\jboss-5.0.0.GA\bin>REM VERSION, VERSION_MAJOR and VERSION_MINOR are populated

       

       

       

       

      C:\jboss-5.0.0.GA\bin>REM during the build with ant filter.

       

       

      C:\jboss-5.0.0.GA\bin>REM

       

       

      C:\jboss-5.0.0.GA\bin>set SVCNAME=JBAS50SVC

       

       

      C:\jboss-5.0.0.GA\bin>set SVCDISP=JBoss Application Server 5.0

       

       

      C:\jboss-5.0.0.GA\bin>set SVCDESC=JBoss Application Server 5.0.0 GA/Platform: Wi

      ndows x86

       

       

      C:\jboss-5.0.0.GA\bin>set NOPAUSE=Y

       

       

      C:\jboss-5.0.0.GA\bin>REM Suppress killing service on logoff event

       

       

      C:\jboss-5.0.0.GA\bin>set JAVA_OPTS=-Xrs

       

       

      C:\jboss-5.0.0.GA\bin>REM Figure out the running mode

       

       

      C:\jboss-5.0.0.GA\bin>if /I "install" == "install" goto cmdInstall

       

       

      C:\jboss-5.0.0.GA\bin>jbosssvc.exe -imwdc JBAS50SVC "C:\jboss-5.0.0.GA\bin" "JBo

      ss Application Server 5.0" "JBoss Application Server 5.0.0 GA/Platform: Windows

      x86" service.bat

      The system cannot execute the specified program.

       

       

      C:\jboss-5.0.0.GA\bin>if not errorlevel 0 goto errExplain

       

       

      C:\jboss-5.0.0.GA\bin>echo Service JBoss Application Server 5.0 installed

      Service JBoss Application Server 5.0 installed

       

       

      I have seen the same problem mentioned in this community.. but with no clear answers

      I have replaced the jbosssvc.exe file with the latest download of jboss 5 server, even this does not work!.

       

      Could someone let me know if this has been resolved or is there a workaround for this?