IBM Support

PH50620: Expression Language Service Loader Error causes ClassNotFoundException

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

  • Client seeing the below error.
    Appears to be the same as open liberty issue mentioned in below
    link
    need https://github.com/OpenLiberty/open-liberty/issues/18419
    for TWAS
    
    L3/Volodymyr requested we open apar
    
    [11/1/22 16:44:49:101 IST] 00000057 webapp        E
    com.ibm.ws.webcontainer.webapp.WebApp
    notifyServletContextCreated SRVE0283E: Exception caught while
    initializing context: {0}
    
    java.lang.ExceptionInInitializerError
    	at java.lang.J9VMInternals.ensureError(J9VMInternals.java:145)
    	at java.lang.J9VMInternals.recordInitializationFailure(J9VMInt
    ernals.java:134)
    	at org.apache.jasper.runtime.JspFactoryImpl.getJspApplicationC
    ontext(JspFactoryImpl.java:267)
    	at org.apache.myfaces.webapp.Jsp21FacesInitializer.initContain
    erIntegration(Jsp21FacesInitializer.java:62)
    	at org.apache.myfaces.webapp.AbstractFacesInitializer.initFace
    s(AbstractFacesInitializer.java:186)
    	at org.apache.myfaces.webapp.StartupServletContextListener.con
    textInitialized(StartupServletContextListener.java:121)
    	at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextC
    reated(WebApp.java:1841)
    	at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebApp
    Impl.java:443)
    	at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplicati
    on(WebGroupImpl.java:88)
    	at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(V
    irtualHostImpl.java:171)
    	at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebConta
    iner.java:904)
    	at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WS
    WebContainer.java:789)
    	at com.ibm.ws.webcontainer.component.WebContainerImpl.install(
    WebContainerImpl.java:427)
    	at com.ibm.ws.webcontainer.component.WebContainerImpl.start(We
    bContainerImpl.java:719)
    	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(Appli
    cationMgrImpl.java:1249)
    	at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDe
    ployedObjectStart(DeployedApplicationImpl.java:1591)
    	at com.ibm.ws.runtime.component.DeployedModuleImpl.start(Deplo
    yedModuleImpl.java:720)
    	at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(
    DeployedApplicationImpl.java:1162)
    	at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplic
    ation(ApplicationMgrImpl.java:801)
    	at com.ibm.ws.runtime.component.ApplicationMgrImpl$5.run(Appli
    cationMgrImpl.java:2325)
    	at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextMa
    nagerImpl.java:5568)
    	at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(Con
    textManagerImpl.java:5694)
    	at com.ibm.ws.security.core.SecurityContext.runAsSystem(Securi
    tyContext.java:255)
    	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(Appli
    cationMgrImpl.java:2330)
    	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(C
    ompositionUnitMgrImpl.java:436)
    	at com.ibm.ws.runtime.component.CompositionUnitImpl.start(Comp
    ositionUnitImpl.java:123)
    	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(C
    ompositionUnitMgrImpl.java:379)
    	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$
    500(CompositionUnitMgrImpl.java:127)
    	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUIniti
    alizer.run(CompositionUnitMgrImpl.java:985)
    	at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInit
    ializer.run(WsComponentImpl.java:524)
    	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)
    Caused by: javax.el.ELException: Unable to find
    ExpressionFactory of type: # Licensed to the Apache Software
    Foundation (ASF) under one or more
    	at javax.el.ExpressionFactory.newInstance(ExpressionFactory.ja
    va:181)
    	at javax.el.ExpressionFactory.newInstance(ExpressionFactory.ja
    va:105)
    	at org.apache.jasper.runtime.JspApplicationContextImpl.<clinit
    >(JspApplicationContextImpl.java:58)
    	... 29 more
    Caused by: java.lang.ClassNotFoundException: # Licensed to the
    Apache Software Foundation (ASF) under one or more
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:610)
    	at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoade
    r.java:273)
    	at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:945)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:890)
    	at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoade
    r.java:150)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:873)
    	at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(Prot
    ectionClassLoader.java:67)
    	at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(Prot
    ectionClassLoader.java:63)
    	at com.ibm.ws.classloader.CompoundClassLoader.loadClass(Compou
    ndClassLoader.java:630)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:873)
    	at com.ibm.ws.classloader.CompoundClassLoader.loadClass(Compou
    ndClassLoader.java:630)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:873)
    	at javax.el.ExpressionFactory.newInstance(ExpressionFactory.ja
    va:174)
    	... 31 more
    

Local fix

  •  remove the comments in the
    META-INF/services/javax.el.ExpressionFactory file.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of Expression Language on WebSphere   *
    *                  8.5.5 and 9.0.                              *
    ****************************************************************
    * PROBLEM DESCRIPTION: The Expression Language                 *
    *                      implementation may throw a              *
    *                      ClassNotFoundException if the           *
    *                      META-                                   *
    *                      INF/services/javax.el.ExpressionFa      *
    *                      ctory uses comments, such as a          *
    *                      copyright when attempting to load the   *
    *                      specified ExpressionFactory             *
    *                      implementation class.                   *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The Expression Language implementation was updated to use the
    ServiceLoader in order to skip comments.
    

Problem conclusion

  • The fix for this APAR is targeted for WebSphere version
    8.5.5.26 and 9.0.5.19.
    
    Note: This problem was fixed in Open Liberty in 21.0.0.11
    under issue 18419.
    
    For more information, see 'Recommended
    Updates for WebSphere Application Server':
    https://www.ibm.com/support/pages/node/715553
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH50620

  • 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

    2022-11-02

  • Closed date

    2023-06-26

  • Last modified date

    2024-02-06

  • 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

[{"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":"LOB67","label":"IT Automation \u0026 App Modernization"}}]

Document Information

Modified date:
06 February 2024