nested exception is java.lang.NoClassDefFoundError: org/hibernate/ejb/HibernatePersistence

前端 未结 3 1866
忘了有多久
忘了有多久 2021-01-12 18:54

I\'m trying to configure Spring 3.2, JPA 2.0 with Hibernate 4 as the persistence provider. When I try to deploy the application in Weblogic 10.3.5, I get the following erro

3条回答
  •  Happy的楠姐
    2021-01-12 19:35

    Definitely some old version or not in use now hibernate jars are present there in your lib folder. I my case it was hibernate-annotations-x.x.x.jar.

    I removed this hibernate-annotations-x.x.x.jar from my lib.

    If you are using hibernate-commons-annotations-x.x.x.jar then no need to put above jar. I was facing the same problem and when I removed hibernate-annotations-x.x.x.jar and restarted the server then my error gone. Put only hibernate-commons-annotations-x.x.x.jar.

    Search for any other old hibernate version jars, if any then remove it and put latest one.

提交回复
热议问题