-
1. Re: JBoss 5.0: org.jboss.xb.binding.JBossXBRuntimeException:
glad01 Oct 2, 2007 4:19 PM (in response to kurzweil4)I am experiencing the same issue trying to deploy an ear that runs on 4.2.1.GA but will not deploy on 5.0.
Have you found an answer? -
2. Re: JBoss 5.0: org.jboss.xb.binding.JBossXBRuntimeException:
jbosseval1 Jun 23, 2009 4:22 PM (in response to kurzweil4)have the same issue with the latest jboss as of 6/21/2009.
jboss-5.1.0.GA-jdk6 on RHEL 3
Any ideas?
The default app works fine and I've been able to set up a mysql datasource and use it correctly from a jsp.
This war file is a common one I'm testing and has worked with glassfish.
trace:
2009-06-23 16:08:49,927 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/
2009-06-23 16:08:50,128 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/myApplication
2009-06-23 16:08:50,480 ERROR [org.jboss.web.tomcat.service.deployers.JBossContextConfig] (main) 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:549)
at org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:536)
Caused by: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJBossXBParser.java:97)
at org.jboss.xb.binding.UnmarshallerImpl.(UnmarshallerImpl.java:56)
at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96)
... 73 more
Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
at org.apache.xerces.parsers.SAXParser.(Unknown Source)
at org.apache.xerces.parsers.SAXParser.(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.(Unknown Source)
at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJBossXBParser.java:92)
... 75 more
2009-06-23 16:08:50,925 ERROR [org.apache.catalina.startup.ContextConfig] (main) Marking this application unavailable due to previous error(s) -
3. Re: JBoss 5.0: org.jboss.xb.binding.JBossXBRuntimeException:
jbosseval1 Jun 23, 2009 5:14 PM (in response to kurzweil4)cant update my post for some reason.
Anyways the problem was that there is a conflict between the xerces jar tomcat is using and the one in the app. I removed the xerces jar from the app and the error went away.
see
http://www.nabble.com/org.apache.xerces.parsers.XML11Configuration-cannot-be-cast-to-org.apache.xerces.xni.parser.XMLParserConfiguration-td14108368.html
and http://xerces.apache.org/xerces2-j/faq-xni.html#faq-2