osgi - Karaf Feature install throwing Unsupported 'Bundle-ManifestVersion' value: 1 -
hi guys getting below error while using feture install in karaf
org.apache.karaf.features.internal.util.multiexception: error @ org.apache.karaf.features.internal.download.impl.mavendownloadmanager$mavendownloader.<init>(mavendownloadmanager.java:84)[9:org.apache.karaf.features.core:4.0.3] @ org.apache.karaf.features.internal.download.impl.mavendownloadmanager.createdownloader(mavendownloadmanager.java:72)[9:org.apache.karaf.features.core:4.0.3] @ org.apache.karaf.features.internal.region.subsystem.downloadbundles(subsystem.java:358)[9:org.apache.karaf.features.core:4.0.3] @ org.apache.karaf.features.internal.region.subsystem.downloadbundles(subsystem.java:355)[9:org.apache.karaf.features.core:4.0.3] @ org.apache.karaf.features.internal.region.subsystemresolver.resolve(subsystemresolver.java:191)[9:org.apache.karaf.features.core:4.0.3] @ org.apache.karaf.features.internal.service.deployer.deploy(deployer.java:263)[9:org.apache.karaf.features.core:4.0.3] @ org.apache.karaf.features.internal.service.featuresserviceimpl.doprovision(featuresserviceimpl.java:1079)[9:org.apache.karaf.features.core:4.0.3] @ org.apache.karaf.features.internal.service.featuresserviceimpl$1.call(featuresserviceimpl.java:975)[9:org.apache.karaf.features.core:4.0.3] @ java.util.concurrent.futuretask.run(futuretask.java:262)[:1.7.0_79] @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145)[:1.7.0_79] @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615)[:1.7.0_79] @ java.lang.thread.run(thread.java:745)[:1.7.0_79] caused by: java.lang.exception: unable create resource bundle mvn:org.dt.dummy/diff-blueprint/0.0.1-snapshot @ org.apache.karaf.features.internal.region.subsystem.createresource(subsystem.java:567)[9:org.apache.karaf.features.core:4.0.3] @ org.apache.karaf.features.internal.region.subsystem$1.downloaded(subsystem.java:376)[9:org.apache.karaf.features.core:4.0.3] @ org.apache.karaf.features.internal.download.impl.mavendownloadmanager$mavendownloader$1.operationcomplete(mavendownloadmanager.java:133)[9:org.apache.karaf.features.core:4.0.3] @ org.apache.karaf.features.internal.download.impl.mavendownloadmanager$mavendownloader$1.operationcomplete(mavendownloadmanager.java:127)[9:org.apache.karaf.features.core:4.0.3] @ org.apache.karaf.features.internal.download.impl.defaultfuture.notifylistener(defaultfuture.java:344)[9:org.apache.karaf.features.core:4.0.3] @ org.apache.karaf.features.internal.download.impl.defaultfuture.notifylisteners(defaultfuture.java:329)[9:org.apache.karaf.features.core:4.0.3] @ org.apache.karaf.features.internal.download.impl.defaultfuture.setvalue(defaultfuture.java:255)[9:org.apache.karaf.features.core:4.0.3] @ org.apache.karaf.features.internal.download.impl.abstractdownloadtask.setfile(abstractdownloadtask.java:61)[9:org.apache.karaf.features.core:4.0.3] @ org.apache.karaf.features.internal.download.impl.abstractretryabledownloadtask.run(abstractretryabledownloadtask.java:59)[9:org.apache.karaf.features.core:4.0.3] @ java.util.concurrent.executors$runnableadapter.call(executors.java:471)[:1.7.0_79] @ java.util.concurrent.futuretask.run(futuretask.java:262)[:1.7.0_79] @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.access$201(scheduledthreadpoolexecutor.java:178)[:1.7.0_79] @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.run(scheduledthreadpoolexecutor.java:292)[:1.7.0_79] ... 3 more caused by: org.osgi.framework.bundleexception: unable build resource mvn:org.dt.dummy/diff-blueprint/0.0.1-snapshot: unsupported 'bundle-manifestversion' value: 1 @ org.apache.karaf.features.internal.resolver.resourcebuilder.build(resourcebuilder.java:80)[9:org.apache.karaf.features.core:4.0.3] @ org.apache.karaf.features.internal.resolver.resourcebuilder.build(resourcebuilder.java:69)[9:org.apache.karaf.features.core:4.0.3] @ org.apache.karaf.features.internal.region.subsystem.createresource(subsystem.java:565)[9:org.apache.karaf.features.core:4.0.3] ... 15 more caused by: org.osgi.framework.bundleexception: unsupported 'bundle-manifestversion' value: 1 @ org.apache.karaf.features.internal.resolver.resourcebuilder.dobuild(resourcebuilder.java:88)[9:org.apache.karaf.features.core:4.0.3] @ org.apache.karaf.features.internal.resolver.resourcebuilder.build(resourcebuilder.java:78)[9:org.apache.karaf.features.core:4.0.3] ... 17 more
feature.xml
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <features xmlns="http://karaf.apache.org/xmlns/features/v1.3.0" name="diff-blueprint"> <feature name="diff-blueprint" description="diff-blueprint" version="0.0.1.snapshot"> <feature prerequisite="true" dependency="false">wrap</feature> <bundle>mvn:org.dt.dummy/diff-blueprint/0.0.1-snapshot</bundle> <bundle>wrap:mvn:osgi/osgi/3.0.1</bundle> <bundle>wrap:mvn:javax.xml/xml/3.1.0</bundle> <bundle>wrap:mvn:xmlunit/xmlunit/1.6</bundle> <bundle>wrap:mvn:junit/junit/4.11</bundle> <bundle>wrap:mvn:org.hamcrest/hamcrest-core/1.3</bundle> <bundle>mvn:com.googlecode.json-simple/json-simple/1.1.1</bundle> <bundle>wrap:mvn:de.odysseus.staxon/staxon-jackson/1.2</bundle> <bundle>mvn:com.fasterxml.jackson.core/jackson-core/2.0.6</bundle> <bundle>wrap:mvn:de.odysseus.staxon/staxon/1.2</bundle> <bundle>mvn:log4j/log4j/1.2.17</bundle> <bundle>mvn:org.codehaus.jackson/jackson-mapper-asl/1.9.13</bundle> <bundle>mvn:org.codehaus.jackson/jackson-core-asl/1.9.13</bundle> <bundle>wrap:mvn:org.unitils/unitils/2.4</bundle> <bundle>wrap:mvn:commons-logging/commons-logging/1.1</bundle> <bundle>wrap:mvn:commons-dbcp/commons-dbcp/1.2.2</bundle> <bundle>wrap:mvn:commons-pool/commons-pool/1.3</bundle> <bundle>wrap:mvn:commons-lang/commons-lang/2.3</bundle> <bundle>wrap:mvn:commons-collections/commons-collections/3.2</bundle> <bundle>wrap:mvn:ognl/ognl/2.6.9</bundle> <bundle>wrap:mvn:ant/ant/1.6.5</bundle> </feature> </features>
i have found solution if wrap jars throw bundle-manifestversion: 1 work
Comments
Post a Comment