IBM Support

PI83901: THE CONTEXT CLASSLOADER IS NOT GETTING SET PROPERLY WHEN LOADING CDI EXTENSIONS AT APP STARTUP

Fixes are available

9.0.0.6: WebSphere Application Server traditional V9.0 Fix Pack 6
9.0.0.7: WebSphere Application Server traditional V9.0 Fix Pack 7
17.0.0.3: WebSphere Application Server Liberty 17.0.0.3
17.0.0.4: WebSphere Application Server Liberty 17.0.0.4
18.0.0.1: WebSphere Application Server Liberty 18.0.0.1
18.0.0.2: WebSphere Application Server Liberty 18.0.0.2
9.0.0.8: WebSphere Application Server traditional V9.0 Fix Pack 8
9.0.0.9: WebSphere Application Server traditional V9.0 Fix Pack 9
18.0.0.3: WebSphere Application Server Liberty 18.0.0.3
9.0.0.10: WebSphere Application Server traditional V9.0 Fix Pack 10
18.0.0.4: WebSphere Application Server Liberty 18.0.0.4
19.0.0.1: WebSphere Application Server Liberty 19.0.0.1
19.0.0.2: WebSphere Application Server Liberty 19.0.0.2
19.0.0.3: WebSphere Application Server Liberty 19.0.0.3
9.0.0.11: WebSphere Application Server traditional V9.0 Fix Pack 11
19.0.0.4: WebSphere Application Server Liberty 19.0.0.4
19.0.0.5: WebSphere Application Server Liberty 19.0.0.5
9.0.5.0: WebSphere Application Server traditional Version 9.0.5 Refresh Pack
19.0.0.6: WebSphere Application Server Liberty 19.0.0.6
19.0.0.7: WebSphere Application Server Liberty 19.0.0.7
19.0.0.8: WebSphere Application Server Liberty 19.0.0.8
9.0.5.1: WebSphere Application Server traditional Version 9.0.5 Fix Pack 1
19.0.0.9: WebSphere Application Server Liberty 19.0.0.9
19.0.0.10: WebSphere Application Server Liberty 19.0.0.10
19.0.0.11: WebSphere Application Server Liberty 19.0.0.11
9.0.5.2: WebSphere Application Server traditional Version 9.0.5 Fix Pack 2
19.0.0.12: WebSphere Application Server Liberty 19.0.0.12
20.0.0.1: WebSphere Application Server Liberty 20.0.0.1
20.0.0.2: WebSphere Application Server Liberty 20.0.0.2
9.0.5.3: WebSphere Application Server traditional Version 9.0.5 Fix Pack 3
20.0.0.3: WebSphere Application Server Liberty 20.0.0.3
20.0.0.4: WebSphere Application Server Liberty 20.0.0.4
20.0.0.5: WebSphere Application Server Liberty 20.0.0.5
20.0.0.6: WebSphere Application Server Liberty 20.0.0.6
9.0.5.4: WebSphere Application Server traditional Version 9.0.5 Fix Pack 4
20.0.0.7: WebSphere Application Server Liberty 20.0.0.7
20.0.0.8: WebSphere Application Server Liberty 20.0.0.8
9.0.5.5: WebSphere Application Server traditional Version 9.0.5 Fix Pack 5
20.0.0.9: WebSphere Application Server Liberty 20.0.0.9
20.0.0.10: WebSphere Application Server Liberty 20.0.0.10
20.0.0.11: WebSphere Application Server Liberty 20.0.0.11
20.0.0.12: WebSphere Application Server Liberty 20.0.0.12
WebSphere Application Server traditional 9.0.5.6
21.0.0.3: WebSphere Application Server Liberty 21.0.0.3
9.0.5.7: WebSphere Application Server traditional Version 9.0.5 Fix Pack 7
21.0.0.4: WebSphere Application Server Liberty 21.0.0.4
21.0.0.5: WebSphere Application Server Liberty 21.0.0.5
21.0.0.6: WebSphere Application Server Liberty 21.0.0.6
9.0.5.8: WebSphere Application Server traditional Version 9.0.5.8
21.0.0.7: WebSphere Application Server Liberty 21.0.0.7
21.0.0.1: WebSphere Application Server Liberty 21.0.0.1
21.0.0.2: WebSphere Application Server Liberty 21.0.0.2
21.0.0.8: WebSphere Application Server Liberty 21.0.0.8
21.0.0.9: WebSphere Application Server Liberty 21.0.0.9
9.0.5.9: WebSphere Application Server traditional Version 9.0.5.9
21.0.0.10: WebSphere Application Server Liberty 21.0.0.10
21.0.0.11: WebSphere Application Server Liberty 21.0.0.11
21.0.0.12: WebSphere Application Server Liberty 21.0.0.12
9.0.5.10: WebSphere Application Server traditional Version 9.0.5.10
22.0.0.1: WebSphere Application Server Liberty 22.0.0.1
22.0.0.2: WebSphere Application Server Liberty 22.0.0.2
22.0.0.3: WebSphere Application Server Liberty 22.0.0.3
9.0.5.11: WebSphere Application Server traditional Version 9.0.5.11
22.0.0.4: WebSphere Application Server Liberty 22.0.0.4

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The context classloader is not getting set properly when
    loading CDI extensions at app startup.
    
    The same BackedAnnotatedType is trying to load
    DefaultConfigSourceProvider from both app1 and app2, but
    app1
    and app2 should each have their own BackedAnnotatedType
    instances.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty - Contexts and Dependency    *
    *                  Injection (CDI)                             *
    ****************************************************************
    * PROBLEM DESCRIPTION: Thread Context ClassLoader not being    *
    *                      set for CDI extensions                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The Thread Context ClassLoader was not being set when CDI
    extensions were loaded, which is leading to errors with third
    party libaries that expected a TCCL when loading their CDI
    extensions. An example of such an error is as follows:
    
    Stack Dump = java.util.ServiceConfigurationError: Error
    instantiating
    :org.apache.deltaspike.jsf.impl.scope.mapped.MappedJsf2ScopeExte
    nsion
    	at
    org.jboss.weld.util.ServiceLoader.createInstance(ServiceLoader.j
    ava:310)
    	at
    org.jboss.weld.util.ServiceLoader.prepareInstance(ServiceLoader.
    java:246)
    	at
    org.jboss.weld.util.ServiceLoader.loadService(ServiceLoader.java
    :214)
    	at
    org.jboss.weld.util.ServiceLoader.loadServiceFile(ServiceLoader.
    java:182)
    	at
    org.jboss.weld.util.ServiceLoader.reload(ServiceLoader.java:162)
    at
    org.jboss.weld.util.ServiceLoader.iterator(ServiceLoader.java:28
    8)
    	at
    com.ibm.ws.cdi.impl.weld.WebSphereCDIDeploymentImpl.getExtension
    s(WebSphereCDIDeploymentImpl.java:458)
    	at
    com.ibm.ws.cdi.impl.CDIContainerImpl.applicationStarting(CDICont
    ainerImpl.java:137)
    	at
    com.ibm.ws.cdi.liberty.CDIRuntimeImpl.applicationStarting(CDIRun
    timeImpl.java:353)
    	at
    com.ibm.ws.container.service.state.internal.ApplicationStateMana
    ger.fireStarting(ApplicationStateManager.java:29)
    	at
    com.ibm.ws.container.service.state.internal.StateChangeServiceIm
    pl.fireApplicationStarting(StateChangeServiceImpl.java:51)
    	at
    com.ibm.ws.app.manager.module.internal.DeployedAppInfoBase.preDe
    ployApp(DeployedAppInfoBase.java:376)
    	at
    com.ibm.ws.app.manager.module.internal.DeployedAppInfoBase.deplo
    yApp(DeployedAppInfoBase.java:403)
    	at
    com.ibm.ws.app.manager.ear.internal.EARApplicationHandlerImpl.in
    stall(EARApplicationHandlerImpl.java:84)
    	at
    com.ibm.ws.app.manager.internal.statemachine.StartAction.execute
    (StartAction.java:141)
    	at
    com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMac
    hineImpl.enterState(ApplicationStateMachineImpl.java:1259)
    	at
    com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMac
    hineImpl.performAction(ApplicationStateMachineImpl.java:1127)
    	at
    com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMac
    hineImpl.run(ApplicationStateMachineImpl.java:882)
    	at
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExec
    utor.java:1153)
    	at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe
    cutor.java:628)
    	at java.lang.Thread.run(Thread.java:785)
    Caused by: java.lang.reflect.InvocationTargetException
    	at
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
    Method)
    	at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeCons
    tructorAccessorImpl.java:88)
    	at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delega
    tingConstructorAccessorImpl.java:57)
    	at
    java.lang.reflect.Constructor.newInstance(Constructor.java:437)
    	at
    org.jboss.weld.util.ServiceLoader.createInstance(ServiceLoader.j
    ava:308)
    	... 20 more
    Caused by: java.util.ServiceConfigurationError:
    org.apache.deltaspike.core.spi.config.ConfigSourceProvider:
    Provider
    org.apache.deltaspike.core.impl.config.DefaultConfigSourceProvid
    er not a subtype
    	at java.util.ServiceLoader.fail(ServiceLoader.java:250)
    	at java.util.ServiceLoader.access$300(ServiceLoader.java:196)
    	at
    java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.j
    ava:387)
    	at
    java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:415
    )
    	at java.util.ServiceLoader$1.next(ServiceLoader.java:491)
    	at
    org.apache.deltaspike.core.util.ServiceUtils.loadServiceImplemen
    tations(ServiceUtils.java:66)
    	at
    org.apache.deltaspike.core.util.ServiceUtils.loadServiceImplemen
    tations(ServiceUtils.java:46)
    	at
    org.apache.deltaspike.core.api.config.ConfigResolver.resolveConf
    igSources(ConfigResolver.java:516)
    	at
    org.apache.deltaspike.core.api.config.ConfigResolver.getConfigSo
    urces(ConfigResolver.java:495)
    	at
    org.apache.deltaspike.core.api.config.ConfigResolver.getProperty
    Value(ConfigResolver.java:364)
    	at
    org.apache.deltaspike.core.api.config.ConfigResolver.getProperty
    Value(ConfigResolver.java:207)
    	at
    org.apache.deltaspike.core.util.ProjectStageProducer.resolveProj
    ectStage(ProjectStageProducer.java:150)
    	at
    org.apache.deltaspike.core.util.ProjectStageProducer.initProject
    Stage(ProjectStageProducer.java:169)
    	at
    org.apache.deltaspike.core.util.ProjectStageProducer.lazyInit(Pr
    ojectStageProducer.java:139)
    	at
    org.apache.deltaspike.core.util.ProjectStageProducer.getInstance
    (ProjectStageProducer.java:118)
    	at
    org.apache.deltaspike.core.api.config.ConfigResolver.getProjectS
    tage(ConfigResolver.java:567)
    	at
    org.apache.deltaspike.core.api.config.ConfigResolver.access$200(
    ConfigResolver.java:63)
    	at
    org.apache.deltaspike.core.api.config.ConfigResolver$PropertyBui
    lder.resolveStringValue(ConfigResolver.java:1105)
    	at
    org.apache.deltaspike.core.api.config.ConfigResolver$PropertyBui
    lder.getValue(ConfigResolver.java:984)
    	at
    org.apache.deltaspike.jsf.api.config.base.JsfBaseConfig$ScopeCus
    tomization$ViewDelegation.<clinit>(JsfBaseConfig.java:72)
    	at
    org.apache.deltaspike.jsf.impl.util.JsfUtils.isViewScopeDelegati
    onEnabled(JsfUtils.java:365)
    	at
    org.apache.deltaspike.jsf.impl.scope.mapped.MappedJsf2ScopeExten
    sion.<init>(MappedJsf2ScopeExtension.java:63)
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI83901

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    CD0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-06-30

  • Closed date

    2017-10-16

  • Last modified date

    2017-10-16

  • 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

    LIBERTY PROFILE

  • Fixed component ID

    5724J0814

Applicable component levels

  • RCD0 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":"CD0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
04 May 2022