IBM Support

PH52638: NOCLASSDEFFOUNDERROR ON JAVAX.WS.RS.WEBAPPLICATIONEXCEPTION

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

  • The following error occurs when installing a webservices
    application:
    
    WSWS7027E: JAX-WS Service Descriptions could not be correctly
    built because of the following error:
    javax.xml.ws.WebServiceException: WSWS7054E: The Web Services
    Description Language (WSDL) file could not be
    generated for the com.xyz.dept.abc.LegacyTestWebService
    Webservice implementation class because of the following error:
    java.lang.NoClassDefFoundError:
    javax.ws.rs.WebApplicationException
    at com.ibm.ws.websvcs.wsdl.WASWSDLGenerator.generateWsdl(WASWSD
    LGenerator.java:299)
    ...
    Caused by: java.lang.NoClassDefFoundError:
    javax.ws.rs.WebApplicationException
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server users of   *
    *                  Web services applications.                  *
    ****************************************************************
    * PROBLEM DESCRIPTION: java.lang.NoClassDefFoundError occurs   *
    *                      when deploying Web services             *
    *                      application.                            *
    ****************************************************************
    * RECOMMENDATION:  Install a fixpack which includes this APAR  *
    *                                                              *
    ****************************************************************
    The deployment of a web services application may fail with the
    following exception:
    javax.xml.ws.WebServiceException: WSWS7054E: The Web Services
    Description Language (WSDL) file could not be
    generated for the com.xyz.dept.abc.LegacyTestWebService Web
    service implementation class because of the following error:
    java.lang.NoClassDefFoundError:
    javax.ws.rs.WebApplicationException at
    com.ibm.ws.websvcs.wsdl.WASWSDLGenerator.generateWsdl(WASWSDLGen
    erator.java:299)
    

Problem conclusion

  • This problem occurred because the classloader that was used
    for generating the WSDL using the wsgen command could not find
    the javax.ws.rs.WebApplicationException class. The problem was
    fixed by adding the jar javax.j2ee.jaxrs.jar to the classpath
    for wsgen.
    
    The fix for this APAR is targeted for inclusion in fix pack
    8.5.5.24.
    
    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

    PH52638

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2023-02-15

  • Closed date

    2023-05-11

  • Last modified date

    2023-05-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

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

Document Information

Modified date:
16 May 2023