PQ75253: JAVA.LANG.CLASSCASTEXCEPTION: ORG.APACHE.XERCES.PARSERS. INTEGRATEDPARSERCONFIGURATION | |||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||
![]() 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 customerComments
APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
Publications Referenced
|
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
(C) Copyright IBM Corporation 2000, 2008. All Rights Reserved.