JBoss AS 7 CLI can not connect


I was thinking about making some configurations to my Jboss AS 7.1.1 , so I started the server using the command:

C:\jboss-as-7.1.1.Final\bin\standalone.bat -b

and started without problems.

I tried to connect to the command line interface jboss-cli.exe with the command


mark me


JAVA_HOME is not set. Unexpected results may occur.   Set JAVA_HOME to the directory of your local JDK to avoid this message.   You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.   [disconnected /]

So I proceeded to try the command


And I get the following message


The controller is not available at localhost: 9999

I already ran it as an administrator but I did not succeed.

Thanks for your help.

asked by Ruslan López 19.02.2016 в 23:51

1 answer


I finally solved it by adding two new parameters to the way I run my server in the , specifically Djboss.bind.address.management pointing to my localhost and Djboss.management.native.port pointing to the port that mentioned the error; leaving the server program arguments as follows:

-mp "C:/jboss-as-7.1.1.Final/modules" -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -b localhost --server-config=standalone.xml -Djboss.server.base.dir=C:\jboss-as-7.1.1.Final\standalone -b -Djboss.bind.address.management= -Djboss.management.native.port=9999 

I hope in the future this information can be useful to someone.

answered by 20.02.2016 в 01:14