org.springframework.beans.factory.BeanDefinitionStoreException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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}
    via by Paolo Antinori,
  • Issue with Maven exclusions on Linux
    via Stack Overflow by Chris
    ,
  • Compile error on Linux using Maven
    via Stack Overflow by Chris
    ,
  • Outages?
    via by Adam Sherman,
  • db:: 3.24::why is import org not working? js
    via by Unknown author,
  • Bean XML files can't be parsed due to Xerces insantiation error: !ENTRY org.springframework.ide.eclipse.beans.core 1 0 2011-03-18 13:14:02.697 !MESSAGE Error occured processing 'beans.xml' !STACK 0 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.springframework.ide.eclipse.core.io.xml.LineNumberPreservingDOMParser.<init>(LineNumberPreservingDOMParser.java:40) at org.springframework.ide.eclipse.core.io.xml.XercesDocumentLoader.loadDocument(XercesDocumentLoader.java:35) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$2.loadBeanDefinitions(BeansConfig.java:375) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(BeansConfig.java:421) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(BeansConfig.java:1) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:680) This happened after I upgraded from 2.5.2 to 2.6.0; I deleted my old STS and downloaded the install file for 2.6.0, but the error still happens.
    via by Will Tran,
  • After upgrading to Spring IDE 2.6.0, the xml configuration files cannot be loaded anymore. org.apache.xerces.parsers.ObjectFactory$ConfigurationError: Provider org.apache.xerces.parsers.XML11Configuration 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.findJarServiceProvider(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.springframework.ide.eclipse.core.io.xml.LineNumberPreservingDOMParser.<init>(LineNumberPreservingDOMParser.java:40) at org.springframework.ide.eclipse.core.io.xml.XercesDocumentLoader.loadDocument(XercesDocumentLoader.java:35) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$2.loadBeanDefinitions(BeansConfig.java:375) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(BeansConfig.java:421) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(BeansConfig.java:1) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) at java.lang.Thread.run(Thread.java:595)
    via by Andrei Ivanov,
  • [Java XML]
    via by 807607,
    • 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

    Users with the same issue

    Unknown visitor2 times, last one,