Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 579F010331 for ; Mon, 11 Nov 2013 12:47:37 +0000 (UTC) Received: (qmail 18544 invoked by uid 500); 11 Nov 2013 12:47:29 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 18499 invoked by uid 500); 11 Nov 2013 12:47:26 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 18338 invoked by uid 99); 11 Nov 2013 12:47:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Nov 2013 12:47:17 +0000 Date: Mon, 11 Nov 2013 12:47:17 +0000 (UTC) From: "J.W. Janssen (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FELIX-4038) org.apache.felix.http.host ignored MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-4038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] J.W. Janssen updated FELIX-4038: -------------------------------- Fix Version/s: http-2.2.2 > org.apache.felix.http.host ignored > ---------------------------------- > > Key: FELIX-4038 > URL: https://issues.apache.org/jira/browse/FELIX-4038 > Project: Felix > Issue Type: Bug > Components: HTTP Service > Affects Versions: http-2.2.0 > Reporter: Paul Bakker > Fix For: http-2.2.2 > > > It looks like the org.apache.felix.http.host property is ignored, both when passed as system property and using config admin. > For example the following configuration should set both the host and the port. The exception shows the port being set correctly, but the host trying to bind to 0.0.0.0. > I can't really explain why this happens when looking at the code (the property should be picked up as far as I can see), so it might be something broken in Jetty itself for example. > {code} > java -Dorg.osgi.service.http.port=8082 -Dorg.apache.felix.http.host=127.4.144.129 -jar example.jar > 013.04.26 17:32:36 WARNING - Bundle: org.apache.felix.http.jetty - failed Server@1c0d32e: java.net.SocketException: Permission denied > 2013.04.26 17:32:36 WARNING - Bundle: org.apache.felix.http.jetty - failed SelectChannelConnector@0.0.0.0:8082: java.net.SocketException: Permission denied > 2013.04.26 17:32:36 INFO - Bundle: org.apache.felix.http.whiteboard - Detected extended HttpService. Filters enabled. > 2013.04.26 17:32:36 INFO - Bundle: org.apache.felix.http.jetty - [org.osgi.service.http.HttpService, org.apache.felix.http.api.ExtHttpService] - ServiceEvent REGISTERED > 2013.04.26 17:32:36 INFO - Bundle: org.apache.felix.http.jetty - [org.osgi.service.http.HttpService, org.apache.felix.http.api.ExtHttpService] - ServiceEvent UNREGISTERING > 2013.04.26 17:32:34 ERROR - Bundle: org.apache.felix.http.jetty - Exception while initializing Jetty. - java.net.SocketException: Permission denied > at sun.nio.ch.Net.bind0(Native Method) > at sun.nio.ch.Net.bind(Net.java:344) > at sun.nio.ch.Net.bind(Net.java:336) > at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:199) > at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) > at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216) > at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:315) > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.jetty.Server.doStart(Server.java:235) > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.apache.felix.http.jetty.internal.JettyService.initializeJetty(JettyService.java:164) > at org.apache.felix.http.jetty.internal.JettyService.startJetty(JettyService.java:115) > at org.apache.felix.http.jetty.internal.JettyService.run(JettyService.java:290) > at java.lang.Thread.run(Thread.java:722) > {code} -- This message was sent by Atlassian JIRA (v6.1#6144)