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

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  (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)

          at com.sun.faces.util.Util.createSAXParserFactory(Util.java:291)

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

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

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

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

          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)

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

          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)

          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)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

          at java.lang.Thread.run(Thread.java:680)

 

 

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)

          at com.sun.faces.util.Util.createSAXParserFactory(Util.java:291)

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

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

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

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

          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)

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

          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)

          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)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

          at java.lang.Thread.run(Thread.java:680)

 

{code}

Any tips?