Karaf
  1. Karaf
  2. KARAF-918

pax-url prerequisites for a feature are not respected

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.2.2
    • Fix Version/s: 2.2.6, 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 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.

        Issue Links

          Activity

          Chris Dolan created issue -
          Jean-Baptiste Onofré made changes -
          Field Original Value New Value
          Assignee Jean-Baptiste Onofré [ jbonofre ]
          Jean-Baptiste Onofré made changes -
          Fix Version/s 2.2.5 [ 12317857 ]
          Fix Version/s 3.0.0 [ 12316040 ]
          Priority Major [ 3 ] Minor [ 4 ]
          Jean-Baptiste Onofré made changes -
          Fix Version/s 2.2.6 [ 12319142 ]
          Fix Version/s 2.2.5 [ 12317857 ]
          Hide
          Chris Dolan added a comment -

          I posted a proposal attached to KARAF-910 that would also solve this defect by adding explicit support for MalformedURLException to FeaturesServiceImpl.

          https://issues.apache.org/jira/browse/KARAF-910?focusedCommentId=13177709#comment-13177709

          Show
          Chris Dolan added a comment - I posted a proposal attached to KARAF-910 that would also solve this defect by adding explicit support for MalformedURLException to FeaturesServiceImpl. https://issues.apache.org/jira/browse/KARAF-910?focusedCommentId=13177709#comment-13177709
          Jean-Baptiste Onofré made changes -
          Link This issue duplicates KARAF-608 [ KARAF-608 ]
          Jean-Baptiste Onofré made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Duplicate [ 3 ]
          Hide
          Jean-Baptiste Onofré added a comment -

          KARAF-608 already address the same problem.

          Show
          Jean-Baptiste Onofré added a comment - KARAF-608 already address the same problem.
          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
          158d 1h 34m 1 Jean-Baptiste Onofré 12/Mar/12 14:15
          Resolved Resolved Closed Closed
          46d 8h 50m 1 Jamie goodyear 27/Apr/12 23:05

            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