Wildfly 9.x启动与错误:地址已在使用 [英] Wildfly 9.x startet with errors: Address already in use

查看:3332
本文介绍了Wildfly 9.x启动与错误:地址已在使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse,JSF,Wildfly等都是新的。我得到这个stacktrace:

  22:03:42,430错误[org.jboss.msc.service.fail](MSC服务线程1-2)MSC000001:无法启动服务jboss.serverManagement.controller.management.http:org.jboss.msc.service.StartException in service jboss.serverManagement.controller.management.http:WFLYSRV0083:无法启动http接口服务
在org.jboss.as.server.mgmt.UndertowHttpManagementService.start(UndertowHttpManagementService.java:269)
在org.jboss.msc.service.ServiceControllerImpl $ StartTask.startService(ServiceControllerImpl.java:1948 )
在org.jboss.msc.service.ServiceControllerImpl $ StartTask.run(ServiceControllerImpl.java:1881)
在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)
在java.lang.Thread.run(Thread.java:745)
导致:java.lang。 RuntimeException:java.net.BindException:Addres s已经在使用:绑定
在org.jboss.as.domain.http.server.ManagementHttpServer.start(ManagementHttpServer.java:160)
在org.jboss.as.server.mgmt.UndertowHttpManagementService。启动(UndertowHttpManagementService.java:235)
... 5更多
导致:java.net.BindException:已经在使用的地址:bind
at sun.nio.ch.Net.bind0 (Native Method)
at sun.nio.ch.Net.bind(Net.java:437)
at sun.nio.ch.Net.bind(Net.java:429)
在sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
在sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at sun.nio.ch.ServerSocketAdaptor .bind(ServerSocketAdaptor.java:67)
在org.xnio.nio.NioXnioWorker.createTcpConnectionServer(NioXnioWorker.java:182)
在org.xnio.XnioWorker.createStreamConnectionServer(XnioWorker.java:243)
在org.jboss.as.domain.http.server.ManagementHttpServer.start(ManagementHttpServer.java:147)
... 6更多

22:03:42,431 INFO [org.jboss.as.connector.subsystems.datasources](MSC服务线程1-1)WFLYJCA0001:绑定数据源[java:jboss / datasources / ExampleDS]
22:03:42,551 INFO [org.jboss.ws.common.management](MSC服务线程1-7)JBWS022052:启动JBoss Web服务 - 堆栈CXF服务器5.0.0.Final
22:03 :43.87 INFO [javax.enterprise.resource.webcontainer.jsf.config](ServerService Thread Pool - 61)Mojarra 2.2.11-jbossorg-1 20150505-1501fürKontext'/ JSF Hello World'wird initialisiert。
22:03:43,821 INFO [org.wildfly.extension.undertow](ServerService Thread Pool - 61)WFLYUT0021:注册的Web上下文:/ JSF Hello World
22:03:43,827 ERROR [org。 jboss.as.controller.management-operation](控制器启动线程)WFLYCTL0013:操作(添加)失败 - 地址:([
(core-service=>管理),
(management-interface=>http-interface)
]) - 故障描述:{WFLYCTL0080:Failed services=> {jboss.serverManagement.controller.management.http=> org.jboss.msc.service.StartException in service jboss.serverManagement.controller.management.http:WFLYSRV0083:无法启动http-interface服务
导致:java.lang.RuntimeException:java.net.BindException :已经使用的地址:bind
导致:java.net.BindException:已使用的地址:bind}}
22:03:43,758 INFO [org.jboss.as.server](ServerService线程池 - 34)WFLYSRV0010:部署了JSF Hello World.war(运行时名称:JSF Hello World.war)
22:03:43,886 INFO [org.jboss.as.controller](Controller启动线程)WFLYCTL0183:服务状态报告
WFLYCTL0186:无法启动的服务:service jboss.serverManagement.controller.management.http:org.jboss.msc.service.StartException in service jboss.serverManagement.controller.management。 http:WFLYSRV0083:无法启动http-interface服务

22:03:43,884 INFO [org.jboss.as](控制器引导线程)​​WFLYSRV0063:Http管理界面未启用
22:03:43,884 INFO [org.jboss.as](控制器启动线程)WFLYSRV0054:管理控制台未启用
22:03:43,884错误[org.jboss.as](控制器启动线程)WFLYSRV0026:WildFly Full 9.0.1.Final(WildFly Core 1.0.1.Final)在12675ms中启动(带有错误) - 启动了455个服务中的270个(2个服务失败或缺少依赖关系,221个服务是懒惰的,被动的或按需的)

我如何解决这个问题?



端口80上有一些连接。我必须检查所有的ip地址与whois来识别已经在使用端口80的计算机上的应用程序。

  C:\Users\me7D-User> netstat -aon | findstr80
TCP 0.0.0.0:8092 0.0.0.0:0ABHÖREN4
TCP 127.0.0.1:8080 0.0.0.0:0ABHÖREN8868
TCP 127.0.0.1:8080 127.0。 0.1:59241 HERGESTELLT 8868
TCP 127.0.0.1:59177 127.0.0.1:8080 WARTEND 0
TCP 127.0.0.1:59180 127.0.0.1:59181 HERGESTELLT 8868
TCP 127.0.0.1:59181 127.0 .0.1:59180 HERGESTELLT 8868
TCP 127.0.0.1:59230 127.0.0.1:8080 WARTEND 0
TCP 127.0.0.1:59241 127.0.0.1:8080 HERGESTELLT 11024
TCP 192.168.0.100:59166 173.194.113.41:80 WARTEND 0
TCP 192.168.0.100:59249 104.16.102.85:80 HERGESTELLT 8392
TCP 192.168.0.100:59250 216.58.211.42:80 HERGESTELLT 8392
TCP 192.168.0.100: 59252 103.31.7.34:80 HERGESTELLT 8392
TCP 192.168.0。 100:59253 216.58.211.42:80 WARTEND 0
TCP 192.168.0.100:59254 190.93.247.58:80 HERGESTELLT 8392
TCP 192.168.0.100:59255 190.93.247.58:80 HERGESTELLT 8392
TCP 192.168 .0.100:59256 190.93.247.58:80 WARTEND 0
TCP 192.168.0.100:59257 190.93.247.58:80 HERGESTELLT 8392
TCP 192.168.0.100:59258 190.93.247.58:80 HERGESTELLT 8392
TCP 192.168.0.100:59259 190.93.247.58:80 HERGESTELLT 8392
TCP 192.168.0.100:59264 104.16.12.8:80 HERGESTELLT 8392
TCP 192.168.0.100:59265 88.221.92.32:80 HERGESTELLT 8392
TCP 192.168.0.100:59266 88.221.92.176:80 HERGESTELLT 8392
TCP 192.168.0.100:59267 173.194.113.36:80 HERGESTELLT 8392
TCP 192.168.0.100:59268 104.16.12.8:80 WARTEND 0
TCP 192.168.0.100:59269 88.221.92.32:80 W ARTEND 0
TCP 192.168.0.100:59270 88.221.92.176:80 WARTEND 0
TCP 192.168.0.100:59271 54.204.10.55:80 HERGESTELLT 8392
TCP 192.168.0.100:59272 54.204.10.55: 80 WARTEND 0
TCP 192.168.0.100:59273 95.172.94.34:80 WARTEND 0
TCP 192.168.0.100:63749 216.34.181.97:80 SCHLIESSEN_WARTEN 1680

TCP 192.168.0.100: 63812 216.34.181.97:80 SCHLIESSEN_WARTEN 1680

TCP [::]:8092 [::]:0ABHÖREN4
UDP 127.0.0.1:49880 *:* 3272
UDP [fe80 :: 100:7f:fffe%11]:54045 *:* 49
56
UDP [fe80 :: 5efe:192.168.0.100%15]:54045 *:*
4956
UDP [fe80 :: 5efe:192.168.137.1%14]:54045 *:*
4956
UDP [fe80 :: a9:d477:68a9:2472%10]:1900 *: *
3364
UDP [fe80 :: a9: d477:68a9:2472%10]:54045 *:*
4956
UDP [fe80 :: a9:d477:68a9:2472%10]:56718 *:*
3364
UDP [fe80 :: 3d9d:1f6f:e25:35b%13]:53 *:*
1292
UDP [fe80 :: 3d9d:1f6f:e25:35b%13]:546 *:*
1100
UDP [fe80 :: 3d9d:1f6f:e25:35b%13]:1900 *:*
3364
UDP [fe80 :: 3d9d:1f6f:e25:35b %13]:54045 *:*
4956
UDP [fe80 :: 3d9d:1f6f:e25:35b%13]:56719 *:*
3364

此错误始终存在,如果我重新启动计算机也是如此。



编辑:

  Microsoft Windows [Version 6.1.7601] 
版权所有(c)2009 Microsoft Corporation。 Alle Rechte vorbehalten。

C:\Users\me7D-User> netstat -aon | findstr8080
TCP 127.0.0.1:8080 0.0.0.0:0ABHÖREN7500
TCP 127.0.0.1:8080 127.0.0.1:60095 HERGESTELLT 7500
TCP 127.0.0.1:8080 127.0。 0.1:60096 HERGESTELLT 7500
TCP 127.0.0.1:60035 127.0.0.1:8080 WARTEND 0
TCP 127.0.0.1:60095 127.0.0.1:8080 HERGESTELLT 11024
TCP 127.0.0.1:60096 127.0 .0.1:8080 HERGESTELLT 11024


解决方案

检查您是否有服务在您的计算机上运行的 NVIDIA网络服务



无疑,这种 NVIDIA服务正在端口9990 上运行,用于Wildfly的管理控制台即可。





在我的情况下,只停止此服务重新启动Wildfly服务器。


I'm new in Eclipse, JSF, Wildfly and so on. I get this stacktrace:

22:03:42,430 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.serverManagement.controller.management.http: org.jboss.msc.service.StartException in service jboss.serverManagement.controller.management.http: WFLYSRV0083: Failed to start the http-interface service
    at org.jboss.as.server.mgmt.UndertowHttpManagementService.start(UndertowHttpManagementService.java:269)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: java.net.BindException: Address already in use: bind
    at org.jboss.as.domain.http.server.ManagementHttpServer.start(ManagementHttpServer.java:160)
    at org.jboss.as.server.mgmt.UndertowHttpManagementService.start(UndertowHttpManagementService.java:235)
    ... 5 more
Caused by: java.net.BindException: Address already in use: bind
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:437)
    at sun.nio.ch.Net.bind(Net.java:429)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67)
    at org.xnio.nio.NioXnioWorker.createTcpConnectionServer(NioXnioWorker.java:182)
    at org.xnio.XnioWorker.createStreamConnectionServer(XnioWorker.java:243)
    at org.jboss.as.domain.http.server.ManagementHttpServer.start(ManagementHttpServer.java:147)
    ... 6 more

22:03:42,431 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
22:03:42,551 INFO  [org.jboss.ws.common.management] (MSC service thread 1-7) JBWS022052: Starting JBoss Web Services - Stack CXF Server 5.0.0.Final
22:03:43,287 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 61) Mojarra 2.2.11-jbossorg-1 20150505-1501 für Kontext '/JSF Hello World' wird initialisiert.
22:03:43,721 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 61) WFLYUT0021: Registered web context: /JSF Hello World
22:03:43,727 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
    ("core-service" => "management"),
    ("management-interface" => "http-interface")
]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.serverManagement.controller.management.http" => "org.jboss.msc.service.StartException in service jboss.serverManagement.controller.management.http: WFLYSRV0083: Failed to start the http-interface service
    Caused by: java.lang.RuntimeException: java.net.BindException: Address already in use: bind
    Caused by: java.net.BindException: Address already in use: bind"}}
22:03:43,758 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "JSF Hello World.war" (runtime-name : "JSF Hello World.war")
22:03:43,786 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186:   Services which failed to start:      service jboss.serverManagement.controller.management.http: org.jboss.msc.service.StartException in service jboss.serverManagement.controller.management.http: WFLYSRV0083: Failed to start the http-interface service

22:03:43,884 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0063: Http management interface is not enabled
22:03:43,884 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0054: Admin console is not enabled
22:03:43,884 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 9.0.1.Final (WildFly Core 1.0.1.Final) started (with errors) in 12675ms - Started 270 of 455 services (2 services failed or missing dependencies, 221 services are lazy, passive or on-demand)

How can I resolve this problem?

There are some connections on port 80. Do I have to check all ip adresses with whois to identify an application on my computer which is already using port 80?

C:\Users\me7D-User>netstat -aon | findstr "80"
  TCP    0.0.0.0:8092           0.0.0.0:0              ABHÖREN         4
  TCP    127.0.0.1:8080         0.0.0.0:0              ABHÖREN         8868
  TCP    127.0.0.1:8080         127.0.0.1:59241        HERGESTELLT     8868
  TCP    127.0.0.1:59177        127.0.0.1:8080         WARTEND         0
  TCP    127.0.0.1:59180        127.0.0.1:59181        HERGESTELLT     8868
  TCP    127.0.0.1:59181        127.0.0.1:59180        HERGESTELLT     8868
  TCP    127.0.0.1:59230        127.0.0.1:8080         WARTEND         0
  TCP    127.0.0.1:59241        127.0.0.1:8080         HERGESTELLT     11024
  TCP    192.168.0.100:59166    173.194.113.41:80      WARTEND         0
  TCP    192.168.0.100:59249    104.16.102.85:80       HERGESTELLT     8392
  TCP    192.168.0.100:59250    216.58.211.42:80       HERGESTELLT     8392
  TCP    192.168.0.100:59252    103.31.7.34:80         HERGESTELLT     8392
  TCP    192.168.0.100:59253    216.58.211.42:80       WARTEND         0
  TCP    192.168.0.100:59254    190.93.247.58:80       HERGESTELLT     8392
  TCP    192.168.0.100:59255    190.93.247.58:80       HERGESTELLT     8392
  TCP    192.168.0.100:59256    190.93.247.58:80       WARTEND         0
  TCP    192.168.0.100:59257    190.93.247.58:80       HERGESTELLT     8392
  TCP    192.168.0.100:59258    190.93.247.58:80       HERGESTELLT     8392
  TCP    192.168.0.100:59259    190.93.247.58:80       HERGESTELLT     8392
  TCP    192.168.0.100:59264    104.16.12.8:80         HERGESTELLT     8392
  TCP    192.168.0.100:59265    88.221.92.32:80        HERGESTELLT     8392
  TCP    192.168.0.100:59266    88.221.92.176:80       HERGESTELLT     8392
  TCP    192.168.0.100:59267    173.194.113.36:80      HERGESTELLT     8392
  TCP    192.168.0.100:59268    104.16.12.8:80         WARTEND         0
  TCP    192.168.0.100:59269    88.221.92.32:80        WARTEND         0
  TCP    192.168.0.100:59270    88.221.92.176:80       WARTEND         0
  TCP    192.168.0.100:59271    54.204.10.55:80        HERGESTELLT     8392
  TCP    192.168.0.100:59272    54.204.10.55:80        WARTEND         0
  TCP    192.168.0.100:59273    95.172.94.34:80        WARTEND         0
  TCP    192.168.0.100:63749    216.34.181.97:80       SCHLIESSEN_WARTEN    1680

  TCP    192.168.0.100:63812    216.34.181.97:80       SCHLIESSEN_WARTEN    1680

  TCP    [::]:8092              [::]:0                 ABHÖREN         4
  UDP    127.0.0.1:49880        *:*                                    3272
  UDP    [fe80::100:7f:fffe%11]:54045  *:*                                    49
56
  UDP    [fe80::5efe:192.168.0.100%15]:54045  *:*
     4956
  UDP    [fe80::5efe:192.168.137.1%14]:54045  *:*
     4956
  UDP    [fe80::a9:d477:68a9:2472%10]:1900  *:*
   3364
  UDP    [fe80::a9:d477:68a9:2472%10]:54045  *:*
    4956
  UDP    [fe80::a9:d477:68a9:2472%10]:56718  *:*
    3364
  UDP    [fe80::3d9d:1f6f:e25:35b%13]:53  *:*
 1292
  UDP    [fe80::3d9d:1f6f:e25:35b%13]:546  *:*
  1100
  UDP    [fe80::3d9d:1f6f:e25:35b%13]:1900  *:*
   3364
  UDP    [fe80::3d9d:1f6f:e25:35b%13]:54045  *:*
    4956
  UDP    [fe80::3d9d:1f6f:e25:35b%13]:56719  *:*
    3364

This error is always present, also if I restart my computer.

Edit:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\me7D-User>netstat -aon | findstr "8080"
  TCP    127.0.0.1:8080         0.0.0.0:0              ABHÖREN         7500
  TCP    127.0.0.1:8080         127.0.0.1:60095        HERGESTELLT     7500
  TCP    127.0.0.1:8080         127.0.0.1:60096        HERGESTELLT     7500
  TCP    127.0.0.1:60035        127.0.0.1:8080         WARTEND         0
  TCP    127.0.0.1:60095        127.0.0.1:8080         HERGESTELLT     11024
  TCP    127.0.0.1:60096        127.0.0.1:8080         HERGESTELLT     11024

解决方案

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 9.x启动与错误:地址已在使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆