This article has a content focusing on how to solve an error message. Actually, this article has a connection with several other previous articles. The first one is the article with the title of ‘How to Stop Wildfly Application Server’s service in Microsoft Windows’ exist in this link. Another article is the article with the title of ‘How to Solve Error Message Failed to connect to the controller: Timeout waiting for the system to boot when stopping Wildfly Application Server’ which is available in this link. Actually, the error appear as follows :
C:\wildfly-20.0.1.Final\bin>jboss-cli.bat --connect --controller=localhost:9990 --command=:shutdown 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 Press any key to continue . . . C:\wildfly-20.0.1.Final\bin>
Actually, the solution is quite simple. Just do not take any action further before going on to solve it. Basically, the error above happen because the controller is not available. It is a controller which is responsible for the Administration Console of the Wildfly Application Server. Connecting to the controller means executing the command further for shutting down the service. So, there are several possibilities for the above case :
- The service is running but the Administration Console responsible for the Wildfly Application Server’s controller is not even running yet. Because it is still in the bootup process waiting for it turns.
- The service is currently not even running. So, it is not possible to connect to the Administration Console of the Wildfly Application Server’s controller.
- The service is running but there is a trouble accessing the Administration Console. The simple solution is just stop the service and then start it again. For starting the process just read the article with the title ‘How to Start Wildfly Application Server’s service in Microsoft Windows’ exist in this link. Moreover, the article for stopping the service exist in this link.