How to use export-package,import-package, bundle-symbolicname and other Manifest header entries with wrap scheme ?
Issue
- How to use wrap scheme including custom export/import packages,
bundle-symbolic-name, etc withkarafconsole andfeature.xmlfile. - I am trying to setup up Fuse 6.2 on my local environment (Windows 7), and I am running into some issues. We were using Fuse 6.1 before and things are working fine. Since Fuse 6.2 is out, we are giving it a try.
- I have some custom bundles / jars that I use for my project. I have setup an cutom-profile, and this profile is using a features.xml file which contains all of our bundles / dependencies. custom-profile is a child profile of custom-base-profile I created a container from. I am getting this error below when I try to start the container. I resolved my other error before this, but this one, I am not sure what changes I need to do. There is probably more than 1 bundle with the same export or 1 bundle depend on something that conflict other bundle, I don't know? Please see attached screen shots and
features.xmlfile. - Provision Exception:
org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource org.apache.cxf.cxf-rt-rs-extension-providers [org.apache.cxf.cxf-rt-rs-extension-providers/3.0.4.redhat-620133] because it is exposed to package 'org.w3c.dom' from resources wrap_file__C__Users_.m2_repository_xml-apis_xml-apis_2.0.2_xml-apis-2.0.2.jar [wrap_file__C__Users_.m2_repository_xml-apis_xml-apis_2.0.2_xml-apis-2.0.2.jar/0.0.0] and wrap_file__C__Users_.m2_repository_org_apache_xmlbeans_xmlbeans_2.4.0_xmlbeans-2.4.0.jar [wrap_file__C__Users_.m2_repository_org_apache_xmlbeans_xmlbeans_2.4.0_xmlbeans-2.4.0.jar/0.0.0] via two dependency chains.
Chain 1:
org.apache.cxf.cxf-rt-rs-extension-providers [org.apache.cxf.cxf-rt-rs-extension-providers/3.0.4.redhat-620133]
import: (osgi.wiring.package=org.w3c.dom)
|
export: osgi.wiring.package: org.w3c.dom
wrap_file__C__Users_.m2_repository_xml-apis_xml-apis_2.0.2_xml-apis-2.0.2.jar [wrap_file__C__Users_.m2_repository_xml-apis_xml-apis_2.0.2_xml-apis-2.0.2.jar/0.0.0]
Chain 2:
org.apache.cxf.cxf-rt-rs-extension-providers [org.apache.cxf.cxf-rt-rs-extension-providers/3.0.4.redhat-620133]
import: (osgi.wiring.package=org.apache.xmlbeans)
|
export: osgi.wiring.package: org.apache.xmlbeans; uses:=org.w3c.dom
export: osgi.wiring.package=org.w3c.dom
wrap_file__C__Users_.m2_repository_org_apache_xmlbeans_xmlbeans_2.4.0_xmlbeans-2.4.0.jar [wrap_file__C__Users_.m2_repository_org_apache_xmlbeans_xmlbeans_2.4.0_xmlbeans-2.4.0.jar/0.0.0]
at org.apache.felix.resolver.ResolverImpl.checkDynamicPackageSpaceConsistency(ResolverImpl.java:1290)
at org.apache.felix.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:1086)
at org.apache.felix.resolver.ResolverImpl.checkDynamicPackageSpaceConsistency(ResolverImpl.java:1402)
at org.apache.felix.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:1086)
at org.apache.felix.resolver.ResolverImpl.checkDynamicPackageSpaceConsistency(ResolverImpl.java:1402)
at org.apache.felix.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:1086)
at org.apache.felix.resolver.ResolverImpl.checkDynamicPackageSpaceConsistency(ResolverImpl.java:1402)
at org.apache.felix.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:1086)
at org.apache.felix.resolver.ResolverImpl.checkDynamicPackageSpaceConsistency(ResolverImpl.java:1402)
at org.apache.felix.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:1086)
at org.apache.felix.resolver.ResolverImpl.checkDynamicPackageSpaceConsistency(ResolverImpl.java:1402)
at org.apache.felix.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:1086)
at org.apache.felix.resolver.ResolverImpl.checkDynamicPackageSpaceConsistency(ResolverImpl.java:1402)
at org.apache.felix.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:1086)
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:260)
at io.fabric8.agent.region.SubsystemResolver.resolve(SubsystemResolver.java:190)
at io.fabric8.agent.service.Deployer.deploy(Deployer.java:255)
at io.fabric8.agent.service.Agent.provision(Agent.java:348)
at io.fabric8.agent.service.Agent.provision(Agent.java:194)
at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:642)
at io.fabric8.agent.DeploymentAgent$2.run(DeploymentAgent.java:256)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Environment
- Red Hat JBoss Fuse
- 6.2.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
