Error on Weblogic WLS Server: Java.lang.NoSuchMethodError: Javax.persistence.spi.PersistenceUnitInfo.getValidationMode()

(Doc ID 2242364.1)

Last updated on APRIL 04, 2017

Applies to:

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

Symptoms

After upgrading to WLS 10.3.6 and Java 7, one is unable to deploy an application. The deployment fails with the following error:

java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:642)

 

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