[jboss-user] [Beginner's Corner] - Configure JBoss AS7 listening and how to stop JBoss?

Jim Lum do-not-reply at jboss.com
Sat Jun 9 16:30:17 EDT 2012


Jim Lum [https://community.jboss.org/people/jimcpl] created the discussion

"Configure JBoss AS7 listening and how to stop JBoss?"

To view the discussion, visit: https://community.jboss.org/message/740836#740836

--------------------------------------------------------------
Hi,

I've configured JBoss AS7 to listen as follows:

    <interfaces>
        <interface name="management">
            <inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
        </interface>
        <interface name="public">
            <inet-address value="${jboss.bind.address:0.0.0.0}"/>
        </interface>
        <!-- TODO - only show this if the jacorb subsystem is added  -->
        <interface name="unsecure">
            <!--
              ~  Used for IIOP sockets in the standard configuration.
              ~                  To secure JacORB you need to setup SSL
              -->
            <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
        </interface>
    </interfaces>

and I can connect to it using either localhost or IP address.

However, I can't figure out how to shutdown JBoss, e.g.:

[root at jboss bin]# ./jboss-cli.sh --connect command=:shutdown --controller=192.168.0.213:9999

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:35)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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 192.168.0.213:9999
        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)
        ... 8 more


I also tried "localhost:9999" and got the same problem.

When I do netstat, I can see listening on 0.0.0.0:9999.

How can I shutdown JBoss?

Thanks,
Jim
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/740836#740836]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120609/a5879787/attachment.html 


More information about the jboss-user mailing list