[Installation, Configuration & Deployment] - Xerces SAX Error in JBoss
by bertnz
Hi everybody.
I am currently trying to upgrade an old app from JBoss 3.2.5 to the latest version in the hope of breathing some new life into it.
I have made a number of changes suggested by the upgrade guide (changing my Datasource config etc.), however when I deploy my app am am getting some errors related apparently to xerces.
I get this error if I try and deploy one web-app.
14:30:08,354 ERROR [Digester] Digester.getParser:
java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
I get this error when I try and access the other web-app (which seems to deploy ok). I have checked the org.apache.xerces.parsers.SAXParser class I am using and it definitely implements XMLReader).
org.jdom.JDOMException: Could not load default SAX parser: org.apache.xerces.parsers.SAXParser: SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement XMLReader
I also have an ear which seems to deploy ok.
I am using JBoss 4.0.5 and have recompiled the application against the xercesimpl.jar and xml-api.jar files found in JBoss?s lib/endorsed folder. There are no other versions of xerces in any of my ears or wars ? just that version. My initial research leads me to believe this is a class-loading issue and that maybe my default sax parser is incorrect?
Could it be that Java 1.5 (which i am using) loads another sax parser or maybe one of JBoss's subcomponents (Tomcat) has a different version? I have no idea how to continue.
Anybody got any ideas?
Thanks for your time.
Robert Hughes
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016559#4016559
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016559
19Â years, 2Â months
[Tomcat, HTTPD, Servlets & JSP] - JSF implementation issues in 5.0.0.Beta1
by jason.dobies
We are seeing a conflict in trying to bundle a JSF implementation into our application when running in AS 5.0.0.Beta1. In order to get this to work, we had to comment out the following lines from the jbossweb.deployer/conf/web.xml:
<listener-class>org.jboss.web.jsf.integration.config.JBossJSFConfigureListener</listener-class>
<listener-class>com.sun.faces.application.WebappLifecycleListener</listener-class>
In particular, the JARs being included in our application are the Sun RI JSF and EL JARs:
jsf-impl-1.1_02.jar
jsf-api-1.1_02.jar
el-api-1.0.jar
el-ri-1.0.jar
Not surprisingly, I want the configuration for my application to not affect the overall JBoss configuration. Is there something I'm missing in my application to override these listeners? More generally, is there a different way of introducing my own application level JSF implementation?
Thanks
- J
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016552#4016552
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016552
19Â years, 2Â months