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

pax-url prerequisites for a feature are not respected

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.2.2
    • 2.2.6, 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 via featuresBoot with the following error message:

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

      The "war" feature in standard-2.2.2-features.xml has this line:

      <bundle>mvn:org.ops4j.pax.url/pax-url-war/1.2.7</bundle>

      But that line is currently useless to my scenario. The pax-url-war bundle must be loaded before my features.xml is even validated or the error occurs. So, I'm forced to include pax-url-war in startup.properties.

      I would prefer that if the features manager encounters a malformed URL, then it should load prerequisites before throwing. This would, for example, allow us to put pax-url-wrap as an optional load instead of in startup.properties.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment