Unable to connect to jboss 7.1.1.FINAL CLI in Ubuntu

I cannot connect to the Jboss 7.1.1.FINAL CLI in Ubuntu, I wonder why?

in the console, I put:

mastervodoo@vodoo-Studio-1558 :/opt/jboss-as-7.1.1.Final/bin$ ./jboss-cli.sh You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands. [disconnected /] connect The controller is not available at localhost:9999 [disconnected /] connect 127.0.0.1 The controller is not available at 127.0.0.1:9999 [disconnected /] connect 127.0.1.1 The controller is not available at 127.0.1.1:9999 [disconnected /] connect 192.168.1.33 The controller is not available at 192.168.1.33:9999 [disconnected /] 

is a standalone configuration, why can't I log in?

+6
source share
5 answers

Check your XML configuration, for example. standalone.xml or domain.xml and see the <interfaces/> section. Make sure you bind to 127.0.0.1 for the management interface. Also look at the management-native port in the <socket-binding/> section and make sure it is set to 9999. These are the default values.

It should look something like this:

 <interfaces> <interface name="management"> <inet-address value="${jboss.bind.address.management:127.0.0.1}"/> </interface> <interface name="public"> <inet-address value="${jboss.bind.address:127.0.0.1}"/> </interface> ... </interfaces> <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}"> <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/> <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/> <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/> ... </socket-binding-group> 

You can also pass properties to change values ​​if expression values ​​are used.

 $JBOSS_HOME/bin/standalone.sh -Djboss.bind.address.management=127.0.0.1 -Djboss.management.native.port=9999 

If he still does not bind this is probably a local problem. Most likely, the firewall gets in the way or, perhaps, you do not have the local host setting on your hosts.

+10
source

Check the hosts file!

/ etc / hosts

Your localhost should be listed as 127.0.0.1 .

+1
source

Just for the next guy to stumble upon this, if you're on a Mac, THIS will solve it:

http://saltnlight5.blogspot.com.au/2012/07/getting-jboss-clish-to-work-on-macosx.html

If the link goes down:

  • Start the server using: bin / standalone.sh -Djava.nio.channels.spi.SelectorProvider = sun.nio.ch.KQueueSelectorProvider
  • On the client side, first run: export JAVA_OPTS = "- Djava.nio.channels.spi.SelectorProvider = sun.nio.ch.KQueueSelectorProvider"
  • Then run bin / jboss-cli.sh -connect

You should now be connected!

0
source

For me, this is due to the fact that JBoss is under heavy load when processing an erroneous task that caused Hibernate exceptions with high speed.

I managed to connect after ~ 20 attempts, after which I could not connect again.

0
source

If your jboss instance is not bound to 127.0.0.1, you can use the --controller option as follows:

 ./jboss-cli.sh --controller=YOUR_IP:9999 
0
source

Source: https://habr.com/ru/post/913875/


All Articles