WebLogic 10.3.6 JPA Transaction Throws NoSuchMethodError: javax.persistence.EntityManagerFactory.getMetamodel() (Doc ID 1620964.1)

Last updated on AUGUST 15, 2016

Applies to:

Oracle TopLink - Version 11.1.1.6.0 and later
Information in this document applies to any platform.

Symptoms

Eclipselink JPA application deployed to WebLogic server 10.3.6 experiences a transaction timeout and creates an error stack trace indicating a 'NoSuchMethodError: javax.persistence.EntityManagerFactory.getMetamodel()'.
An Example stack trace is:

 

The method is described in the Eclipselink JPA 2.0 API documentation:

EclipseLink/Development/JPA 2.0/metamodel API documentation can be found here.

 

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