IBM Support

PM28820: EXCEPTION OCCURS WHEN OPENJPA PROCESS A PERSISTENCE UNIT WHERE THE PROVIDER IS NOT OPENJPA

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Product Release and Version Information: WebSphere Application
    Server V7.0 Base
    
    Problem Description:
    
    
    CWWJP0009E: The server cannot create an EntityManagerFactory
    factory for the TCT persistent unit from the
    org.hibernate.ejb.HibernatePersistence provider in
    jar:file:/WAS_Install_ROOT/profiles/AppSrv01/in
    stalledApps/CELLNAME/mycompany.ear/project.jar!/ module.
    

Local fix

  • No Work Around Available
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V7.0                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: An application leveraging the Java      *
    *                      Persistence API (JPA) is configured to  *
    *                      utilize a JPA Persistence Provider      *
    *                      other then that which is shipped with   *
    *                      WebSphere Application Server 7.0.  A    *
    *                      problem with the application            *
    *                      environment (such as a <jar-file>       *
    *                      persistence unit element is declared,   *
    *                      but the jar file is missing in the      *
    *                      application classpath) is reported      *
    *                      by an Exception containing OpenJPA in   *
    *                      the stack trace instead of the          *
    *                      Persistence Provider intended by the    *
    *                      application.                            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The JPA implementation provided with WebSphere Application
    Server 7.0 may still attempt to validate <jar-file> entries in
    a persistence unit definition, even when an alternate JPA
    provider has been requested by the application.
    
    In situations where <jar-file> entries are missing from the
    application classpath, this could result in a confusing
    situation where OpenJPA is reporting the missing jar file
    entry instead of the requested alternate provider.
    

Problem conclusion

  • This issue has been corrected with OpenJPA-1905.  OpenJPA will
    verify that it is the persistence provider intended for use by
    the application before attempting to validate that the
    <jar-file> elements are in the application classpath.  This
    ensures that this validation is properly handled and reported
    by the requested persistence provider instead of by OpenJPA.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 7.0.0.17.  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

    PM28820

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-12-13

  • Closed date

    2011-02-22

  • Last modified date

    2011-02-22

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    PM30908

Fix information

  • Fixed component name

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R700 PSY

       UP



Document information

More support for: WebSphere Application Server
General

Software version: 7.0

Reference #: PM28820

Modified date: 22 February 2011