3 Replies Latest reply on Jun 23, 2009 5:14 PM by jbosseval1

    JBoss 5.0: org.jboss.xb.binding.JBossXBRuntimeException: Fai

    Ryan Daniels Newbie

      When I deploy my EAR to JBoss 5.0, I get the following error:

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

      I did not have this issue with 4.2.1. I followed the advice from the following:


      Still did not work. Any ideas?


        • 1. Re: JBoss 5.0: org.jboss.xb.binding.JBossXBRuntimeException:
          David Glazier Newbie

          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 Newbie

            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.

            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 Newbie

              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.

              and http://xerces.apache.org/xerces2-j/faq-xni.html#faq-2