Fixes are available
PH01368:"saxparserfactory could not be instantiated"
9.0.0.10: WebSphere Application Server traditional V9.0 Fix Pack 10
9.0.0.11: WebSphere Application Server traditional V9.0 Fix Pack 11
9.0.5.0: WebSphere Application Server traditional Version 9.0.5 Refresh Pack
9.0.5.1: WebSphere Application Server traditional Version 9.0.5 Fix Pack 1
9.0.5.2: WebSphere Application Server traditional Version 9.0.5 Fix Pack 2
9.0.5.3: WebSphere Application Server traditional Version 9.0.5 Fix Pack 3
APAR status
Closed as program error.
Error description
Thread context class loader exception when creating an XML parser factory: Caused by: javax.xml.parsers.FactoryConfigurationError: Provider javax.xml.parsers.SAXParserFactory could not be instantiated: java.util.ServiceConfigurationError: javax.xml.parsers.SAXParserFactory: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not a subtype at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source) at com.ibm.ws.amm.scan.context.WARScannerContext.<clinit>(WARScanne rContext.java:223) at com.ibm.ws.jsf.ext.JSFInjectionClassListCollaborator.getFacesCon figClasses(JSFInjectionClassListCollaborator.java:145) at com.ibm.ws.jsf.ext.JSFInjectionClassListCollaborator.getInjectio nClasses(JSFInjectionClassListCollaborator.java:123) at com.ibm.ws.cdi.classic.CDIArchiveImpl.getInjectionClassList(CDIA rchiveImpl.java:213) at com.ibm.ws.cdi.impl.weld.BeanDeploymentArchiveImpl.initializeJEE ComponentClasses(BeanDeploymentArchiveImpl.java:460) at com.ibm.ws.cdi.impl.weld.BeanDeploymentArchiveImpl.scan(BeanDepl oymentArchiveImpl.java:382)
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: Users of IBM WebSphere Application Server * * with CDI applications * **************************************************************** * PROBLEM DESCRIPTION: WebSphere Application Server fails to * * instantiate class SAXParserFactory * **************************************************************** * RECOMMENDATION: * **************************************************************** The problem occurs while processing CDI annotations, when the wrong context class loader is in use. The following exception is seen in the logs: Caused by: javax.xml.parsers.FactoryConfigurationError: Provider javax.xml.parsers.SAXParserFactory could not be instantiated: java.util.ServiceConfigurationError: javax.xml.parsers.SAXParserFactory: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not a subtype at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source) at com.ibm.ws.amm.scan.context.WARScannerContext.<clinit>(WARScanne rContext.java:223) at com.ibm.ws.jsf.ext.JSFInjectionClassListCollaborator.getFacesCon figClasses(JSFInjectionClassListCollaborator.java:145) at com.ibm.ws.jsf.ext.JSFInjectionClassListCollaborator.getInjectio nClasses(JSFInjectionClassListCollaborator.java:123) at com.ibm.ws.cdi.classic.CDIArchiveImpl.getInjectionClassList(CDIA rchiveImpl.java:213) at com.ibm.ws.cdi.impl.weld.BeanDeploymentArchiveImpl.initializeJEE ComponentClasses(BeanDeploymentArchiveImpl.java:460) at com.ibm.ws.cdi.impl.weld.BeanDeploymentArchiveImpl.scan(BeanDepl oymentArchiveImpl.java:382)
Problem conclusion
The code has been updated to ensure it is using the correct context class loader. The fix for this APAR is currently targeted for inclusion in fix pack 9.0.0.10. Please refer to the Recommended Updates page for delivery information: http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
Temporary fix
Comments
APAR Information
APAR number
PH01368
Reported component name
WEBS APP SERV N
Reported component ID
5724H8800
Reported release
900
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2018-08-06
Closed date
2018-08-10
Last modified date
2018-08-10
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
WEBS APP SERV N
Fixed component ID
5724H8800
Applicable component levels
R900 PSY
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
02 November 2021