How can I resolve java.lang.ClassNotFoundException: org.hibernate.util.DTDEntityResolver when using Spring 3.1 with Hibernate 4.0.1?
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 exclude
s from the hibernate-entitymanager
dependency. Generally, you should not mix versions of dependent packages.
* and JB Nizet's comment.