IBM Support

PM86895: JAVA.LANG.NOCLASSDEFFOUNDERROR FOR JAVAX.WS.RS.CORE.APPLICATION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Running with Liberty Profile at 8.5.0.1, JAX-RS service
    packaged in an enterprise bundle archive (EBA) fails when HTTP
    methods invoked with
    "java.lang.NoClassDefFoundError: javax.ws.rs.core.Application"
    
    if jaxrs-1.1 feature is added to server.xml
    after Liberty server has already been started.
    
    The application works correctly if the server is restarted or
    or if the jaxrs-1.1 feature is added to server.xml before
    starting the server.
    The problem is cross operating system (it was first observed on
    z/OS and reproduced on Microsoft Windows), this is an
    operating sytem independant classloading issue.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile using JAX-RS within  *
    *                  an OSGi application.                        *
    ****************************************************************
    * PROBLEM DESCRIPTION: NoClassDefFoundError for                *
    *                      javax.ws.rs.core.application            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Adding the jaxrs-1.1 feature after server start and deploying
    an application can result in a NoClassDefFoundError for
    javax.ws.rs.core.application.
    

Problem conclusion

  • The problem was due to a problem in the Equinox
    composite-based Apache Aries application runtime. This code
    path is no longer used as OSGi applications are now running on
    a subsystems runtime.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.5.5.0. Please refer to the Recommended Updates page
    for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

  • Add the jaxrs-1.1 feature to your server.xml before server
    start.
    

Comments

APAR Information

  • APAR number

    PM86895

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-04-12

  • Closed date

    2013-05-24

  • Last modified date

    2013-05-24

  • 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

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"850","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
24 May 2013