IncompatibleClassChangeError « JPA « Spring Q&A





1. java.lang.IncompatibleClassChangeError for using org.hibernate.cfg.AnnotationConfiguration    stackoverflow.com

I've just started using hibernate annotations for my POJO mappings in my Sping+Hibernate based project (JDK 1.6.0_23) and I'm getting this error regarding incompatibility between classes. The sessionFactory is configured as:

<bean ...

2. spring: java.lang.IncompatibleClassChangeError    forum.hibernate.org