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.

JBoss Issue Tracker | Paolo Antinori | 2 years ago
  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 | 2 years ago | Paolo Antinori
    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.
  2. 0

    Deadlock in ModelManager due to unhandled exception

    Eclipse Bugzilla | 6 years ago | nsandona
    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.
  3. 0

    Progress KB - Sonic 8.5 Connect Project encounters Xerces error when parsing Spring.xml

    progress.com | 2 months ago
    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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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.

    SpringSource Issue Tracker | 6 years ago | Will Tran
    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.
  6. 0

    STS 2.6.0 Upgrade Error - Spring IDE - Spring Forum

    spring.io | 2 months ago
    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.

    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.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()
    2. Xerces2-j
      DocumentBuilderFactoryImpl.newDocumentBuilder
      1. org.apache.xerces.parsers.ObjectFactory.newInstance(Unknown Source)[:]
      2. org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)[:]
      3. org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)[:]
      4. org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)[:]
      5. org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)[:]
      6. org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)[:]
      7. org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)[:]
      7 frames
    3. Spring Beans
      XmlBeanDefinitionReader.loadBeanDefinitions
      1. org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilder(DefaultDocumentLoader.java:130)[174:org.apache.servicemix.bundles.spring-beans:3.2.9.RELEASE_1]
      2. org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:74)[174:org.apache.servicemix.bundles.spring-beans:3.2.9.RELEASE_1]
      3. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)[174:org.apache.servicemix.bundles.spring-beans:3.2.9.RELEASE_1]
      4. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[174:org.apache.servicemix.bundles.spring-beans:3.2.9.RELEASE_1]
      5. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[174:org.apache.servicemix.bundles.spring-beans:3.2.9.RELEASE_1]
      5 frames
    4. Apache XBean :: Spring
      ResourceXmlApplicationContext.loadBeanDefinitions
      1. org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:111)[184:org.apache.xbean.spring:3.16.0]
      2. org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:104)[184:org.apache.xbean.spring:3.16.0]
      2 frames
    5. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[176:org.apache.servicemix.bundles.spring-context:3.2.9.RELEASE_1]
      2. org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537)[176:org.apache.servicemix.bundles.spring-context:3.2.9.RELEASE_1]
      3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)[176:org.apache.servicemix.bundles.spring-context:3.2.9.RELEASE_1]
      3 frames
    6. Apache XBean :: Spring
      ResourceXmlApplicationContext.<init>
      1. org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[184:org.apache.xbean.spring:3.16.0]
      2. org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[184:org.apache.xbean.spring:3.16.0]
      2 frames
    7. io.fabric8.mq
      ActiveMQServiceFactory$ClusteredConfiguration$1.run
      1. io.fabric8.mq.fabric.ActiveMQServiceFactory$1.<init>(ActiveMQServiceFactory.java:196)[202:io.fabric8.mq.mq-fabric:1.2.0.SNAPSHOT]
      2. io.fabric8.mq.fabric.ActiveMQServiceFactory.createBroker(ActiveMQServiceFactory.java:196)[202:io.fabric8.mq.mq-fabric:1.2.0.SNAPSHOT]
      3. io.fabric8.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration.doStart(ActiveMQServiceFactory.java:588)[202:io.fabric8.mq.mq-fabric:1.2.0.SNAPSHOT]
      4. io.fabric8.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration.access$700(ActiveMQServiceFactory.java:412)[202:io.fabric8.mq.mq-fabric:1.2.0.SNAPSHOT]
      5. io.fabric8.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration$1.run(ActiveMQServiceFactory.java:543)[202:io.fabric8.mq.mq-fabric:1.2.0.SNAPSHOT]
      5 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_65]
      2. java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_65]
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_65]
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_65]
      5. java.lang.Thread.run(Thread.java:745)[:1.7.0_65]
      5 frames