Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-1946

jetty http service issues 'started' message when disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • http-2.0.4
    • http-2.2.0
    • HTTP Service
    • None

    Description

      I want to configure the felix jetty http service using config admin, so I set the following properties to stop it from starting automatically:

      org.osgi.service.http.port = -1
      org.apache.felix.http.enable = false

      However, when the bundle is activated, it still reports that it has started:

      % [INFO] Started jetty 6.1.x at port -1

      A 'Jetty HTTP Service' thread is actually started, but as http is not enabled, no http server connector is created.
      The above 'Started' message should not appear when http (and https) are disabled, and it would be good if the 'Jetty HTTP Service' was not created until the service is enabled using config admin, for example:

      % setpid org.apache.felix.http org.osgi.service.http.port==1234 org.apache.felix.http.enable==true
      % [INFO] Started jetty 6.1.x at port 1234

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            db82407 Derek Baum
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: