Search code examples
javaserverwildfly

Cannot connect to Wildfly


I have just installed Wildfly and I tried to connect it :

\wildfly-11.0.0.Final\bin>jboss-cli.bat -c

But gives me follow error :

Failed to connect to the controller: The controller is not available at localhost:9990: java.net.ConnectException: WFLYPRT0053: Could not connect to remote+http://localhost:9990. The connection failed: WFLYPRT0053: Could not connect to remote+http://localhost:9990. The connection failed: Connection refused: no further information

I tried a lot of solutions but it's not working for me.


Solution

  • With Widlfly running, i.e. (standalone.bat), use the --controller option to define where it is:

    jboss-cli.bat -c --controller=localhost:9990