1 Reply Latest reply on Dec 27, 2012 12:16 PM by frank moss

    How to use resin as XML parser in Jboss 7 standalone?

    frank moss Newbie

      We use XML transformations and our stylesheets make heavy use of resin specific code (java extensions). I was wondering how to use resin.jar (where the respective parsers reside)? I specify the SAX parser with a system property: javax.xml.parsers.SAXParserFactory=com.caucho.xml.parsers.XmlSAXParserFactory

       

      I have tried to put this jar in

      • "standalone/lib/"
      • "standalone/lib/ext"
      • "standalone/deployments"
      • "standalone/da.war/WEB-INF/lib"

       

      But all of it fails. Exception is below:

       

      {code}

      15:47:25,725 INFO  [stdout] (MSC service thread 1-2) Startup initialization is complete.

      15:47:25,763 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/kurs]] (MSC service thread 1-2) Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: javax.xml.parsers.FactoryConfigurationError: Provider com.caucho.xml.parsers.XmlSAXParserFactory not found

                at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:134) [classes.jar:1.6.0_29]

                at com.sun.faces.util.Util.createSAXParserFactory(Util.java:291) [jsf-impl-2.1.7-jbossorg-2.jar:]

                at com.sun.faces.config.ConfigureListener$WebXmlProcessor.getConfiguredFactory(ConfigureListener.java:875) [jsf-impl-2.1.7-jbossorg-2.jar:]

                at com.sun.faces.config.ConfigureListener$WebXmlProcessor.scanForFacesServlet(ConfigureListener.java:811) [jsf-impl-2.1.7-jbossorg-2.jar:]

                at com.sun.faces.config.ConfigureListener$WebXmlProcessor.<init>(ConfigureListener.java:768) [jsf-impl-2.1.7-jbossorg-2.jar:]

                at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:178) [jsf-impl-2.1.7-jbossorg-2.jar:]

                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_29]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_29]

                at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_29]

       

       

      15:47:25,787 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/kurs]] (MSC service thread 1-2) Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: javax.xml.parsers.FactoryConfigurationError: Provider com.caucho.xml.parsers.XmlSAXParserFactory not found

                at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:134) [classes.jar:1.6.0_29]

                at com.sun.faces.util.Util.createSAXParserFactory(Util.java:291) [jsf-impl-2.1.7-jbossorg-2.jar:]

                at com.sun.faces.config.ConfigureListener$WebXmlProcessor.getConfiguredFactory(ConfigureListener.java:875) [jsf-impl-2.1.7-jbossorg-2.jar:]

                at com.sun.faces.config.ConfigureListener$WebXmlProcessor.scanForFacesServlet(ConfigureListener.java:811) [jsf-impl-2.1.7-jbossorg-2.jar:]

                at com.sun.faces.config.ConfigureListener$WebXmlProcessor.<init>(ConfigureListener.java:768) [jsf-impl-2.1.7-jbossorg-2.jar:]

                at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:178) [jsf-impl-2.1.7-jbossorg-2.jar:]

                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_29]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_29]

                at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_29]

      {code}

      Any tips?