Error connecting to EAP server using the CLI 'java.net.ConnectException WFLYPRT0053 Could not connect to XXXXXX. The connection failed java.nio.channels.ClosedChannelException'
Issue
Customer has SSL enabled on the management interface in JBoss EAP. The first time connecting to the server using the CLI, the customer is prompted to accept the management interface's certificate:
$ ./jboss-cli.sh --connect controller=remoting://localhost:9990
Unable to connect due to unrecognised server certificate
Subject - CN=localhost
Issuer - CN=localhost
Valid From - Fri Feb 01 16:33:43 EST 2019
Valid To - Mon Jan 29 16:33:43 EST 2029
MD5 : 71:f5:de:42:97:e8:0f:e7:44:a8:18:84:f4:1b:82:6a
SHA1 : 91:e2:be:41:87:99:9b:81:7f:cc:d7:d3:d9:e3:28:cc:73:29:d2:76
Accept certificate? [N]o, [T]emporarily, [P]ermanently : P
Subsequent attempts to re-connect to the server yield the following behavior:
$ ./jboss-cli.sh --connect controller=remoting://localhost:9990
Failed to connect to the controller: The controller is not available at localhost:9990: java.net.ConnectException: WFLYPRT0053: Could not connect to remoting://localhost:9990. The connection failed: WFLYPRT0053: Could not connect to remoting://localhost:9990. The connection failed: java.nio.channels.ClosedChannelException
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.