IBM Support

PH01368: "SAXPARSERFACTORY COULD NOT BE INSTANTIATED"

Subscribe

You can track all active APARs for this component.

 

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

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