Weblogic Server: java.lang.NoSuchMethodError: javax.persistence.Table.indexes()

(Doc ID 2233379.1)

Last updated on MAY 24, 2017

Applies to:

Oracle WebLogic Server - Version 12.1.3.0.0 and later
Information in this document applies to any platform.

Symptoms

When attempting to deploy an application that uses Hibernate JPA 2.1, the following error may be seen:

It was attempted to enable JPA 2.1 by adding the following classes to the system classpath:

oracle_common\modules\javax.persistence_2.1.jar
wlserver\modules\com.oracle.weblogic.jpa21support_1.0.0.0_2-1.jar

as described here: https://docs.oracle.com/middleware/1213/wls/EJBAD/using_toplink.htm#EJBAD1415

Changes

 

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