5 Replies Latest reply on Oct 11, 2013 6:27 AM by Indranil Majumder

    How to stop multiple instances on same server in jboss-7.1.1 final?

    sakshi gupta Newbie

      I am able to shutdown the node which is present in standalone folder by :

      ./jboss-bin.sh --connect command=:shutdown

      But i have 10 standalone folder for 10 different ports.

      For ports other then in standalone folder:

      I tried ./jboss-cli.sh --connect --controller=<IP>:<Management-Port> command=:shutdown

      ./jboss-cli.sh --connect --controller=<IP>:<http-Port> command=:shutdown

      ./jboss-cli.sh --connect --controller=<hostname>:<http-port> command=:shutdown

      but the error

       

      org.jboss.as.cli.CliInitializationException: Failed to connect to the controller

        at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:229)

        at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:195)

        at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

        at java.lang.reflect.Method.invoke(Unknown Source)

        at org.jboss.modules.Module.run(Module.java:260)

        at org.jboss.modules.Main.main(Main.java:291)

      Caused by: org.jboss.as.cli.CommandLineException: The controller is not available at <IP>:<http-Port>

        at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:639)

        at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:613)

        at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:227)

       

      Please answer.