5 Replies Latest reply on Dec 27, 2008 7:51 PM by peterj

    Unable to setup Jboss AS 5  as windows service

      I was able to start Jboss 5 from command prompt(refering to run.bat) but when I try to install Jboss as windows service(ie., service.bat install) this is the error I get "The system cannot execute the specified program."

      No idea where exactly the problem is, any help is appricated.(By the way... i am using XP as OS)

        • 1. Re: Unable to setup Jboss AS 5  as windows service
          peterj

          Are you, by any chance, running a 64-bit version of XP? I ask because the service exe that comes with JBoss AS runs only on 32-bit Windows.

          If this does not help you, then comment out the echo statement (first line) in service.bat, run it again and post the output.

          • 2. Re: Unable to setup Jboss AS 5  as windows service

            Thx for quick reply. And I am using Windows XP 32 - bit. Heres the output after removing the first line from service.bat

            D:\java\JBOSS-~2.GA\bin>service install
            
            D:\java\JBOSS-~2.GA\bin>REM JBoss, the OpenSource webOS
            
            D:\java\JBOSS-~2.GA\bin>REM
            
            D:\java\JBOSS-~2.GA\bin>REM Distributable under LGPL license.
            
            D:\java\JBOSS-~2.GA\bin>REM See terms of license at gnu.org.
            
            D:\java\JBOSS-~2.GA\bin>REM
            
            D:\java\JBOSS-~2.GA\bin>REM ----------------------------------------------------
            ---------------------
            
            D:\java\JBOSS-~2.GA\bin>REM JBoss Service Script for Windows
            
            D:\java\JBOSS-~2.GA\bin>REM ----------------------------------------------------
            ---------------------
            
            D:\java\JBOSS-~2.GA\bin>set DIRNAME=D:\java\JBOSS-~2.GA\bin
            
            D:\java\JBOSS-~2.GA\bin>REM
            
            D:\java\JBOSS-~2.GA\bin>REM VERSION, VERSION_MAJOR and VERSION_MINOR are populat
            ed
            
            D:\java\JBOSS-~2.GA\bin>REM during the build with ant filter.
            
            D:\java\JBOSS-~2.GA\bin>REM
            
            D:\java\JBOSS-~2.GA\bin>set SVCNAME=JBAS50SVC
            
            D:\java\JBOSS-~2.GA\bin>set SVCDISP=JBoss Application Server 5.0
            
            D:\java\JBOSS-~2.GA\bin>set SVCDESC=JBoss Application Server 5.0.0 GA/Platform:
            Windows x86
            
            D:\java\JBOSS-~2.GA\bin>set NOPAUSE=Y
            
            D:\java\JBOSS-~2.GA\bin>REM Suppress killing service on logoff event
            
            D:\java\JBOSS-~2.GA\bin>set JAVA_OPTS=-Xrs
            
            D:\java\JBOSS-~2.GA\bin>REM Figure out the running mode
            
            D:\java\JBOSS-~2.GA\bin>if /I "install" == "install" goto cmdInstall
            
            D:\java\JBOSS-~2.GA\bin>jbosssvc.exe -imwdc JBAS50SVC "D:\java\JBOSS-~2.GA\bin"
            "JBoss Application Server 5.0" "JBoss Application Server 5.0.0 GA/Platform: Wind
            ows x86" service.bat
            The system cannot execute the specified program.
            
            D:\java\JBOSS-~2.GA\bin>if not errorlevel 0 goto errExplain
            
            D:\java\JBOSS-~2.GA\bin>echo Service JBoss Application Server 5.0 installed
            Service JBoss Application Server 5.0 installed
            
            D:\java\JBOSS-~2.GA\bin>goto cmdEnd
            
            D:\java\JBOSS-~2.GA\bin>


            • 3. Re: Unable to setup Jboss AS 5  as windows service
              peterj

              Looks like you are using the 8.3 filename for the JBoss AS home directory. What is the full name? If you replace the 8.3 name with the full name, will it work then?

              Try opening a command prompt, cd'ing to the bin directory, and running "jbosssvc.exe". If that fails, try loading josssvc.exe into the Dependency Walker (http://www.dependencywalker.com/); perhaps you are missing a required library.

              • 4. Re: Unable to setup Jboss AS 5  as windows service

                Tried loading the Jbosssvc.exe into the dependency walker, this is the error message I got "No PE signature found. This file appears to be a 16-bit DOS module."

                • 5. Re: Unable to setup Jboss AS 5  as windows service
                  peterj

                  There are two binary downloads for JBoss AS 5.0, one for JDK5 the other for JDK6. I just now checked the jbossvc.exe file in both. Looks like the jbossvc.exe file is corrupt in both of those downloads.

                  Download JBoss Native 2.0.6 and install it, the jbossvc.exe file in there appears to be fine. http://www.jboss.org/jbossweb/downloads/jboss-native/

                  Be aware, however, that APR is broke, at least on 32-bit Windows. See this post: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=147583