000017651 - JBossXBRuntimeException: Failed to create a new SAX parser while deploying a war - RSA Adaptive Authentication (On Premise)

Document created by RSA Customer Support Employee on Jun 16, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000017651
Applies ToRSA Adaptive Authentication (On Premise) 7.1 P2
Platforms/Operating Systems RSA Product Installed On:  Red Hat 5.5
Application Server: JBoss 5.1.0
JDK 1.6.0_45
IssueJBossXBRuntimeException: Failed to create a new SAX parser  while deploying a war.
Unable to deploy the .war files in JBoss. When try to deploy the backoffice.war file, the following error is displayed in the logs:
 
2014-04-01 22:28:35,718 ERROR [org.jboss.web.tomcat.service.deployers.JBossContextConfig] (main) XML error parsing: context.xml
org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser.
Resolution

This is a KNOWN ISSUE :
https://issues.jboss.org/browse/JBAS-7210

 
TO RESOLVE (comment from above JIRA at JBOSS):

Done a 5.1.0_GA backport.
Check out from svn
svn co http://anonsvn.jboss.org/repos/jbossas/tags/JBoss_5_1_0_GA/
Adapt
following commits & build:
https://source.jboss.org/rdiff/JBossAS6/trunk/tomcat/src/main/java/org/jboss/web/tomcat/service/deployers/JBossContextConfig.java?r1=96881&r2=97418&u&N

https://source.jboss.org/rdiff/JBossAS6/trunk/tomcat/src/main/java/org/jboss/web/tomcat/service/deployers/SecurityActions.java?r1=93962&r2=97418&u&N


From RSA war file. Also check the backoffice jboss-classloading.xml as:

<?xml version="1.0"?>
<classloading xmlns="urn:jboss:classloading:1.0"
    name="backoffice.war"
    domain="backofficeWarDomain"
    export-all="NON_EMPTY"
    import-all="true"
    parent-first="false">
</classloading>



CAUSE :
>> Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration

See http://community.jboss.org/wiki/WhydoigetjavalangClassCastExceptionorgapachexercesparsersXIncludeAwareParserConfigurationinAS-5

 


Legacy Article IDa66632

Attachments

    Outcomes