A ClassCastException is thrown from J2C when using custom
XML parsers.
Download Description
jdbc/wmmDS : java.lang.ClassCastException:
org.apache.xerces.parsers.IntegratedParserConfiguration
WebSphere xerces specifies
org.apache.xerces.parsers.IntegratedParserConfiguration in its
org.apache.xerces.parsers.IntegratedParserConfiguration file.
Since ObjectFactory.getObject uses the context classloader, Portal gets
your WebSphere's configuration file and it loads that class which only
exists in WebSphere's impl (not in the runtime xerces). To fix this,
com.ibm.ws.xml.ParserFactory needs to be extended to have a new method
that just returns the SAXParser (doing the entire operation with the
context classloader set to the runtime classloader) instead of the current
method which returns the SAXParserFactory --- then the j2c code will need
to be modified to use this new method.
USERS AFFECTED: WebSphere Application Server 5.0 users of the Connector
Architecture ( J2C ), Java Database Connectivity ( JDBC ), or Java Message
Service ( JMS ) Connections, with a different XML parser from the one that
is shipped with WebSphere 5.0.
RECOMMENDATION: The J2C runtime was loading the XML Parser improperly,
which can result in a ClassCastException with different versions of
xerces.jar (or other XML parsers).
Prerequisites
Please download the UpdateInstaller below to install this fix.