Hi,

This error indicates 
mvn:org.eclipse.persistence/org.eclipse.persistence.asm/3.3.1.v201206041142

isn't a valid OSGi bundle, Netty has a similar issue[1] a while ago, they fixed 
it. I think you need report this issue to eclipse link community and let them 
fix it.

[1]https://issues.jboss.org/browse/NETTY-376
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋

On 2013-2-2, at 下午9:04, lbu wrote:

> Hi,
> I've created a simple feature to automatically install all the eclipselink
> dependencies of a project and I've noticed the following behavior:
> 
> When the bundle org.eclipse.persistence.asm is installed from the karaf
> shell, the bundle is installed
> 
> karaf@bt>uninstall 89
> karaf@bt>osgi:install
> mvn:org.eclipse.persistence/org.eclipse.persistence.asm/3.3.1.v201206041142
> Bundle ID: 182
> 
> When installed from a very simple feature, it fails:
> 
> karaf@bt>features:install bt-jpa
> Error executing command: Manifest not present in the first entry of the zip
> mvn:org.eclipse.persistence/org.eclipse.persistence.asm/3.3.1.v201206041142
> 
> Here the feature:
> <feature name="bt-jpa" version="1.0.0">
> 
> <bundle>mvn:org.eclipse.persistence/org.eclipse.persistence.asm/3.3.1.v201206041142</bundle>
> 
> <bundle>mvn:org.eclipse.persistence/org.eclipse.persistence.antlr/3.2.0.v201206041011</bundle>
> 
> <bundle>mvn:org.eclipse.persistence/org.eclipse.persistence.core/2.4.1</bundle>
> 
> <bundle>mvn:org.eclipse.persistence/org.eclipse.persistence.jpa/2.4.1</bundle>
> 
> <bundle>mvn:org.eclipse.persistence/org.eclipse.persistence.oracle/2.4.1</bundle>
>    <bundle>mvn:org.apache.openjpa/openjpa/2.2.0</bundle>
> </feature>
> 
> And the log:
> 13:56:25,370|INFO |org.apache.karaf.shell.console.jline.Console               
>      
> ==> Exception caught while executing command
> org.osgi.framework.BundleException: Manifest not present in the first entry
> of the zip
> mvn:org.eclipse.persistence/org.eclipse.persistence.asm/3.3.1.v201206041142
>       at
> org.apache.karaf.features.internal.FeaturesServiceImpl.installBundleIfNeeded(FeaturesServiceImpl.java:817)[20:org.apache.karaf.features.core:2.3.0]
>       at
> org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:603)[20:org.apache.karaf.features.core:2.3.0]
>       at
> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:405)[20:org.apache.karaf.features.core:2.3.0]
>       at
> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:393)[20:org.apache.karaf.features.core:2.3.0]
>       at
> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:389)[20:org.apache.karaf.features.core:2.3.0]
>       at
> org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:62)[22:org.apache.karaf.features.command:2.3.0]
>       at
> org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:41)[22:org.apache.karaf.features.command:2.3.0]
>       at
> org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[14:org.apache.karaf.shell.console:2.3.0]
>       at
> org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[14:org.apache.karaf.shell.console:2.3.0]
>       at
> org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[14:org.apache.karaf.shell.console:2.3.0]
>       at
> org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[14:org.apache.karaf.shell.console:2.3.0]
>       at
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[14:org.apache.karaf.shell.console:2.3.0]
>       at
> org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[14:org.apache.karaf.shell.console:2.3.0]
>       at
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[14:org.apache.karaf.shell.console:2.3.0]
>       at
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[14:org.apache.karaf.shell.console:2.3.0]
>       at
> org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[14:org.apache.karaf.shell.console:2.3.0]
>       at
> org.apache.karaf.shell.console.jline.Console.run(Console.java:175)[14:org.apache.karaf.shell.console:2.3.0]
>       at java.lang.Thread.run(Thread.java:680)[:1.6.0_37]
> 
> 
> It looks like a bug, or am I missing something?
> 
> 
> 
> 
> --
> View this message in context: 
> http://karaf.922171.n3.nabble.com/Eclkpselink-bundle-installation-features-vs-command-tp4027584.html
> Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to