IBM Support

PI35394: Incorrect validation of WebServlet annotation can result in ValidationException

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A ValidationException error can occur when attempting to
    validate a class that implements Servlet but is not typed as
    an HttpServlet.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server Full       *
    *                  Profile versions 8.0 and 8.5.5 users.       *
    ****************************************************************
    * PROBLEM DESCRIPTION: Validation on the @WebServlet           *
    *                      annotation incorrectly requires that    *
    *                      the target class be typed as a          *
    *                      javax.servlet.http.HttpServlet.         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Validation on the @WebServlet annotation incorrectly requires
    that the target class be typed as a
    javax.servlet.http.HttpServlet. The target class is only
    required to be typed as a class which implements the
    javax.servlet interface. In the case in which the target class
    is not typed as an HttpServlet, a ValidationException error
    such as the following is thrown:
    [10/15/14 11:36:59:431 EDT] 0000002d annotations   E
    CWWAM0003E: An exception occurred while validating an
    annotation: com.ibm.wsspi.amm.validate.ValidationException:
    SRVE8016E: The @WebServlet annotation can not be applied to
    the class, javax.faces.webapp.FacesServlet, because it extends
    the wrong super class
    

Problem conclusion

  • The WebContainer has been modified to allow validation on all
    javax.servlet types.
    The fix for this APAR is currently targeted for inclusion in
    fix packs 8.0.0.11 and 8.5.5.6. 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

    PI35394

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-02-20

  • Closed date

    2015-03-03

  • Last modified date

    2015-03-03

  • 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

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R800 PSY

       UP

  • R850 PSY

       UP

[{"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:
28 April 2022