I've found this post on Bea forums
anonymous wrote :
| # Exception in thread "main" java.lang.NoSuchMethodError:
javax.persistence.EntityManagerFactory.getEntityManager()Ljavax/persistence/EntityManager;
|
| Curious, I think this could be a bug from Hibernate or ejb3-persistance
implementation.
|
| * Problems using JPA implemented by Hibernate in Weblogic 9.1
| 2006-10-02 01:52:00 konrad_a(a)poczta.fm [Reply | View]
|
| The cause of NoSuchMethodError is that weblogic.jar contains
javax.persisence.EntityManager interface which is in conflict with JPA 1.0 (EJB 3.0)
persistence.jar shipped with Hibernate 3.2. As weblogic.jar is first on the classpath, the
problem occurs. The solution is to copy "persistence.jar" to WL's JDK
lib/ext dir (normally it is bea/jdk150_03/jre/lib/ext) and restart the server.
|
I will try that.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032998#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...