IBM Support

PM96235: Unhandled exception during the initialization of the ServletContainerInitializer

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Unhandled exception during the initialization of the
    ServletContainerInitializer
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server Liberty    *
    *                  Core version 8.5 users of                   *
    *                  ServletContainerInitializer                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: A java.lang.NoClassDefFoundError        *
    *                      exception is not caught and handled     *
    *                      accordingly.                            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A request to an application, which is using the
    ServletContainerInitializer feature, might fail with a
    java.lang.NoClassDefFoundError exception.  An example of the
    exception stack:
    Exception = java.lang.NoClassDefFoundError
    Source = com.ibm.ws.webcontainer.osgi.VirtualHost
    probeid = startWebApp
    Stack Dump = java.lang.NoClassDefFoundError:
    org/example/ExampleClass
    at
    org.example.ExampleClass.<clinit>(ExampleClass.java:46)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at
    com.ibm.ws.webcontainer.osgi.webapp.WebApp.addClassToHandlesType
    sStartupSet(WebApp.java:1097)
    at
    com.ibm.ws.webcontainer.osgi.webapp.WebApp.scanForHandlesTypesCl
    asses(WebApp.java:963)
    at
    com.ibm.ws.webcontainer.webapp.WebApp.initializeServletContainer
    Initializers(WebApp.java:2304)
    at
    com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:950
    )
    at
    com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:603
    8)
    According to the JavaServlet specification the container might
    not know whether the missing class will prevent the
    application from working correctly, it must log the exceptions
    and ignore them.
    

Problem conclusion

  • The WebContainer code was modified to log the missing class
    exception and allow the request to continue.
    
    The fix for this APAR is currently targeted for inclusion in
    Liberty Core fix pack 8.5.5.2.
    Please refer to the recommended updates page for delivery
    information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM96235

  • Reported component name

    WAS LIBERTY COR

  • Reported component ID

    5725L2900

  • Reported release

    855

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2013-09-02

  • Closed date

    2013-11-05

  • Last modified date

    2013-11-05

  • 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

    WAS LIBERTY COR

  • Fixed component ID

    5725L2900

Applicable component levels

  • R855 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSD28V","label":"WebSphere Application Server Liberty Core"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"855","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 April 2022