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

JIRA | Benson Margulies | 5 years ago
  1. 0

    I Hate Coding: December 2009

    blogspot.com | 1 year ago
    org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
  2. 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
  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. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.JBossXBRuntimeException

      Failed to create a new SAX parser

      at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller()
    2. JBoss XML Binding
      UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller
      1. org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)[talledLocalContainer]
      1 frame
    3. JBoss Application Server Tomcat
      JBossContextConfig.init
      1. org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:549)[talledLocalContainer]
      2. org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:536)[talledLocalContainer]
      2 frames
    4. Glassfish Core
      StandardContext.start
      1. org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)[talledLocalContainer]
      2. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)[talledLocalContainer]
      3. org.apache.catalina.core.StandardContext.init(StandardContext.java:5436)[talledLocalContainer]
      4. org.apache.catalina.core.StandardContext.start(StandardContext.java:4148)[talledLocalContainer]
      4 frames
    5. JBoss Application Server Tomcat
      TomcatDeployment.performDeploy
      1. org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)[talledLocalContainer]
      2. org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)[talledLocalContainer]
      2 frames
    6. JBoss Application Server Server
      WebModule.start
      1. org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)[talledLocalContainer]
      2. org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)[talledLocalContainer]
      3. org.jboss.web.deployers.WebModule.start(WebModule.java:97)[talledLocalContainer]
      3 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[talledLocalContainer]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[talledLocalContainer]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[talledLocalContainer]
      4. java.lang.reflect.Method.invoke(Method.java:597)[talledLocalContainer]
      4 frames
    8. org.jboss.mx
      ReflectedDispatcher.invoke
      1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)[talledLocalContainer]
      1 frame
    9. JBoss Application Server J2SE
      MBeanServerImpl.invoke
      1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)[talledLocalContainer]
      2. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)[talledLocalContainer]
      3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)[talledLocalContainer]
      4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)[talledLocalContainer]
      4 frames
    10. org.jboss.system
      ServiceProxy.invoke
      1. org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)[talledLocalContainer]
      1 frame
    11. Unknown
      $Proxy38.start
      1. $Proxy38.start(Unknown Source)
      1 frame