"java.net.BindException: Address already in use" JBoss EAP

Solution Unverified - Updated -

Issue

  • Following message is seen in the server log files
java.lang.Exception: Port NNNN already in use.
        ...Caused by: java.net.BindException: Address already in use
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
        at java.net.ServerSocket.bind(ServerSocket.java:319)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        ...
  • We are getting below error in Windows OS while running JBoss EAP 6.3.0. Jboss port set starts from 8080 but why one service Http11Protocol taking 80 port? Increased port set to 100 it worked fine, but we are migrating from Jboss server 4 version to jboss eap 6.3.0, Jboss 4 is running with 8080 port set with IIS server on the same box. Is it possible to use same server port set 8080 with IIS?
  • Below ERROR is shown in logs :
18:09:02,035 ERROR [org.apache.coyote.http11.Http11Protocol] (MSC service thread
 1-4) JBWEB003043: Error initializing endpoint: java.net.BindException: Address
already in use: JVM_Bind /0.0.0.0:80
        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:979) [jb
ossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
        at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:174)
 [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
        at org.apache.catalina.connector.Connector.init(Connector.java:985) [jbo
ssweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]
        at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:3
18) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(Se
rviceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-r
edhat-1]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceCont
rollerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145) [rt.jar:1.7.0_80]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615) [rt.jar:1.7.0_80]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]

18:09:02,457 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC0000
01: Failed to start service jboss.web.connector.http: org.jboss.msc.service.Star
tException in service jboss.web.connector.http: JBAS018007: Error starting web c
onnector

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 4.x
    • 5.x
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.