Recently I wanted to use JPA 2 in a business application. The
application should run on Weblogic 10.3.0 which is a Java EE 5
application server. Weblogic has some problems with antlr but this is a
known
issue. Despite the fact that I provided a weblogic-application.xml
with the bugfix I got an exception:
java.lang.NoSuchMethodError:
javax.persistence.spi.PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;
Through some googling I've found that I'm not the only one that has the
problem. Here https://forum.hibernate.org/viewtopic.php?f=1&t=1003776&start=0
someone describes the exceptions I've got. Through some more searching
I've found the confirmation (http://markmail.org/message/pewzkslx47zzczht)
that the JPA jar from weblogic is the problem. But no problem with a
workaround. In the eclipse wiki (http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/weblogic#DI_1.1:_Alternative_3:_Application_Level_Shared_Library_-_In_Use)
is a list of workarounds. Unfortunately none of them is really good. So
I decided to switch back to JPA 1.0.
If you want to know when JPA 2.0 will work on Weblogic visit http://forums.oracle.com/forums/thread.jspa?threadID=1006893&tstart=30.
I just wonder what will happen with projects that should run on this
weblogic version but are required to stay at JPA 1.0.