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.
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)
None
Users of IBM WebSphere Application Server with CDI applications
WebSphere Application Server fails to instantiate class SAXParserFactory
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.
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)
The code has been updated to ensure it is using the correct context class loader.
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 |
|---|---|---|---|
| 9.0.0.7-WS-WASProd-IFPH01368 | 08-10-2018 | 280123 | FC |
Problems Solved
PH01368
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).
Problems (APARS) fixed
Was this topic helpful?
Document Information
Modified date:
13 August 2018
UID
ibm10725809