org.osgi.framework.BundleException: Unresolved constraint in bundle io.fabric8.fab.fab-osgi [158]: Unable to resolve 158.0: missing requirement [158.0] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.pax.swissbox.property)(version>=1.7.0)(!(version>=2.0.0)))

JBoss Issue Tracker | Paolo Antinori | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I constantly have this set of errors while creating a Fabric {code} 2014-09-17 12:30:48,104 | ERROR | agent-1-thread-1 | DeploymentAgent | 81 - io.fabric8.fabric-agent - 1.2.0.SNAPSHOT | Unable to update agent io.fabric8.common.util.MultiException: Error updating agent at io.fabric8.agent.DeploymentAgent.install(DeploymentAgent.java:988)[81:io.fabric8.fabric-agent:1.2.0.SNAPSHOT] at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:593)[81:io.fabric8.fabric-agent:1.2.0.SNAPSHOT] at io.fabric8.agent.DeploymentAgent$2.run(DeploymentAgent.java:313)[81:io.fabric8.fabric-agent:1.2.0.SNAPSHOT] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_65] at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_65] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_65] at java.lang.Thread.run(Thread.java:745)[:1.7.0_65] Caused by: org.osgi.framework.BundleException: Uses constraint violation. Unable to resolve bundle revision org.apache.servicemix.bundles.spring-context-support [177.0] because it is exposed to package 'org.apache.commons.logging' from bundle revisions org.ops4j.pax.logging.pax-logging-api [4.0] and org.ops4j.pax.swissbox.optional.jcl [162.0] via two dependency chains. Chain 1: org.apache.servicemix.bundles.spring-context-support [177.0] import: (&(osgi.wiring.package=org.apache.commons.logging)(version>=1.1.1)(!(version>=2.0.0))) | export: osgi.wiring.package=org.apache.commons.logging org.ops4j.pax.logging.pax-logging-api [4.0] Chain 2: org.apache.servicemix.bundles.spring-context-support [177.0] import: (&(osgi.wiring.package=org.apache.velocity.context)(version>=1.5.0)(!(version>=2.0.0))) | export: osgi.wiring.package=org.apache.velocity.context; uses:=org.apache.commons.logging org.apache.servicemix.bundles.velocity [188.0] import: (&(osgi.wiring.package=org.apache.commons.logging)(version>=1.1.0)(!(version>=2.0.0))) | export: osgi.wiring.package=org.apache.commons.logging org.ops4j.pax.swissbox.optional.jcl [162.0] at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4006)[org.apache.felix.framework-4.4.1.jar:] at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)[org.apache.felix.framework-4.4.1.jar:] at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:976)[org.apache.felix.framework-4.4.1.jar:] at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:963)[org.apache.felix.framework-4.4.1.jar:] at io.fabric8.agent.DeploymentAgent.install(DeploymentAgent.java:981)[81:io.fabric8.fabric-agent:1.2.0.SNAPSHOT] ... 7 more 2014-09-17 12:30:50,397 | INFO | pool-49-thread-1 | ActiveMQServiceFactory | 202 - io.fabric8.mq.mq-fabric - 1.2.0.SNAPSHOT | booting up a broker from: profile:broker.xml 2014-09-17 12:30:50,398 | INFO | pool-49-thread-1 | ActiveMQServiceFactory$1 | 176 - org.apache.servicemix.bundles.spring-context - 3.2.9.RELEASE_1 | Refreshing io.fabric8.mq.fabric.ActiveMQServiceFactory$1@4a3b90a: startup date [Wed Sep 17 12:30:50 CEST 2014]; root of context hierarchy 2014-09-17 12:30:50,399 | INFO | pool-49-thread-1 | XBeanXmlBeanDefinitionReader | 174 - org.apache.servicemix.bundles.spring-beans - 3.2.9.RELEASE_1 | Loading XML bean definitions from URL [profile:broker.xml] 2014-09-17 12:30:50,410 | INFO | pool-49-thread-1 | ActiveMQServiceFactory | 202 - io.fabric8.mq.mq-fabric - 1.2.0.SNAPSHOT | Broker root failed to start. Will try again in 10 seconds 2014-09-17 12:30:50,411 | ERROR | pool-49-thread-1 | ActiveMQServiceFactory | 202 - io.fabric8.mq.mq-fabric - 1.2.0.SNAPSHOT | Exception on start: Unexpected exception parsing XML document from URL [profile:broker.xml]; nested exception is org.apache.xerces.parsers.ObjectFactory$ConfigurationError: Provider org.apache.xerces.parsers.XIncludeAwareParserConfiguration could not be instantiated: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory. org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [profile:broker.xml]; nested exception is org.apache.xerces.parsers.ObjectFactory$ConfigurationError: Provider org.apache.xerces.parsers.XIncludeAwareParserConfiguration could not be instantiated: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory. at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)[174:org.apache.servicemix.bundles.spring-beans:3.2.9.RELEASE_1] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[174:org.apache.servicemix.bundles.spring-beans:3.2.9.RELEASE_1] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[174:org.apache.servicemix.bundles.spring-beans:3.2.9.RELEASE_1] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:111)[184:org.apache.xbean.spring:3.16.0] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:104)[184:org.apache.xbean.spring:3.16.0] at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[176:org.apache.servicemix.bundles.spring-context:3.2.9.RELEASE_1] at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537)[176:org.apache.servicemix.bundles.spring-context:3.2.9.RELEASE_1] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)[176:org.apache.servicemix.bundles.spring-context:3.2.9.RELEASE_1] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[184:org.apache.xbean.spring:3.16.0] at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[184:org.apache.xbean.spring:3.16.0] at io.fabric8.mq.fabric.ActiveMQServiceFactory$1.<init>(ActiveMQServiceFactory.java:196)[202:io.fabric8.mq.mq-fabric:1.2.0.SNAPSHOT] at io.fabric8.mq.fabric.ActiveMQServiceFactory.createBroker(ActiveMQServiceFactory.java:196)[202:io.fabric8.mq.mq-fabric:1.2.0.SNAPSHOT] at io.fabric8.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration.doStart(ActiveMQServiceFactory.java:588)[202:io.fabric8.mq.mq-fabric:1.2.0.SNAPSHOT] at io.fabric8.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration.access$700(ActiveMQServiceFactory.java:412)[202:io.fabric8.mq.mq-fabric:1.2.0.SNAPSHOT] at io.fabric8.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration$1.run(ActiveMQServiceFactory.java:543)[202:io.fabric8.mq.mq-fabric:1.2.0.SNAPSHOT] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_65] at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_65] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_65] at java.lang.Thread.run(Thread.java:745)[:1.7.0_65] Caused by: org.apache.xerces.parsers.ObjectFactory$ConfigurationError: Provider org.apache.xerces.parsers.XIncludeAwareParserConfiguration could not be instantiated: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory. at org.apache.xerces.parsers.ObjectFactory.newInstance(Unknown Source)[:] at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)[:] at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)[:] at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)[:] at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)[:] at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)[:] at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)[:] at org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilder(DefaultDocumentLoader.java:130)[174:org.apache.servicemix.bundles.spring-beans:3.2.9.RELEASE_1] at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:74)[174:org.apache.servicemix.bundles.spring-beans:3.2.9.RELEASE_1] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)[174:org.apache.servicemix.bundles.spring-beans:3.2.9.RELEASE_1] ... 19 more {code} {code} 12:32:30 (...0.redhat-SNAPSHOT)$ java -version java version "1.7.0_65" OpenJDK Runtime Environment (fedora-2.5.2.5.fc20-x86_64 u65-b17) OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode {code}

    JBoss Issue Tracker | 3 years ago | Paolo Antinori
    org.osgi.framework.BundleException: Unresolved constraint in bundle io.fabric8.fab.fab-osgi [158]: Unable to resolve 158.0: missing requirement [158.0] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.pax.swissbox.property)(version>=1.7.0)(!(version>=2.0.0)))
  2. 0

    Protege distribution changes break for all but bundled versions of jre

    GitHub | 2 years ago | sesuncedu
    org.osgi.framework.BundleException: Unresolved constraint in bundle org.protege.common [1]: Unable to resolve 1.0: missing requirement [1.0] osgi.wiring.package; (osgi.wiring.package=javax.management)
  3. 0

    maven-bundle-plugin Creates unexpected Import-Package content

    Stack Overflow | 2 years ago
    org.osgi.framework.BundleException: Unresolved constraint in bundle org.classdomain.persistence [47]: Unable to resolve 47.0: missing requirement [47.0] o sgi.wiring.package; (&(osgi.wiring.package=org.osgi.framework)(version>=1.8.0)(!(versio n>=2.0.0))))
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [protege-user] Initialization Problem

    stanford.edu | 2 years ago
    org.osgi.framework.BundleException: Unresolved constraint in bundle cz.cvut.kbss .owl2query.protege.OWL2Query [24]: Unable to resolve 24.0: missing requirement [ 24.0] osgi.wiring.package; (&(osgi.wiring.package=org.protege.editor.core.plugin )(version>=4.3.0)(!(version>=5.0.0)))
  6. 0

    Error when starting protege

    GitHub | 1 year ago | magick93
    org.osgi.framework.BundleException: Unresolved constraint in bundle fresnelforms [25]: Unable to resolve 25.0: missing requirement [25.0] osgi.wiring.package; (&(osgi.wiring.package=org.semanticweb.owlapi.model)(version>=3.5.0)(!(version>=4.0.0)))

  1. davidvanlaatum 2631 times, last 7 months ago
6 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.osgi.framework.BundleException

    Unresolved constraint in bundle io.fabric8.fab.fab-osgi [158]: Unable to resolve 158.0: missing requirement [158.0] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.pax.swissbox.property)(version>=1.7.0)(!(version>=2.0.0)))

    at org.apache.felix.framework.Felix.resolveBundleRevision()
  2. Apache Felix Framework
    FrameworkStartLevelImpl.run
    1. org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
    2. org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
    3. org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
    4. org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
    4 frames
  3. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame