Friday, December 27, 2013

Errors on Start or Stop the Service of Jboss7.1.1 Final Application Server


Below error comes when we try to stop the Jboss  Service from winodows console
Error Message :
Jboss Application server 7.1.1 service on Local Computer started and then stopped. Some Services stop automatically if they are not in use by other services or programs.


Ans :
Above Error comes because of the shutdown command used in service.bat is not correct. The shutdown command is not executed correctly, so after this error jboss server instance is in running state.
So We need to shutdown the  Jboss server first.
Use below command to shutdown server
C:\jboss-as-7.1.1.Final\bin> jboss-cli.bat --connect controller=127.0.0.1:9999 command=:shutdown;
You will get output like as follows
Shutting down JBOSSASONE [2013-12-26 17:18:26]
{"outcome" => "success"}
Shutdown JBOSSASONE service [2013-12-26 17:18:28]

If  above command executed successfully then uninstall service  using below command
C:\jboss-as-7.1.1.Final\bin>service.bat uninstall
Then open service.bat and check line number 84 and 94 update these line number with below change
call jboss-cli.bat --connect controller=127.0.0.1:9999 command=:shutdown >> shutdown.log 2>&1

Then install new service and verify service  start and stop functions

24 comments:

  1. Terminating Java.exe process from task manager worked for me.

    ReplyDelete
  2. Terminating Java.exe process from task manager worked for me as well

    ReplyDelete
  3. Hi Mahavir,

    jboss-cli.bat is not found for JBoss 5. Any command to shutdown jboss 5 instance?

    ReplyDelete
  4. Terminating Java.exe process from task manager worked.

    ReplyDelete
  5. hi,

    in your suggestion: C:\jboss-as-7.1.1.Final\bin> jboss-cli.bat --connect controller=127.0.0.1:9999 command=:shutdown;

    what i should put for '127.0.0.1:9999' ? please suggest

    ReplyDelete
  6. Facing the same issue. tried many things from google. still no luck. Can some one help me fixing this error.

    ReplyDelete
    Replies
    1. Unisntall old the service , create new service with fresh like
      http://knowledgespreading.blogspot.com/2013/12/jboss-711-final-run-as-windows-service.html

      Delete
  7. Hi,
    After all the things mentioned above. no help
    I am still unable to start my Jboss.

    ReplyDelete
  8. Could U tell me how can U do that? Thank U so much.

    Edupub Services

    ReplyDelete
  9. hii

    i dont have jboss-cli.bat file in bin folder. Please help me.

    thanks

    ReplyDelete
    Replies
    1. And i am using jboss-6.0.1

      Delete
    2. Terminating Java.exe process from task manager worked for me.

      Thank you so much.

      Delete