Wildfly 9.x startet with errors: Address already in use

人盡茶涼 提交于 2019-11-29 02:01:10

Check if you have service called NVIDIA Network Service running at your computer.

Coincidentally this NVIDIA Service is running at the port 9990, used for the Admin console of Wildfly.

In my case, it was only stop this Service and restart the Wildfly server.

WildFly is trying to use a port in your PC is already in use. Check in your logs for: “Caused by: java.net.BindException: Address already in use: bind

Check the port WildFly is using and then you can check if this port is being use for any other application, it could be another instance of WildFly but can be any other application too. For example the port 80 could be apache/IIS or any other web server running in your PC.

Normally WildFly (and JBOSS) use 8080 by default and looks like you have an application listen in this port, also WildFly use few more ports for other protocols and management that the app server needs. Using the command netstat you can check what other app is using those ports, for example (for 8080 port) you can use the command:

netstat -aon | findstr :8080

If you want to do a quick test you can pass this parameter to WildFly “-Djboss.socket.binding.port-offset=2000” this will increase all the ports JBOSS/WildFly use by 2000 (or any other value), then for example if your WildFly was running in "localhost:8080/your-context" now will be "localhost:10080/your-context".

If your JBOSS/WildFly is running in port 80 you can play with this parameter to test with another port too, for example “-Djboss.socket.binding.port-offset=10000” will bring you also with the port 10080.

Good luck ;)

Wildfly is already running when you try to start it. Check your process viewer, it may show up as wildfly it may show up just as 'java'.

You could be running it as a service, you could be running it from the command line, it is possible that Eclipse started it and isn't aware of it any longer.

Just checking my (default) port in a browser via http://localhost:8080 it was obvious it was a service/application I installed/tested called Intrexx (which btw. uses the Tomcat application server). After deinstallation everything was fine again.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!