Jetty's SelectChannelConnector does not follow overriden values
Issue
-
Even after overriding jetty's default port and host using the following properties, we see that jetty's SelectChannelConnector uses the 0.0.0.0:8181 which is the value.
-
org.ops4j.pax.web.cfg:
org.osgi.service.http.port=${bind.port}
org.ops4j.pax.web.listening.addresses=${bind.address}
- system.properties:
bind.address=10.10.10.10
bind.port=14080
- jetty.xml:
<New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
<Set name="host">
<Property name="jetty.host"></Property>
</Set>
<!-- default port will be overwritten by pax-web configuration -->
<Set name="port">
<Property name="jetty.port" default="8181"></Property>
</Set>
....
- Logs:
19:59:32,267 | INFO | b Runtime worker | AbstractConnector | 92 - org.eclipse.jetty.util - 7.6.7.v20120910 | Started SelectChannelConnector@0.0.0.0:8181
19:59:32,269 | INFO | b Runtime worker | JettyServerImpl | 100 - org.ops4j.pax.web.pax-web-jetty - 1.1.11 | Pax Web available at [10.65.223.143]:[14080]
19:59:32,272 | INFO | b Runtime worker | AbstractConnector | 92 - org.eclipse.jetty.util - 7.6.7.v20120910 | Started NIOSocketConnectorWrapper@10.10.10.10:14080
Environment
- Red Hat JBoss A-MQ
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
