Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
2.0.5
-
None
-
None
-
Operating System: All
Platform: All
-
9158
Description
When modifying the jetty connectors to bind to a specific IP and port, the ports seem to bind correctly. However a 3rd connector is brought up (which is not defined in jetty.xml) called "default" that fails to bind. After this, the ports are bound but curling them results in no response. There are more execptions thrown as well around binding. Will attach full jetty.xml and karaf log.
2017-09-13 20:25:00,996 | INFO | onfig-1-thread-1 | JettyServerImpl | 396 - org.ops4j.pax.web.pax-web-jetty - 4.3.0 | Pax Web available at [192.0.2.9]:[8181]
2017-09-13 20:25:00,996 | INFO | onfig-1-thread-1 | JettyServerImpl | 396 - org.ops4j.pax.web.pax-web-jetty - 4.3.0 | Pax Web available at [192.0.2.9]:[8081]
2017-09-13 20:25:00,996 | INFO | onfig-1-thread-1 | JettyFactoryImpl | 396 - org.ops4j.pax.web.pax-web-jetty - 4.3.0 | SPDY not available, creating standard ServerConnector for Http
2017-09-13 20:25:00,997 | INFO | onfig-1-thread-1 | JettyServerImpl | 396 - org.ops4j.pax.web.pax-web-jetty - 4.3.0 | Pax Web available at [0.0.0.0]:[8181]
2017-09-13 20:25:15,658 | INFO | pool-2-thread-1 | ServerConnector | 150 - org.eclipse.jetty.util - 9.2.19.v20160908 | Started jetty-default@5c4c7169
{HTTP/1.1}{192.0.2.9:8181}2017-09-13 20:25:15,665 | INFO | pool-2-thread-1 | ServerConnector | 150 - org.eclipse.jetty.util - 9.2.19.v20160908 | Started jetty-legacy@31dbf2a5{HTTP/1.1} {192.0.2.9:8081}
2017-09-13 20:25:15,667 | WARN | pool-2-thread-1 | AbstractLifeCycle | 150 - org.eclipse.jetty.util - 9.2.19.v20160908 | FAILED default@46a53a87
{HTTP/1.1} {0.0.0.0:8181}: java.net.BindException: Address already in use
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)[:1.8.0_141]
at sun.nio.ch.Net.bind(Net.java:433)[:1.8.0_141]
at sun.nio.ch.Net.bind(Net.java:425)[:1.8.0_141]