In the use of hibernate3.6.2 I have encountered an interesting error java.lang.NoSuchFieldError:INSTANCEat org.hibernate.type.basictyperegistry.< Init> (basictyperegistry.java:94) at org.hibernate.type.typeresolver.<init> (TypeResolver.java:59) at Org.hibernate.cfg.configuration.<init> (configuration.java:249) at Org.hibernate.cfg.configuration.<init > (configuration.java:300)
Nearly in the project using SSH integration development, because Hibernate uses 3.0 in the mapping configuration file with <filter-def> always error, the upgrade hibernate to 3.6 version, but the error is as above. I looked it up on the Internet. Said is hibernate3.5 after the integration of annotation, do not need to introduce Hibernate-annotations.jar and Hibernate-commons-annotations.jar, in the project to remove the two jar package, you can, mark the
Cause: hibernate3.6 conflict with Hibernate-annotations.jar and Hibernate-commons-annotations.jar
Hibernate Java.lang.NoSuchFieldError:INSTANCE