IBM Support

PM28820; 7.0.0.13: exception occurs when openjpa process a persistence unit wher

Download


Abstract

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.

Download Description

PM28820 resolves the following problem:

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/installedApps/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:
None

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. Refer to the Recommended Updates page for delivery information:
http://www.ibm.com/support/docview.wss?uid=swg27004980

Prerequisites

Download the Update Installer below to install this fix.

[{"PRLabel":"Update Installer","PRLang":"US English","PRSize":"7250000","PRPlat":{"label":"AIX","code":"PF002"},"PRURL":"http://www.ibm.com/support/docview.wss?uid=swg21205991"}]

Installation Instructions

Please review the readme.txt for detailed installation instructions.

[{"INLabel":"Readme","INLang":"US English","INSize":"7519","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PM28820/readme.txt"}]
On
[{"DNLabel":"7.0.0.13-WS-WAS-IFPM28820","DNDate":"2/28/2011","DNLang":"US English","DNSize":"4881663","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/quickorder?fixids=7.0.0.13-WS-WAS-IFPM28820&product=ibm%2FWebSphere%2FWebSphere+Application+Server&source=dbluesearch","DNURL_FTP":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PM28820/7.0.0.13-WS-WAS-IFPM28820.pak","DDURL":"http://public.dhe.ibm.com:7618;sw_websphere;appserv/support/fixes/PM28820/7.0.0.13-WS-WAS-IFPM28820.pak"}]

Technical Support

Contact IBM Support using SR (http://www.ibm.com/software/support/probsub.html), visit the WebSphere Application Server support web site (http://www.ibm.com/software/webservers/appserv/was/support/), or contact 1-800-IBM-SERV (U.S. only).

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Java Persistence API (JPA)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0.0.13","Edition":"Base;Developer;Express","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg24029276