IBM Support

PH01368:"saxparserfactory could not be instantiated"

Download


Abstract

"saxparserfactory could not be instantiated"

Download Description

PH01368 resolves the following problem:

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.(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:
None

USERS AFFECTED:
Users of IBM WebSphere Application Server with CDI applications

PROBLEM DESCRIPTION:
WebSphere Application Server fails to instantiate class SAXParserFactory

RECOMMENDATION:
None

PROBLEM SUMMARY:
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.(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

Prerequisites

None

Installation Instructions

Please review the readme.txt for detailed installation instructions.

URL SIZE(Bytes)
V90 Readme 5762

 

Download Package

 

DOWNLOAD RELEASE DATE SIZE(Bytes)

DOWNLOAD Options

What is Fix Central(FC)?

9.0.0.7-WS-WASProd-IFPH01368 08-10-2018 280123 FC

 

Problems Solved

PH01368

On

Technical Support

Contact IBM Support using SR (http://www.ibm.com/software/support/probsub.html), visit the support web site, or contact 1-800-IBM-SERV (U.S. only).

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Component":"General","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.0.0.7;9.0.0.8","Edition":"Base,Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
13 August 2018

UID

ibm10725809