org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext-security.xml]; nested exception is java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory

Google Groups | juan zapata | 5 years ago
  1. 0

    Error al cargar la libreria poi-ooxml y adicionales con spring security

    Google Groups | 5 years ago | juan zapata
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext-security.xml]; nested exception is java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory
  2. 0

    Exception while deploying application on jboss 6.1as

    Stack Overflow | 3 years ago | user2906234
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/login-servlet.xml]; nested exception is java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory
  3. 0

    Exception while deploying an ear to WAS server | ibm-was

    solutionscore.com | 1 year ago
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/login-servlet.xml]; nested exception is java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    forum.andromda.org • View topic - Getting started JAVA - installation problems

    andromda.org | 1 year ago
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext-acegi-security.xml]; nested exception is java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory
  6. 0

    Problem with incompatible xml parsers?

    Google Groups | 7 years ago | Bob Silverberg
    java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.3', java.version: '1.6.0_17' Driver info: driver.version: firefox

    3 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. java.lang.ClassCastException

      org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory

      at javax.xml.parsers.DocumentBuilderFactory.newInstance()
    2. Java RT
      DocumentBuilderFactory.newInstance
      1. javax.xml.parsers.DocumentBuilderFactory.newInstance(UnknownSource)[:1.6.0_29]
      1 frame
    3. Spring Beans
      AbstractBeanDefinitionReader.loadBeanDefinitions
      1. org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory(DefaultDocumentLoader.java:89)[:3.0.5.RELEASE]
      2. org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:70)[:3.0.5.RELEASE]
      3. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)[:3.0.5.RELEASE]
      4. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[:3.0.5.RELEASE]
      5. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[:3.0.5.RELEASE]
      6. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)[:3.0.5.RELEASE]
      7. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)[:3.0.5.RELEASE]
      8. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)[:3.0.5.RELEASE]
      8 frames
    4. Spring
      XmlWebApplicationContext.loadBeanDefinitions
      1. org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)[:3.0.5.RELEASE]
      2. org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:93)[:3.0.5.RELEASE]
      2 frames
    5. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[:3.0.5.RELEASE]
      2. org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)[:3.0.5.RELEASE]
      3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)[:3.0.5.RELEASE]
      3 frames
    6. Spring
      ContextLoaderListener.contextInitialized
      1. org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)[:3.0.5.RELEASE]
      2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)[:3.0.5.RELEASE]
      3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)[:3.0.5.RELEASE]
      3 frames
    7. Glassfish Core
      StandardContext.start
      1. org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3369)[:6.1.0.Final]
      2. org.apache.catalina.core.StandardContext.start(StandardContext.java:3828)[:6.1.0.Final]
      2 frames
    8. JBoss Application Server Tomcat
      TomcatDeployment.performDeploy
      1. org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294)[:6.1.0.Final]
      2. org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)[:6.1.0.Final]
      2 frames
    9. JBoss Application Server Server
      WebModule.start
      1. org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:476)[:6.1.0.Final]
      2. org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)[:6.1.0.Final]
      3. org.jboss.web.deployers.WebModule.start(WebModule.java:95)[:6.1.0.Final]
      3 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_29]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_29]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_29]
      4. java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_29]
      4 frames
    11. org.jboss.mx
      ReflectedDispatcher.invoke
      1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)[:6.0.0.GA]
      1 frame
    12. JBoss Application Server J2SE
      MBeanServerImpl.invoke
      1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)[:6.0.0.GA]
      2. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)[:6.0.0.GA]
      3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271)[:6.0.0.GA]
      4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)[:6.0.0.GA]
      4 frames
    13. org.jboss.system
      ServiceProxy.invoke
      1. org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)[:2.2.0.SP2]
      1 frame
    14. Unknown
      $Proxy41.start
      1. $Proxy41.start(Unknown Source)
      1 frame
    15. org.jboss.system
      StartStopLifecycleAction.installAction
      1. org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53)[:2.2.0.SP2]
      2. org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41)[:2.2.0.SP2]
      2 frames
    16. JBoss Microcontainer Dependency
      AbstractControllerContext.install
      1. org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)[jboss-dependency.jar:2.2.0.SP2]
      2. org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)[jboss-dependency.jar:2.2.0.SP2]
      3. org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)[jboss-dependency.jar:2.2.0.SP2]
      4. org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)[jboss-dependency.jar:2.2.0.SP2]
      4 frames
    17. org.jboss.system
      ServiceControllerContext.install
      1. org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301)[:2.2.0.SP2]
      1 frame
    18. JBoss Microcontainer Dependency
      AbstractController.change
      1. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)[jboss-dependency.jar:2.2.0.SP2]
      2. org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)[jboss-dependency.jar:2.2.0.SP2]
      3. org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)[jboss-dependency.jar:2.2.0.SP2]
      4. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)[jboss-dependency.jar:2.2.0.SP2]
      5. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)[jboss-dependency.jar:2.2.0.SP2]
      6. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)[jboss-dependency.jar:2.2.0.SP2]
      7. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)[jboss-dependency.jar:2.2.0.SP2]
      7 frames
    19. JBoss Application Server System
      ServiceDeployer.deploy
      1. org.jboss.system.ServiceController.doChange(ServiceController.java:671)[:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20110816)]
      2. org.jboss.system.ServiceController.start(ServiceController.java:443)[:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20110816)]
      3. org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:189)[:6.1.0.Final]
      4. org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:102)[:6.1.0.Final]
      5. org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:49)[:6.1.0.Final]
      5 frames
    20. JBoss Deployers SPI
      AbstractRealDeployer.deploy
      1. org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:63)[:2.2.2.GA]
      2. org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)[:2.2.2.GA]
      2 frames
    21. JBoss Deployers Impl
      DeployersImpl.install
      1. org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)[:2.2.2.GA]
      2. org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832)[:2.2.2.GA]
      3. org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550)[:2.2.2.GA]
      4. org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571)[:2.2.2.GA]
      5. org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491)[:2.2.2.GA]
      5 frames
    22. JBoss Microcontainer Dependency
      AbstractController.change
      1. org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)[jboss-dependency.jar:2.2.0.SP2]
      2. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)[jboss-dependency.jar:2.2.0.SP2]
      3. org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)[jboss-dependency.jar:2.2.0.SP2]
      4. org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)[jboss-dependency.jar:2.2.0.SP2]
      5. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)[jboss-dependency.jar:2.2.0.SP2]
      6. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)[jboss-dependency.jar:2.2.0.SP2]
      7. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)[jboss-dependency.jar:2.2.0.SP2]
      8. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)[jboss-dependency.jar:2.2.0.SP2]
      8 frames
    23. JBoss Deployers Impl
      MainDeployerImpl.process
      1. org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983)[:2.2.2.GA]
      2. org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076)[:2.2.2.GA]
      3. org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)[:2.2.2.GA]
      3 frames
    24. JBoss Application Server System
      MainDeployerPlugin.process
      1. org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106)[:6.1.0.Final]
      1 frame
    25. org.jboss.profileservice
      ProfileDeployAction.installActionInternal
      1. org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143)[:0.2.2]
      2. org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151)[:0.2.2]
      3. org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94)[:0.2.2]
      3 frames
    26. JBoss Microcontainer Kernel
      InstallsAwareAction.installAction
      1. org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)[jboss-kernel.jar:2.2.0.SP2]
      2. org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)[jboss-kernel.jar:2.2.0.SP2]
      2 frames
    27. JBoss Microcontainer Dependency
      AbstractController.change
      1. org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)[jboss-dependency.jar:2.2.0.SP2]
      2. org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)[jboss-dependency.jar:2.2.0.SP2]
      3. org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)[jboss-dependency.jar:2.2.0.SP2]
      4. org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)[jboss-dependency.jar:2.2.0.SP2]
      5. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)[jboss-dependency.jar:2.2.0.SP2]
      6. org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)[jboss-dependency.jar:2.2.0.SP2]
      7. org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)[jboss-dependency.jar:2.2.0.SP2]
      8. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)[jboss-dependency.jar:2.2.0.SP2]
      9. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)[jboss-dependency.jar:2.2.0.SP2]
      10. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)[jboss-dependency.jar:2.2.0.SP2]
      11. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)[jboss-dependency.jar:2.2.0.SP2]
      11 frames
    28. org.jboss.profileservice
      AbstractProfileService.activateProfile
      1. org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190)[:0.2.2]
      2. org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87)[:0.2.2]
      3. org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215)[:0.2.2]
      4. org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159)[:0.2.2]
      5. org.jboss.profileservice.AbstractProfileService.activateProfile(AbstractProfileService.java:154)[:0.2.2]
      5 frames
    29. JBoss Application Server System
      DeploymentScanner.addURL
      1. org.jboss.system.tools.ProfileServiceToolsFacade.addURI(ProfileServiceToolsFacade.java:233)[:6.1.0.Final]
      2. org.jboss.system.tools.LegacyDeploymentScannerAdapter.addURL(LegacyDeploymentScannerAdapter.java:140)[:6.1.0.Final]
      3. org.jboss.system.tools.DeploymentScanner.addURL(DeploymentScanner.java:91)[:6.1.0.Final]
      4. org.jboss.system.tools.DeploymentScanner.addURL(DeploymentScanner.java:83)[:6.1.0.Final]
      4 frames
    30. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_29]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_29]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_29]
      4. java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_29]
      4 frames
    31. org.jboss.mx
      ReflectedDispatcher.invoke
      1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)[:6.0.0.GA]
      1 frame
    32. JBoss Application Server J2SE
      MBeanServerImpl.invoke
      1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)[:6.0.0.GA]
      2. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)[:6.0.0.GA]
      3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271)[:6.0.0.GA]
      4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)[:6.0.0.GA]
      4 frames
    33. JBoss Application Server System JMX
      MBeanServerWrapper.invoke
      1. org.jboss.system.server.jmx.MBeanServerWrapper.invoke(MBeanServerWrapper.java:138)[:6.1.0.Final]
      1 frame
    34. Java RT
      Thread.run
      1. javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)[:1.6.0_29]
      2. javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)[:1.6.0_29]
      3. javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)[:1.6.0_29]
      4. javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1360)[:1.6.0_29]
      5. javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)[:1.6.0_29]
      6. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_29]
      7. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_29]
      8. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_29]
      9. java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_29]
      10. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303)[:1.6.0_29]
      11. sun.rmi.transport.Transport$1.run(Transport.java:159)[:1.6.0_29]
      12. java.security.AccessController.doPrivileged(Native Method)[:1.6.0_29]
      13. sun.rmi.transport.Transport.serviceCall(Transport.java:155)[:1.6.0_29]
      14. sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)[:1.6.0_29]
      15. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)[:1.6.0_29]
      16. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)[:1.6.0_29]
      17. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_29]
      18. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_29]
      19. java.lang.Thread.run(Thread.java:662)[:1.6.0_29]
      19 frames