This is an article related with Wildfly Java Application Server. The detail is on how to connect to the management console available or provided in Wildfly Java Application Server. The access can be done via browser, but it can also done by executing command via command line. Below is the display of the management console of Wildfly Java Application Server :
But to be able to access the URL specified above where it is the URL of the administration console of Wildfly which is normally can be visited in http://localhost:9990, as in the local workstation, below are steps taken to be able to connect to the administration console :
1. The availability of the Wildfly Java Application Server on the workstation. Install it and for further reference titled ‘Installing Wildfly Java Application Server’ where it can be found in this link.
2. The service of Wildfly Java Application Server is running. To be able to run the service, it can be found in this article titled ‘How to Run Wildfly Java Application Server via Command Line’ in this link.
3. Just execute the command in the command line to connect to Wildfly Java Application Server where in the context of this article, it is the management console. The command itself is shown as follows :
/opt/wildfly-12.0.0.Final/bin/jboss-cli.sh --connect
Basically, the command is a shell script named jboss-cli.sh. And there is an additional parameter ‘-connect’ used to connect to the management console. If the service of the management console has already run and it actually listens in the management console port which is normally located in port 9990, the execution of the command will be carried out successfully. The output of the above command execution is shown below :
user@hostname:/opt/wildfly-12.0.0.Final/bin$ /opt/wildfly-12.0.0.Final/bin/jboss-cli.sh --connect [standalone@localhost:9990 /]
On the other hand, if the service is not running, the command above will failed to be executed. It can be shown as follows :
user@hostname:/opt/wildfly-12.0.0.Final/bin$ /opt/wildfly-12.0.0.Final/bin/jboss-cli.sh --connect 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 user@hostname:/opt/wildfly-12.0.0.Final/bin$