IBM Support

PM95013: CREATING OAUTH 2 CUSTOM MEDIATOR SEES NOCLASSDEFFOUNDERROR

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When trying to create an Oauth 2 Custom Mediator we see
    
    Stack Dump = java.lang.NoClassDefFoundError: com/ibm/ejs/ras/Tr
     at
    com.ibm.ws.security.oauth20.mediator.ResourceOwnerValidationMedi
    dator.<clinit>(ResourceOwnerValidationMedidator.java:32)
     at
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
    Method)
     at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeCons
    tructorAccessorImpl.java:39)
     at
     ...
    
    Caused by: java.lang.ClassNotFoundException: com.ibm.ejs.ras.Tr
     at
    com.ibm.ws.classloading.internal.AppClassLoader.findClassCommonL
    ibraryClassLoaders(AppClassLoader.java:390)
     at
    com.ibm.ws.classloading.internal.AppClassLoader.findClass(AppCla
    ssLoader.java:247)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     at
    com.ibm.ws.classloading.internal.AppClassLoader.loadClass(AppCla
    ssLoader.java:366)
     ... 37 more
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Core                         *
    ****************************************************************
    * PROBLEM DESCRIPTION: A NoClassDefFoundError exception is     *
    *                      thrown when trying to access a          *
    *                      custom OAuth mediator.                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When attempting to use the
    com.ibm.ws.security.oauth20.mediator.ResourceOwnerValidationMedi
    dator class mentioned in documentation as a custom OAuth
    mediator, a NoClassDefFoundError exception for the
    com.ibm.ejs.ras.Tr class is thrown. This exception is thrown
    because the com.ibm.ejs.ras.Tr and
    com.ibm.ejs.ras.TraceComponent classes are deprecated for
    Liberty profile servers and are not accessible.
    

Problem conclusion

  • The renamed
    com.ibm.ws.security.oauth20.mediator.ResourceOwnerValidationMedi
    ator class has been added with the appropriate references to
    the updated Tr and TraceComponent classes. The
    NoClassDefFoundError exception should be avoided by using
    com.ibm.ws.security.oauth20.mediator.ResourceOwnerValidationMedi
    ator as the value for the mediatorClassname attribute in the
    server configuration instead of
    com.ibm.ws.security.oauth20.mediator.ResourceOwnerValidationMedi
    dator.
    
    The fix for this APAR is currently targeted for inclusion in
    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

    PM95013

  • 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-08-13

  • Closed date

    2013-09-19

  • Last modified date

    2013-09-19

  • 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:
12 January 2022