IBM Support

PM71701: ClassCastException when JPA persistence units are republished with loose configuration

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • JPA persistence units in a jar module in WEB-INF/lib may not
    work properly when republished with loose configuration. A
    ClassCastException may occur
    

Local fix

  • fix in WAS.jeeruntime
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V8.0 and V8.5 with Java Persistence  *
    *                  API (JPA) applications deployed using       *
    *                  loose configuration.                        *
    ****************************************************************
    * PROBLEM DESCRIPTION: JPA persistence units in a jar module   *
    *                      in WEB-INF/lib may not work properly    *
    *                      when republished with loose             *
    *                      configuration                           *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When an application containing JPA persistence units in a jar
    module within the WEB-INF/lib directory is deployed using
    loose configuration and then republished, a ClassCastException
    may occur attempting to use the JPA Entity classes.
    

Problem conclusion

  • The scope of the JPA persistence units defined in a jar module
    in the WEB-INV/lib directory may be misidentified as EAR scope
    rather than WAR scope, resulting in the persistence units not
    being restarted when the module is restarted.
    
    This problem has been corrected. The JPA persistence units will
    be properly scoped to the containing WAR module.
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 8.0.0.5 and 8.5.0.1.  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

    PM71701

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-08-28

  • Closed date

    2012-09-17

  • Last modified date

    2012-09-17

  • 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

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

Document Information

Modified date:
29 October 2021