JBoss AS 7 CLI can not connect

0

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 0.0.0.0

and started without problems.

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

C:\jboss-as-7.1.1.Final\bin\jboss-cli.bat

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

connect

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
source

1 answer

1

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 0.0.0.0 -Djboss.bind.address.management=127.0.0.1 -Djboss.management.native.port=9999 

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

    
answered by 20.02.2016 в 01:14