Karaf
  1. Karaf
  2. KARAF-917

warn instead of info when failing to install a feature

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.2
    • Fix Version/s: 2.2.4, 3.0.0
    • Component/s: karaf-feature
    • Labels:
      None

      Description

      I have a custom feature that looks roughly like this:

      <feature name="..." version="$

      {project.version}

      " resolver="(obr)">
      <feature version="[2,3)">war</feature>
      ...
      <bundle start-level="90">war:mvn:org.apache.activemq/activemq-web-console/5.5.0/war?Web-ContextPath=/ServiceHost/jms-console</bundle>
      </feature>

      This feature fails to load with the following error message:

      Error when installing feature avid-servicehost-jms: java.net.MalformedURLException: unknown protocol: war

      The problem is easily solved by adding pax-url-war to startup.properties. But this problem took me an hour to solve because the error message was emitted as logger.info() instead of logger.warn() and my environment has console logging set to WARN.

      I will file a separate defect to address the fact that pax-url-war is specified in the feature prerequisites but the feature fails anyway.

      1. KARAF-917.patch
        0.8 kB
        Chris Dolan

        Activity

        Chris Dolan created issue -
        Hide
        Chris Dolan added a comment -

        This patch trivially changes the log level of a failed feature load to warn() instead of info()

        Show
        Chris Dolan added a comment - This patch trivially changes the log level of a failed feature load to warn() instead of info()
        Chris Dolan made changes -
        Field Original Value New Value
        Attachment KARAF-917.patch [ 12497986 ]
        Jean-Baptiste Onofré made changes -
        Assignee Jean-Baptiste Onofré [ jbonofre ]
        Jean-Baptiste Onofré made changes -
        Fix Version/s 2.2.4 [ 12317342 ]
        Fix Version/s 3.0.0 [ 12316040 ]
        Hide
        Jean-Baptiste Onofré added a comment -

        Fixed on trunk: revision 1179641.

        Show
        Jean-Baptiste Onofré added a comment - Fixed on trunk: revision 1179641.
        Hide
        Jean-Baptiste Onofré added a comment -

        Fixed on karaf-2.2.x: revision 1179642.

        Show
        Jean-Baptiste Onofré added a comment - Fixed on karaf-2.2.x: revision 1179642.
        Jean-Baptiste Onofré made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Jamie goodyear made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1h 46m 1 Jean-Baptiste Onofré 06/Oct/11 15:20
        Resolved Resolved Closed Closed
        111d 23h 46m 1 Jamie goodyear 26/Jan/12 14:07

          People

          • Assignee:
            Jean-Baptiste Onofré
            Reporter:
            Chris Dolan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development