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

feature resolver for system.bundle (equinox) faulty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0.M2
    • 4.0.1
    • karaf
    • None

    Description

      I want to create a feature, that contains a jar (third party one).
      The manifest of that bundle contains:
      Require-Bundle: system.bundle

      If I am using "karaf.framework=felix" all seems to be working.

      If I am using "karaf.framework=equinox" and install the kar / feature that contains that bundle I get the following message:

      Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=karaf-oh2-feature; type=karaf.feature; version="[1.0.0.SNAPSHOT,1.0.0.SNAPSHOT]"; filter:="(&(osgi.identity=karaf-oh2-feature)(type=karaf.feature)(version>=1.0.0.SNAPSHOT)(version<=1.0.0.SNAPSHOT))" [caused by: Unable to resolve karaf-oh2-feature/1.0.0.SNAPSHOT: missing requirement [karaf-oh2-feature/1.0.0.SNAPSHOT] osgi.identity; osgi.identity=javax.activation; type=osgi.bundle; version="[1.1.0.v201211130549,1.1.0.v201211130549]"; resolution:=mandatory [caused by: Unable to resolve javax.activation/1.1.0.v201211130549: missing requirement [javax.activation/1.1.0.v201211130549] osgi.wiring.bundle; osgi.wiring.bundle=system.bundle; filter:="(osgi.wiring.bundle=system.bundle)"]]

      I can install that bundle using "bundle:install".
      If I retry to install the feature, I can install it now.

      Here you could find a kar that demonstrate the problem:
      https://drive.google.com/file/d/0Bx99QXY8p6gvY3BoMXlZeXRIOWs/view?usp=sharing

      kar:install should write the above error message in your log.
      Installing the feature should trigger the error, too.

      You can extract the jar (javax.activation) of that kar and will see, that you are able to install it using bundle:install.

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            maggu2810 Markus Rathgeb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: