Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 84706 invoked from network); 9 Jan 2011 18:12:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Jan 2011 18:12:06 -0000 Received: (qmail 61158 invoked by uid 500); 9 Jan 2011 18:12:06 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 61116 invoked by uid 500); 9 Jan 2011 18:12:06 -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 61108 invoked by uid 99); 9 Jan 2011 18:12:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Jan 2011 18:12:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Jan 2011 18:12:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p09IBjmI027512 for ; Sun, 9 Jan 2011 18:11:45 GMT Message-ID: <27689637.241701294596705259.JavaMail.jira@thor> Date: Sun, 9 Jan 2011 13:11:45 -0500 (EST) From: "Felix Meschberger (JIRA)" To: dev@felix.apache.org Subject: [jira] Assigned: (FELIX-2772) setting http.port=-1 should disable service rather than throw exception In-Reply-To: <21811524.237611294569706696.JavaMail.jira@thor> 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-2772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger reassigned FELIX-2772: ---------------------------------------- Assignee: Felix Meschberger > setting http.port=-1 should disable service rather than throw exception > ----------------------------------------------------------------------- > > Key: FELIX-2772 > URL: https://issues.apache.org/jira/browse/FELIX-2772 > Project: Felix > Issue Type: Improvement > Components: HTTP Service > Affects Versions: http-2.0.4 > Reporter: Derek Baum > Assignee: Felix Meschberger > Priority: Minor > Fix For: http-2.0.6 > > > I want to stop http.jetty from starting automatically, as I want to ensure the correct port is first explicitly configured using config admin. > I can currently do this by setting org.apache.felix.http.enable=false, but this then complicates starting the service, as I have to set both http.enable=true and http.port=PORT > It would be useful if setting http.port=-1 effectively disabled the service, then just by using config admin to set a valid port the service would start. Currently setting http.port=-1 results in the following exception: > [WARNING] failed SelectChannelConnector@0.0.0.0:-1: java.lang.IllegalArgumentException: port out of range:-1 > [WARNING] failed Server@1f195fc: java.lang.IllegalArgumentException: port out of range:-1 > [ERROR] Exception while initializing Jetty. > java.lang.IllegalArgumentException: port out of range:-1 > at java.net.InetSocketAddress.(InetSocketAddress.java:83) > The Equinox http service is disabled if http.port=-1 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.