IBM Support

PH15728: CDI NOT PROTECTING THE THREAD CONTEXT CLASSLOADER AND LOADING A WRONG VERSION OF XML PARSER

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

APAR status

  • Closed as program error.

Error description

  • When the application packages its own version of the XML parser
    within the application, the below error is generated during the
    application startup:
    
    javax.xml.parsers.FactoryConfigurationError: Provider
    javax.xml.parsers.DocumentBuilderFactory could not be
    instantiated: java.util.ServiceConfigurationError:
    javax.xml.parsers.DocumentBuilderFactory: Provider
    org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not a subtype
    at javax.xml.parsers.DocumentBuilderFactory
       .newInstance(UnknownSource)
    at org.apache.webbeans.xml.XMLUtil
       .getSpecStrictRootElement(XMLUtil.java:166)
    at org.apache.webbeans.xml.WebBeansXMLConfigurator
       .configureSpecSpecific(WebBeansXMLConfigurator.java:270)
    at org.apache.webbeans.xml.WebBeansXMLConfigurator
       .configure(WebBeansXMLConfigurator.java:185)
    at org.apache.webbeans.config.BeansDeployer
       .deployFromXML(BeansDeployer.java:591)
    at org.apache.webbeans.config.BeansDeployer
        .deploy(BeansDeployer.java:162)
    at org.apache.webbeans.lifecycle.AbstractLifeCycle
        .startApplication(AbstractLifeCycle.java:124)
    at org.apache.webbeans.web.lifecycle.WebContainerLifecycle
        .startApplication(WebContainerLifecycle.java:77)
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: When the application packages its own   *
    *                      version of the XML parser               *
    *                      within the application a                *
    *                      configuration error occurs              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When the application packages its own version of the XML parser
    within the application, the below error is generated during the
    application startup:
    javax.xml.parsers.FactoryConfigurationError: Provider
    javax.xml.parsers.DocumentBuilderFactory could not be
    instantiated: java.util.ServiceConfigurationError:
    javax.xml.parsers.DocumentBuilderFactory: Provider
    org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not a subtype
    at javax.xml.parsers.DocumentBuilderFactory
    .newInstance(UnknownSource)
    at org.apache.webbeans.xml.XMLUtil
    .getSpecStrictRootElement(XMLUtil.java:166)
    at org.apache.webbeans.xml.WebBeansXMLConfigurator
    .configureSpecSpecific(WebBeansXMLConfigurator.java:270)
    at org.apache.webbeans.xml.WebBeansXMLConfigurator
    .configure(WebBeansXMLConfigurator.java:185)
    at org.apache.webbeans.config.BeansDeployer
    .deployFromXML(BeansDeployer.java:591)
    at org.apache.webbeans.config.BeansDeployer
    .deploy(BeansDeployer.java:162)
    at org.apache.webbeans.lifecycle.AbstractLifeCycle
    .startApplication(AbstractLifeCycle.java:124)
    at org.apache.webbeans.web.lifecycle.WebContainerLifecycle
    .startApplication(WebContainerLifecycle.java:77)
    

Problem conclusion

  • The code was patched to prevent the application's parser
    leaking into the server's code.
    
    The fix for this APAR is targeted for inclusion in fix pack
    8.5.5.17 and 9.0.5.3.  For more information, see
    'Recommended
    Updates
    for
    WebSphere Application Server':
    http://www.ibm.com/support/docview.wss?
    rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH15728

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-08-19

  • Closed date

    2020-01-07

  • Last modified date

    2020-01-07

  • 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



Document information

More support for: WebSphere Application Server
General

Software version: 850

Reference #: PH15728

Modified date: 07 January 2020