Hibernate Java.lang.NoSuchFieldError:INSTANCE

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.