Hi,

Your feature miss commons-io bundle which export org.apache.commons.io package, add bundle like
mvn:commons-io/commons-io/1.4
into your feature should be ok.
Freeman

On 2011-6-24, at 上午4:50, vbhasin wrote:

Hello:

I'm seeing the following error while deploying bundles in SMix/Fuse 4.4.0.
Not sure why it is complaining about org.apache.commons.io..

java.lang.Exception: Could not start bundle mvn:com.xxx.yyy/ZBundle in
feature(s) com.xxx.yyy-1.0.0: Unresolved constraint in bundle
com.xxx.yyy.ZBundle [341]: Unable to resolve 341.0: missing requirement
[341.0] package; (package=org.apache.commons.io)
        at
org .apache .karaf .features .internal .FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:353) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[: 1.6.0_26]
        at
sun .reflect .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[: 1.6.0_26]
        at
sun .reflect .DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
        at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
        at
org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java: 50)[8:org.apache.aries.proxy:0.3.0]
        at
org .apache.aries.proxy.impl.DefaultWrapper.invoke(DefaultWrapper.java: 31)[8:org.apache.aries.proxy:0.3.0]
        at
org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:78) [8:org.apache.aries.proxy:0.3.0]
        at $Proxy3.installFeatures(Unknown
Source)[17:org.apache.karaf.features.core:2.2.0.fuse-00-27]
        at
org .apache .karaf .deployer .features .FeatureDeploymentListener .bundleChanged(FeatureDeploymentListener.java:133) [25:org.apache.karaf.deployer.features:2.2.0.fuse-00-27]
        at
org .apache .felix .framework .util .EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java: 795)[org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org .apache .felix .framework .util.EventDispatcher.fireEventImmediately(EventDispatcher.java:717) [org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org .apache .felix.framework.util.EventDispatcher.run(EventDispatcher.java:952) [org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org.apache.felix.framework.util.EventDispatcher.access $000(EventDispatcher.java:41)[org.apache.felix.framework-3.0.9- fuse-00-27.jar:]
        at
org.apache.felix.framework.util.EventDispatcher $1.run(EventDispatcher.java:93)[org.apache.felix.framework-3.0.9- fuse-00-27.jar:]
        at java.lang.Thread.run(Thread.java:662)[:1.6.0_26]
Caused by: org.osgi.framework.BundleException: Unresolved constraint in
bundle com.xxx.yyy.ZBundle [341]: Unable to resolve 341.0: missing
requirement [341.0] package; (package=org.apache.commons.io)
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3436)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1728)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:927)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:914)
        at
org .apache .karaf .features .internal .FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:350)
        ... 15 more
15:40:23,215 | ERROR | lixDispatchQueue | FeatureDeploymentListener |
25 - org.apache.karaf.deployer.features - 2.2.0.fuse-00-27 | Unable to
install deployed features for bundle: com.xxx.yyy.ABundle - 1.0.0.SNAPSHOT
java.lang.IllegalStateException: zip file closed
        at java.util.zip.ZipFile.ensureOpen(ZipFile.java:416)[:1.6.0_26]
        at java.util.zip.ZipFile.entries(ZipFile.java:311)[:1.6.0_26]
        at
org .apache.felix.framework.cache.JarContent.getEntries(JarContent.java: 108)[org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org .apache .felix .framework.EntryFilterEnumeration.<init>(EntryFilterEnumeration.java: 60)[org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org.apache.felix.framework.Felix.findBundleEntries(Felix.java:1526) [org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org.apache.felix.framework.BundleImpl.findEntries(BundleImpl.java: 293)[org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org .apache .karaf .deployer .features .FeatureDeploymentListener .bundleChanged(FeatureDeploymentListener.java:125) [25:org.apache.karaf.deployer.features:2.2.0.fuse-00-27]
        at
org .apache .felix .framework .util .EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java: 795)[org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org .apache .felix .framework .util.EventDispatcher.fireEventImmediately(EventDispatcher.java:717) [org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org .apache .felix.framework.util.EventDispatcher.run(EventDispatcher.java:952) [org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org.apache.felix.framework.util.EventDispatcher.access $000(EventDispatcher.java:41)[org.apache.felix.framework-3.0.9- fuse-00-27.jar:]
        at
org.apache.felix.framework.util.EventDispatcher $1.run(EventDispatcher.java:93)[org.apache.felix.framework-3.0.9- fuse-00-27.jar:]
        at java.lang.Thread.run(Thread.java:662)[:1.6.0_26]
15:40:23,215 | ERROR | lixDispatchQueue | FeatureDeploymentListener |
25 - org.apache.karaf.deployer.features - 2.2.0.fuse-00-27 | Unable to
install deployed features for bundle: com.xxx.yyy.CBundle - 1.0.0
java.lang.IllegalStateException: zip file closed
        at java.util.zip.ZipFile.ensureOpen(ZipFile.java:416)[:1.6.0_26]
        at java.util.zip.ZipFile.entries(ZipFile.java:311)[:1.6.0_26]
        at
org .apache.felix.framework.cache.JarContent.getEntries(JarContent.java: 108)[org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org .apache .felix .framework.EntryFilterEnumeration.<init>(EntryFilterEnumeration.java: 60)[org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org.apache.felix.framework.Felix.findBundleEntries(Felix.java:1526) [org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org.apache.felix.framework.BundleImpl.findEntries(BundleImpl.java: 293)[org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org .apache .karaf .deployer .features .FeatureDeploymentListener .bundleChanged(FeatureDeploymentListener.java:125) [25:org.apache.karaf.deployer.features:2.2.0.fuse-00-27]
        at
org .apache .felix .framework .util .EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java: 795)[org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org .apache .felix .framework .util.EventDispatcher.fireEventImmediately(EventDispatcher.java:717) [org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org .apache .felix.framework.util.EventDispatcher.run(EventDispatcher.java:952) [org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org.apache.felix.framework.util.EventDispatcher.access $000(EventDispatcher.java:41)[org.apache.felix.framework-3.0.9- fuse-00-27.jar:]
        at
org.apache.felix.framework.util.EventDispatcher $1.run(EventDispatcher.java:93)[org.apache.felix.framework-3.0.9- fuse-00-27.jar:]
        at java.lang.Thread.run(Thread.java:662)[:1.6.0_26]
15:40:23,216 | ERROR | lixDispatchQueue | FeatureDeploymentListener |
25 - org.apache.karaf.deployer.features - 2.2.0.fuse-00-27 | Unable to
install deployed features for bundle: com.xxx.yyy.DBundle - 1.0.0
java.lang.IllegalStateException: zip file closed
        at java.util.zip.ZipFile.ensureOpen(ZipFile.java:416)[:1.6.0_26]
        at java.util.zip.ZipFile.entries(ZipFile.java:311)[:1.6.0_26]
        at
org .apache.felix.framework.cache.JarContent.getEntries(JarContent.java: 108)[org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org .apache .felix .framework.EntryFilterEnumeration.<init>(EntryFilterEnumeration.java: 60)[org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org.apache.felix.framework.Felix.findBundleEntries(Felix.java:1526) [org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org.apache.felix.framework.BundleImpl.findEntries(BundleImpl.java: 293)[org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org .apache .karaf .deployer .features .FeatureDeploymentListener .bundleChanged(FeatureDeploymentListener.java:125) [25:org.apache.karaf.deployer.features:2.2.0.fuse-00-27]
        at
org .apache .felix .framework .util .EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java: 795)[org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org .apache .felix .framework .util.EventDispatcher.fireEventImmediately(EventDispatcher.java:717) [org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org .apache .felix.framework.util.EventDispatcher.run(EventDispatcher.java:952) [org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
        at
org.apache.felix.framework.util.EventDispatcher.access $000(EventDispatcher.java:41)[org.apache.felix.framework-3.0.9- fuse-00-27.jar:]
        at
org.apache.felix.framework.util.EventDispatcher $1.run(EventDispatcher.java:93)[org.apache.felix.framework-3.0.9- fuse-00-27.jar:]
        at java.lang.Thread.run(Thread.java:662)[:1.6.0_26]

Appreciate your help!

Vishal

--
View this message in context: 
http://karaf.922171.n3.nabble.com/Unable-to-resolve-missing-requirement-error-while-deploying-features-in-SMix-Fuse-4-4-0-tp3101643p3101643.html
Sent from the Karaf - User mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com









Reply via email to