3 Replies Latest reply on Oct 20, 2016 12:50 AM by Sayan Roy

    Couldn't start JBoss AS  as Windows service

    love red Newbie

      hi,
      i'm using jboss as 4.0.5ga and and i tried to  runn JBoss AS as a window service
      i was tried to follow steps as shown in https://community.jboss.org/wiki/jbossnativewindows


      what have i done was :

       

      1) run service.bat in C:\jboss-as-web\bin   but i couldn't run it and the error as below

       

       

      C:\>cd jboss-as-web

       

      C:\jboss-as-web>cd bin

       

      C:\jboss-as-web\bin>service.bat install
      Service JBoss Application Server 5.0 installed

       

      C:\jboss-as-web\bin>net start JBAS4SVC
      The service name is invalid.

       

      C:\jboss-as-web\bin>net start JBAS40SVC
      The service name is invalid.

       

      C:\jboss-as-web\bin>net start JBAS50SVC
      System error 2 has occurred.

       

      Was the problem  occured because i'm install jboss as 4.0.5ga but the service is version 5?
      how can i solve this?..

       

      thanks guys

       

      nana

       

       

       

       

       

       

       

       

       

       

        • 1. Re: Couldn't start JBoss AS  as Windows service
          Peter Johnson Master

          >>Was the problem  occured because i'm install jboss as 4.0.5ga but the  service is version 5?

          No. Look inside the service.bat file - it uses the name JBAS50SVC as the service's short name. You can edit the lines in service.bat that identify the service to be anything you like. (Of course, you have to do that before you register the service!)

           

          To get to the cause of the problem, you have to look in two locations. First, go to the Windows Event Viewer and look in the Application log. That usually has something in it regarding the error. The other place to look is in C:\jboss-as-web\bin\run.log - service.bat redirects all stdout output to that file.

           

          If you don't understand the messages you see in either place, post them here.

          • 2. Re: Couldn't start JBoss AS  as Windows service
            love red Newbie

            hi peter,

            thanks for the reply but the problem solve already

             

            i've run the services.msc, there is no services actually
            so i apply these command


          • C:\jboss-as-web\bin>service.bat install 
          • Service JBoss Application Server 5.0 installed 
          • C:\jboss-as-web\bin>net start JBAS50SVC 
          • The JBoss Application Server 5.0 service is starting. 
          • The JBoss Application Server 5.0 service could not be started. 
          • The service did not report an error. 
          • More help is available by typing NET HELPMSG 3534. 
          • C:\jboss-as-web\bin>  
          • so i can access the web application on localhost:8080/web-console
          • nana
            • 3. Re: Couldn't start JBoss AS  as Windows service
              Sayan Roy Newbie

              Hi Peter,

               

              I am facing almost the same issue. Please help me.

              C:\temp\jboss-web-3.0.0-beta-2\bin>service.bat install

              Service JBoss Application Server 6.0 installed

              C:\temp\jboss-web-3.0.0-beta-2\bin>net start JBAS60SVC

              The service name is invalid.

               

              The service.bat has these lines written for setting the service:

              REM

              if "x%SVCNAME" == "x" (

                  set "SVCNAME=JBAS60SVC"

              )