org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser

coderanch.com | 10 months 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 Hate Coding: December 2009

    blogspot.com | 2 years ago
    org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Using the jboss51x created by the archetype, with Maven 2.2.1 and java 1.6 on a Mac, I'm stuck on: {noformat} [INFO] [talledLocalContainer] 21:45:09,037 ERROR [JBossContextConfig] XML error parsing: context.xml [INFO] [talledLocalContainer] org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser [INFO] [talledLocalContainer] at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100) [INFO] [talledLocalContainer] at org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:549) [INFO] [talledLocalContainer] at org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:536) [INFO] [talledLocalContainer] at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279) [INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5436) [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4148) [INFO] [talledLocalContainer] at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310) [INFO] [talledLocalContainer] at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142) [INFO] [talledLocalContainer] at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461) [INFO] [talledLocalContainer] at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [INFO] [talledLocalContainer] at org.jboss.web.deployers.WebModule.start(WebModule.java:97) [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:597) [INFO] [talledLocalContainer] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [INFO] [talledLocalContainer] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [INFO] [talledLocalContainer] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [INFO] [talledLocalContainer] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) [INFO] [talledLocalContainer] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) [INFO] [talledLocalContainer] at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) [INFO] [talledLocalContainer] at $Proxy38.start(Unknown Source) {noformat} which eventually boils down to: {noformat} [INFO] [talledLocalContainer] Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration [INFO] [talledLocalContainer] at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) [INFO] [talledLocalContainer] at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) [INFO] [talledLocalContainer] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source) [INFO] [talledLocalContainer] at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source) [INFO] [talledLocalContainer] at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source) [INFO] [talledLocalContainer] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:92) [INFO] [talledLocalContainer] ... 75 more {noformat}

    JIRA | 5 years ago | Benson Margulies
    org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
  4. 0

    Using the jboss51x created by the archetype, with Maven 2.2.1 and java 1.6 on a Mac, I'm stuck on: {noformat} [INFO] [talledLocalContainer] 21:45:09,037 ERROR [JBossContextConfig] XML error parsing: context.xml [INFO] [talledLocalContainer] org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser [INFO] [talledLocalContainer] at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100) [INFO] [talledLocalContainer] at org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:549) [INFO] [talledLocalContainer] at org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:536) [INFO] [talledLocalContainer] at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279) [INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5436) [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4148) [INFO] [talledLocalContainer] at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310) [INFO] [talledLocalContainer] at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142) [INFO] [talledLocalContainer] at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461) [INFO] [talledLocalContainer] at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [INFO] [talledLocalContainer] at org.jboss.web.deployers.WebModule.start(WebModule.java:97) [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:597) [INFO] [talledLocalContainer] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [INFO] [talledLocalContainer] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [INFO] [talledLocalContainer] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [INFO] [talledLocalContainer] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) [INFO] [talledLocalContainer] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) [INFO] [talledLocalContainer] at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) [INFO] [talledLocalContainer] at $Proxy38.start(Unknown Source) {noformat} which eventually boils down to: {noformat} [INFO] [talledLocalContainer] Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration [INFO] [talledLocalContainer] at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) [INFO] [talledLocalContainer] at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) [INFO] [talledLocalContainer] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source) [INFO] [talledLocalContainer] at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source) [INFO] [talledLocalContainer] at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source) [INFO] [talledLocalContainer] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:92) [INFO] [talledLocalContainer] ... 75 more {noformat}

    JIRA | 5 years ago | Benson Margulies
    org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser

    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.jboss.xb.binding.JBossXBException

      Failed to create a new SAX parser

      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>()
    2. JBoss XML Binding
      UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller
      1. org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:97)
      2. org.jboss.xb.binding.UnmarshallerImpl.<init>(UnmarshallerImpl.java:56)
      3. org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96)
      3 frames
    3. JBoss Application Server Tomcat
      JBossContextConfig.init
      1. org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:549)
      2. org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:536)
      2 frames
    4. Glassfish Core
      StandardContext.start
      1. org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
      2. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
      3. org.apache.catalina.core.StandardContext.init(StandardContext.java:5436)
      4. org.apache.catalina.core.StandardContext.start(StandardContext.java:4148)
      4 frames
    5. JBoss Application Server Tomcat
      TomcatDeployment.performDeploy
      1. org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
      2. org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
      2 frames
    6. JBoss Application Server Server
      WebModule.start
      1. org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
      2. org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
      3. org.jboss.web.deployers.WebModule.start(WebModule.java:97)
      3 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    8. org.jboss.mx
      ReflectedDispatcher.invoke
      1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      1 frame
    9. JBoss Application Server J2SE
      MBeanServerImpl.invoke
      1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      2. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      4 frames
    10. org.jboss.system
      ServiceProxy.invoke
      1. org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
      1 frame
    11. Unknown
      $Proxy38.start
      1. $Proxy38.start(Unknown Source)
      1 frame
    12. org.jboss.system
      StartStopLifecycleAction.installAction
      1. org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
      2. org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
      2 frames
    13. JBoss Microcontainer Dependency
      AbstractControllerContext.install
      1. org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
      2. org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
      3. org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      4. org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      4 frames
    14. org.jboss.system
      ServiceControllerContext.install
      1. org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
      1 frame
    15. JBoss Microcontainer Dependency
      AbstractController.change
      1. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      2. org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      3. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      4. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      5. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      6. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      6 frames
    16. JBoss Application Server System
      ServiceDeployer.deploy
      1. org.jboss.system.ServiceController.doChange(ServiceController.java:688)
      2. org.jboss.system.ServiceController.start(ServiceController.java:460)
      3. org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
      4. org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
      5. org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
      5 frames
    17. JBoss Deployers SPI
      AbstractRealDeployer.deploy
      1. org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
      2. org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      2 frames
    18. JBoss Deployers Impl
      DeployersImpl.install
      1. org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
      2. org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
      3. org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
      4. org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
      5. org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
      5 frames
    19. JBoss Microcontainer Dependency
      AbstractController.change
      1. org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      2. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      3. org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      4. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      5. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      6. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      7. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      7 frames
    20. JBoss Deployers Impl
      MainDeployerImpl.process
      1. org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
      2. org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
      2 frames
    21. JBoss Application Server System
      AbstractProfileService.install
      1. org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
      2. org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
      3. org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
      4. org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
      4 frames
    22. JBoss Microcontainer Dependency
      AbstractController.change
      1. org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      2. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      3. org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      4. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      5. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      6. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      7. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      7 frames
    23. JBoss Application Server System
      AbstractProfileService.activateProfile
      1. org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
      1 frame
    24. org.jboss.system
      ProfileServiceBootstrap.start
      1. org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
      1 frame
    25. org.jboss.bootstrap
      AbstractServerImpl.start
      1. org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
      1 frame
    26. JBoss Application Server Server
      Main$1.run
      1. org.jboss.Main.boot(Main.java:221)
      2. org.jboss.Main$1.run(Main.java:556)
      2 frames
    27. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame