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

Cannot install feature depending on other 2+ levels of features with prerequisite="true"

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.1.0
    • Component/s: karaf
    • Labels:
      None

      Description

      Steps to reproduce the error:
      1. Unpack apache-karaf-4.1.0-SNAPSHOT.tar.gz
      2. Add following block to the file "system/org/apache/karaf/features/enterprise/4.1.0-SNAPSHOT/enterprise-4.1.0-SNAPSHOT-features.xml"

      	<feature name="demo-a">
      		<bundle>mvn:javax.interceptor/javax.interceptor-api/1.2</bundle>
      	</feature>
      	
      	<feature name="demo-b">
      		<feature prerequisite="true">demo-a</feature>
      		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax-inject/1_2</bundle>
      	</feature>
      	
      	<feature name="demo-c">
      		<feature prerequisite="true">demo-b</feature>
      		<bundle>mvn:javax.el/javax.el-api/3.0.0</bundle>
      	</feature>
      

      3. Delete folder data and file lock if available
      4. Start karaf (command "bin/karaf")
      5. Execute command "feature:install demo-c" in karaf shell, you should get the following error message.

      karaf@root()> feature:install demo-c                                                                                                   xx:xx:xx
      gogo: CircularPrerequisiteException: [demo-a/0.0.0]
      Error executing command: [demo-a/0.0.0]
      

        Attachments

          Activity

            People

            • Assignee:
              gnt Guillaume Nodet
              Reporter:
              lliao Lijun Liao
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: