PQ75253; 5.0.1: CLASSCASTEXCEPTION: ORG.APACHE.XERCES.PARSERS.
 Downloadable files
 
Abstract
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.
 
URL LANGUAGE SIZE(Bytes)
UpdateInstaller US English 7000000
 
 
Installation Instructions
Please review the readme.txt for detailed installation instructions.
 
URL LANGUAGE SIZE(Bytes)
Readme US English 2176
 
Download package
What is DD?
Download RELEASE DATE LANGUAGE SIZE(Bytes) Download Options
PQ75253 9/4/2003 US English 12237 FTP DD
 
Technical support
1-800-IBM-SERV (U.S. Only)
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers WebSphere Application Server Enterprise General Multi-Platform 5.0.1 Edition Independent
Application Servers Runtimes for Java Technology Java SDK
Problems (APARS) fixed
PQ75253
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Java 2 Connectivity (J2C)
Operating system(s): Windows
Software version: 5.0.1
Software edition:
Reference #: 4005574
IBM Group: Software Group
Modified date: Aug 17, 2004