Receiving "WFLYPRT0053: Could not connect to remote+http://localhost:<PORT>" error when connecting to JBoss CLI in EAP 7.

Solution Verified - Updated -

Issue

  • Getting following error when trying to connect JBoss CLI over SSL in EAP 7 using command jboss-cli.bat --user="admin" --password="admin" --controller=localhost:<PORT> --connect

    Failed to connect to the controller: The controller is not available at localhost:<PORT>: java.net.ConnectException: WFLYPRT0053: Could not connect to remote+http://localhost:<PORT>. The connection failed: WFLYPRT0053: Could not connect to remote+http://localhost:<PORT>. The connection failed: XNIO000812: Connection closed unexpectedly
    
  • Getting following error when trying to connect JBoss CLI in EAP 7 using command jboss-cli.sh --controller=localhost:<PORT> --connect

    Failed to connect to the controller: The controller is not available at localhost:<PORT>: java.net.ConnectException: WFLYPRT0053: Could not connect to remote+http://localhost:<PORT>. The connection failed: WFLYPRT0053: Could not connect to remote+http://localhost:<PORT>. The connection failed: Connection refused
    

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.0.x
    • 7.1.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In