org.jboss.xb.binding.JBossXBRuntimeException

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.

  • Since Confluence 3.1.x bundles it own version of the xerces parser (xercesImpl-2.9.1.jar specifically), attempting to start it up will result in this error: {noformat}ERROR [JBossContextConfig] XML error parsing: context.xml org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100) at org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:552) at org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:538) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279) {noformat} Attempting to remove Confluence's version and fallback on the version bundled with JBoss will result in the following error during as the user attempts to progress through the Confluence Setup Wizard: {noformat}com.atlassian.plugin.event.NotificationException: com.atlassian.plugin.osgi.container.OsgiContainerException: Detected an incompatible version of Apache Xerces on the classpath. If using Tomcat, you may have an old version of Xerces in $TOMCAT_HOME/common/lib/endorsed that will need to be removed. at com.atlassian.plugin.event.impl.DefaultPluginEventManager.broadcast(DefaultPluginEventManager.java:85) at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:127) {noformat} The above exception is thrown due newer versions of the atlassian-plugin module that is stricter about older versions of xerces in the classpath (see https://studio.atlassian.com/browse/PLUG-414). In order to support JBoss, we need a context that is isolated from their WAR classloader. See https://jira.jboss.org/jira/browse/JBAS-7210. JIRA 4.0 has the same issue and is also waiting for this fix.
    via by Dave Loeng [Atlassian],
  • Since Confluence 3.1.x bundles it own version of the xerces parser (xercesImpl-2.9.1.jar specifically), attempting to start it up will result in this error: {noformat}ERROR [JBossContextConfig] XML error parsing: context.xml org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100) at org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:552) at org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:538) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279) {noformat} Attempting to remove Confluence's version and fallback on the version bundled with JBoss will result in the following error during as the user attempts to progress through the Confluence Setup Wizard: {noformat}com.atlassian.plugin.event.NotificationException: com.atlassian.plugin.osgi.container.OsgiContainerException: Detected an incompatible version of Apache Xerces on the classpath. If using Tomcat, you may have an old version of Xerces in $TOMCAT_HOME/common/lib/endorsed that will need to be removed. at com.atlassian.plugin.event.impl.DefaultPluginEventManager.broadcast(DefaultPluginEventManager.java:85) at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:127) {noformat} The above exception is thrown due newer versions of the atlassian-plugin module that is stricter about older versions of xerces in the classpath (see https://studio.atlassian.com/browse/PLUG-414). In order to support JBoss, we need a context that is isolated from their WAR classloader. See https://jira.jboss.org/jira/browse/JBAS-7210. JIRA 4.0 has the same issue and is also waiting for this fix.
    via by Dave Loeng [Atlassian],
  • I Hate Coding: December 2009
    via by Unknown author,
  • 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}
    via by Benson Margulies,
  • 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}
    via by Benson Margulies,
    • org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100) at org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:552) at org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:538)
    No Bugmate found.