1 Reply Latest reply on Jan 17, 2012 2:03 AM by Ondrej Zizka

    Conflict between JBoss and Oracle xml parsers : Trinidad faces

    bkolloju Newbie

      I am trying deploy a simple Trinidad faces web application JBoss 5.1

       

      I have included bunch of libs into my web application's WEB-INF/lib folder including xmlparserv2.jar xml.jar from Oracle. If I don't include these jars it throws error saying No Class found: oracle.xml.parser.v2.DOMParser. If I include them facing the following exception during deployment of the war (web application), could you please provide some help to avoid this error?

       

      17:45:24,781 ERROR [[/trini-test]] Exception sending context initialized event to listener instance of class org.jboss.

      eb.jsf.integration.config.JBossJSFConfigureListener

      java.lang.ClassCastException: oracle.xml.jaxp.JXSAXParserFactory cannot be cast to javax.xml.parsers.SAXParserFactory

              at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:128)

              at com.sun.faces.config.ConfigureListener$WebXmlProcessor.getConfiguredFactory(ConfigureListener.java:698)

              at com.sun.faces.config.ConfigureListener$WebXmlProcessor.scanForFacesServlet(ConfigureListener.java:670)

              at com.sun.faces.config.ConfigureListener$WebXmlProcessor.<init>(ConfigureListener.java:644)

              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:156)

              at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.

      ava:60)

              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)

              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)

              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)

              at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

              at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

              at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       

      Regards

      Bhaskar