[jboss-dev-forums] [JBoss AS 7 Development] - How to use resin as XML parser in Jboss 7 standalone?

frank moss do-not-reply at jboss.com
Sat Mar 31 11:03:43 EDT 2012


frank moss [https://community.jboss.org/people/frankmoss] created the discussion

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

To view the discussion, visit: https://community.jboss.org/message/727582#727582

--------------------------------------------------------------
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:

15:47:25,725 INFO   https://community.jboss.org/message/727582#727582#727582/stdout How to use resin as XML parser in Jboss 7 standalone? (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)  https://community.jboss.org/message/727582#727582#727582/classes.jar:1.6.0_29 How to use resin as XML parser in Jboss 7 standalone?
          at com.sun.faces.util.Util.createSAXParserFactory(Util.java:291)  https://community.jboss.org/message/727582#727582#727582/jsf-impl-2.1.7-jbossorg-2.jar: How to use resin as XML parser in Jboss 7 standalone?
          at com.sun.faces.config.ConfigureListener$WebXmlProcessor.getConfiguredFactory(ConfigureListener.java:875)  https://community.jboss.org/message/727582#727582#727582/jsf-impl-2.1.7-jbossorg-2.jar: How to use resin as XML parser in Jboss 7 standalone?
          at com.sun.faces.config.ConfigureListener$WebXmlProcessor.scanForFacesServlet(ConfigureListener.java:811)  https://community.jboss.org/message/727582#727582#727582/jsf-impl-2.1.7-jbossorg-2.jar: How to use resin as XML parser in Jboss 7 standalone?
          at com.sun.faces.config.ConfigureListener$WebXmlProcessor.(ConfigureListener.java:768)  https://community.jboss.org/message/727582#727582#727582/jsf-impl-2.1.7-jbossorg-2.jar: How to use resin as XML parser in Jboss 7 standalone?
          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:178)  https://community.jboss.org/message/727582#727582#727582/jsf-impl-2.1.7-jbossorg-2.jar: How to use resin as XML parser in Jboss 7 standalone?
          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)  https://community.jboss.org/message/727582#727582#727582/classes.jar:1.6.0_29 How to use resin as XML parser in Jboss 7 standalone?
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  https://community.jboss.org/message/727582#727582#727582/classes.jar:1.6.0_29 How to use resin as XML parser in Jboss 7 standalone?
          at java.lang.Thread.run(Thread.java:680)  https://community.jboss.org/message/727582#727582#727582/classes.jar:1.6.0_29 How to use resin as XML parser in Jboss 7 standalone?


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)  https://community.jboss.org/message/727582#727582#727582/classes.jar:1.6.0_29 How to use resin as XML parser in Jboss 7 standalone?
          at com.sun.faces.util.Util.createSAXParserFactory(Util.java:291)  https://community.jboss.org/message/727582#727582#727582/jsf-impl-2.1.7-jbossorg-2.jar: How to use resin as XML parser in Jboss 7 standalone?
          at com.sun.faces.config.ConfigureListener$WebXmlProcessor.getConfiguredFactory(ConfigureListener.java:875)  https://community.jboss.org/message/727582#727582#727582/jsf-impl-2.1.7-jbossorg-2.jar: How to use resin as XML parser in Jboss 7 standalone?
          at com.sun.faces.config.ConfigureListener$WebXmlProcessor.scanForFacesServlet(ConfigureListener.java:811)  https://community.jboss.org/message/727582#727582#727582/jsf-impl-2.1.7-jbossorg-2.jar: How to use resin as XML parser in Jboss 7 standalone?
          at com.sun.faces.config.ConfigureListener$WebXmlProcessor.(ConfigureListener.java:768)  https://community.jboss.org/message/727582#727582#727582/jsf-impl-2.1.7-jbossorg-2.jar: How to use resin as XML parser in Jboss 7 standalone?
          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:178)  https://community.jboss.org/message/727582#727582#727582/jsf-impl-2.1.7-jbossorg-2.jar: How to use resin as XML parser in Jboss 7 standalone?
          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)  https://community.jboss.org/message/727582#727582#727582/classes.jar:1.6.0_29 How to use resin as XML parser in Jboss 7 standalone?
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  https://community.jboss.org/message/727582#727582#727582/classes.jar:1.6.0_29 How to use resin as XML parser in Jboss 7 standalone?
          at java.lang.Thread.run(Thread.java:680)  https://community.jboss.org/message/727582#727582#727582/classes.jar:1.6.0_29 How to use resin as XML parser in Jboss 7 standalone?



Any tips?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/727582#727582]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120331/538043e5/attachment.html 


More information about the jboss-dev-forums mailing list