PQ75253: JAVA.LANG.CLASSCASTEXCEPTION: ORG.APACHE.XERCES.PARSERS. INTEGRATEDPARSERCONFIGURATION

 A fix is available

PQ75253; 5.0.1: CLASSCASTEXCEPTION: ORG.APACHE.XERCES.PARSERS.



APAR status
Closed as program error.

Error 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.
Local fix Problem summary
****************************************************************
* 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 .                 *
****************************************************************
* PROBLEM DESCRIPTION: A ClassCastException is thrown from     *
*                      J2C when using custom XML parsers.      *
****************************************************************
* 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).
Problem conclusion
Added proper method on WAS.runtime's ParserFactory to facilitate
loading the xml parsers correctly, and prevent the
ClassCastException (also changed the J2C call to ParserFactory).
The code changes were made under internal defect 168975.
Temporary fix
Sent test i-fix to customer
Comments
APAR information
APAR number PQ75253
Reported component name WAS BASE 5.0
Reported component ID 5630A3600
Reported release 00W
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Special Attention NoSpecatt
Submitted date 2003-06-13
Closed date 2003-08-13
Last modified date 2003-08-13

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
J2C          

Publications Referenced

Fix information

Applicable component levels
R003 PSY    UP
R00A PSY    UP
R00H PSY    UP
R00I PSY    UP
R00P PSY    UP
R00S PSY    UP
R00W PSY    UP


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s):
Software version: 00W
Software edition:
Reference #: PQ75253
IBM Group: Software Group
Modified date: Aug 13, 2003