How do I shutdown a JBoss server using CLI command ?

Solution Verified - Updated -

Issue

  • We used to use JBoss shutdown.sh but this command is no longer used in EAP 6, what is the correct command to use instead?

  • While trying to shutdown JBoss EAP6 using CLI we are getting the following Exception:

[jsenshar@localhost bin]$ ./jboss-cli.sh --connect --controller=localhost:9999 command=:shutdown
{
    "outcome" => "failed",
    "failure-description" => "JBAS010850: No handler for operation shutdown at address []",
    "rolled-back" => true
}
  • How do I start/shutdown a single JBoss instance and server group when running in domain mode? What will be user name and password for shutdown ?

  • After upgrading to EAP 7.3.x, shutdown CLI command shows following warn message :

"warning" => "WFLYCTL0449: Operation stop against the resource at address /host=HOST/server-config=SERVER is deprecated, and it might be removed in future version. See the the output of the read-operation-description operation to learn more about the deprecation.",

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content