OEPE - java.lang.IllegalArgumentException: No persistence unit named 'xxx' is available in scope /web-app-module. Available persistence units (Doc ID 2073365.1)

Last updated on NOVEMBER 03, 2015

Applies to:

Oracle Enterprise Pack for Eclipse - Version 12.1.1.0 and later
Information in this document applies to any platform.

Symptoms

Error deploying EAR that contains a WAR that contains multiple jars that each  have a persistence.xml on WLS 12.1.3 using OEPE 12.1.3.2/12.1.3.7

Below is the error trace

 Exporting the EAR from IDE and deploying via WLS Console,deployment goes fine.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms