Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5935

Can't install features with dependencies to sources manifest-version 1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Invalid
    • Affects Version/s: utils-1.10.4
    • Fix Version/s: None
    • Component/s: Framework, Utils
    • Labels:
      None
    • Environment:
      karaf 4.2.1
      using apache felix framework 5.6.10
      and utils version 1.11.0

      Description

      If I try to install features with Karaf depending on sources with manifest version 1, I get the following exception:

       

      org.osgi.framework.BundleException: Unable to build resource for mvn:<placeholder>: Unsupported 'Bundle-ManifestVersion' value: 1
      at org.apache.felix.utils.resource.ResourceBuilder.build(ResourceBuilder.java:82)
      at org.apache.felix.utils.resource.ResourceBuilder.build(ResourceBuilder.java:67)
      at org.apache.karaf.features.internal.region.SubsystemResolver.prepare(SubsystemResolver.java:180)
      at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:379)
      at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025)
      at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:964)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: org.osgi.framework.BundleException: Unsupported 'Bundle-ManifestVersion' value: 1
       at org.apache.felix.utils.resource.ResourceBuilder.doBuild(ResourceBuilder.java:90)
       at org.apache.felix.utils.resource.ResourceBuilder.build(ResourceBuilder.java:80)
       ... 9 more
      Error executing command: Unable to build resource for mvn:<placeholder>: Unsupported 'Bundle-ManifestVersion' value: 1
      

       

       

      The source of the problem is about here I guess:

       

      //Verify that only manifest version 2 is specified.
      String manifestVersion = getManifestVersion(headerMap);
          if (manifestVersion == null || !manifestVersion.equals("2")) {
          throw new BundleException("Unsupported 'Bundle-ManifestVersion' value: " + manifestVersion);
      }

       

      Does Felix not support manifest version 1 any longer?

       

        Attachments

          Activity

            People

            • Assignee:
              karlpauls Karl Pauls
              Reporter:
              StefanZ Zernikel Stefan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: