You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Karl Pauls (JIRA)" <ji...@apache.org> on 2018/09/21 13:09:00 UTC

[jira] [Commented] (FELIX-5935) Can't install features with dependencies to sources manifest-version 1

    [ https://issues.apache.org/jira/browse/FELIX-5935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16623587#comment-16623587 ] 

Karl Pauls commented on FELIX-5935:
-----------------------------------

It does but it looks like we have some bugs if a bundle does specify it to be "1". It will work correctly if a bundle doesn't have no manifest version (which is defaulting to "1") but apparently, we have some bugs in the logic that expect it to be "2" if it is specified. Looks like this is the case for both, the utils as well as the framework.

> Can't install features with dependencies to sources manifest-version 1
> ----------------------------------------------------------------------
>
>                 Key: FELIX-5935
>                 URL: https://issues.apache.org/jira/browse/FELIX-5935
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework, Utils
>    Affects Versions: utils-1.10.4
>         Environment: karaf 4.2.1
> using apache felix framework 5.6.10
> and utils version 1.11.0
>            Reporter: Zernikel Stefan
>            Priority: Critical
>
> If I try to install features with Karaf depending on sources with manifest version 1, I get the following exception:
>  
> {code:java}
> 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
> {code}
>  
>  
> The source of the problem is about here I guess:
>  
> {code:java}
> //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);
> }{code}
>  
> Does Felix not support manifest version 1 any longer?
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)