JBoss Community

Configure JBoss AS7 listening and how to stop JBoss?

created by Jim Lum in Beginner's Corner - View the full discussion

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@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

Start a new discussion in Beginner's Corner at Community