Karaf
  1. Karaf
  2. KARAF-1117

Log messages appear on stdout when the feature http is installed

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Incomplete
    • Affects Version/s: 2.2.5
    • Fix Version/s: 2.2.6
    • Component/s: None
    • Labels:
      None

      Description

      To reproduce just type
      > feature:install http

      The following log messages appear (here with jetty 7.5.0 but happens with any jetty 7.5.x till now).
      2011-12-20 11:54:12.001:INFO:oejs.Server:jetty-7.5.0.v20110901
      2011-12-20 11:54:12.055:INFO:oejs.AbstractConnector:Started NIOSocketConnectorWrapper@0.0.0.0:8080 STARTING
      karaf@root> 2011-12-20 11:54:12.222:INFO:oejs.Server:jetty-7.5.0.v20110901
      2011-12-20 11:54:12.257:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8181 STARTING
      2011-12-20 11:54:12.261:INFO:oejs.AbstractConnector:Started NIOSocketConnectorWrapper@0.0.0.0:8181 STARTING

      When I switch back to jetty 7.4.5 the problem disappears.

      So we need to decide what to do for Karaf 2.2.5. I see three solutions:
      1) Switch back to jetty 7.4.5
      2) Wait for a new jetty 7.5.x that fixes this bug
      3) Log the bug as a known issue and fix with 2.2.6

        Issue Links

          Activity

          Hide
          Christian Schneider added a comment -
          Show
          Christian Schneider added a comment - Filed an issue at eclipse: https://bugs.eclipse.org/bugs/show_bug.cgi?id=367172
          Hide
          Alexandre Roman added a comment - - edited

          As a workaround, you can add these lines to 'etc/system.properties':

          system.properties
          # Workaround for KARAF-1117: Jetty will use a JUL logger.
          org.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.JavaUtilLog
          
          Show
          Alexandre Roman added a comment - - edited As a workaround, you can add these lines to 'etc/system.properties': system.properties # Workaround for KARAF-1117: Jetty will use a JUL logger. org.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.JavaUtilLog
          Hide
          Christian Schneider added a comment -

          Sounds good as a workaround. I think we should put that in the distro till we have a new version of jetty

          Show
          Christian Schneider added a comment - Sounds good as a workaround. I think we should put that in the distro till we have a new version of jetty
          Hide
          Jean-Baptiste Onofré added a comment -

          It looks good to me as well.

          Thanks Alexandre for the tip

          Show
          Jean-Baptiste Onofré added a comment - It looks good to me as well. Thanks Alexandre for the tip
          Hide
          Jamie goodyear added a comment -

          This work around is applied in kit for Karaf 2.2.6-snapshot.

          I think we can close this issue, with a note to test on the next jetty update to retest this work around for removal.

          Show
          Jamie goodyear added a comment - This work around is applied in kit for Karaf 2.2.6-snapshot. I think we can close this issue, with a note to test on the next jetty update to retest this work around for removal.
          Hide
          Jamie goodyear added a comment -

          We've applied a work around to the logging, but this work around will need to be removed once the jetty logging issue is resolved in a future release.

          Show
          Jamie goodyear added a comment - We've applied a work around to the logging, but this work around will need to be removed once the jetty logging issue is resolved in a future release.

            People

            • Assignee:
              Unassigned
              Reporter:
              Christian Schneider
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development