Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-917

warn instead of info when failing to install a feature

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.2
    • 2.2.4, 3.0.0
    • karaf
    • 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.

      Attachments

        1. KARAF-917.patch
          0.8 kB
          Chris Dolan

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            cdolan Chris Dolan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: