0 Replies Latest reply on Mar 18, 2015 6:30 PM by kiran sharma

    I can not shutdown jboss instance running on portoffset 100 using jboss-cli.sh

    kiran sharma Newbie

      my server is running two instances of jboss. the port offset is 100. when I issued the command


      /jboss-cli.sh --connect command=:shutdown  it brings down the instance running on 9999/8080 but not the second. I googled and found some suggestion to add --controller=192.168.1.2:10099  in the command line. But invein. it did not work. the following is the error. Any suggestion please.



      thanks

      Kiran




      [jboss@example bin]$ ./jboss-cli.sh --controller=192.168.1.2:10099 --connect command=:shutdown

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

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

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

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

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

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:606)

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

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

      Caused by: org.jboss.as.cli.CommandLineException: The controller is not available at 192.168.1.2:10099

        at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:951)

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

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

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

        ... 8 more

      Caused by: java.io.IOException: java.net.ConnectException: JBAS012144: Could not connect to remote://192.168.1.2:10099. The connection timed out

        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:129)

        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)

        at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:929)

        ... 11 more

      Caused by: java.net.ConnectException: JBAS012144: Could not connect to remote://192.168.1.2:10099. The connection timed out

        at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:131)

        at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:256)

        at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:70)

        at org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:176)

        at org.jboss.as.cli.impl.CLIModelControllerClient.getOrCreateChannel(CLIModelControllerClient.java:155)

        at org.jboss.as.cli.impl.CLIModelControllerClient$2.getChannel(CLIModelControllerClient.java:117)

        at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:115)

        at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:90)

        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)

        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)

        at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)