How can I resolve java.lang.ClassNotFoundException: org.hibernate.util.DTDEntityResolver when using Spring 3.1 with Hibernate 4.0.1?

前端 未结 5 1091
太阳男子
太阳男子 2021-01-03 18:14

I recently upgraded to Hibernate 4.0.1.Final and am receiving the following error on context startup:

Caused by: jav         


        
5条回答
  •  佛祖请我去吃肉
    2021-01-03 18:50

    Per the Hibernate annotations 3.5 documentation:*

    Hibernate 3.5 and onward contains Hibernate Annotations.

    You should remove the dependency on hibernate-annotations, and remove the excludes from the hibernate-entitymanager dependency. Generally, you should not mix versions of dependent packages.

    * and JB Nizet's comment.

提交回复
热议问题