Could not instantiate Bean class after SSH configuration is started [org.hibernate.cfg.AnnotationConfiguration

Source: Internet
Author: User

Caused by:org.springframework.beans.BeanInstantiationException:

Could not instantiate Bean class [org.hibernate.cfg.AnnotationConfiguration]: Constructor threw exception; Nested exception is Java.lang.NoSuchFieldError:INSTANCE

Online Search for reasons, The original is to go to the WebApps in Tomcat to delete the project's Hibernate-annotations.jar;hibernate-commons-annotations.jar; Keep Hibernate3.jar on the line.

However, since the user libraries removed the conflict jar, restart the service is still reported the same error, this because the Tomcat server WebApps directory in the project under the Lib directory is still a conflicting jar file, so the restart is still reported the same error,

Workaround: Tomcat server to remove the deployment, redeploy it again, no problem.

Could not instantiate Bean class after SSH configuration is started [org.hibernate.cfg.AnnotationConfiguration

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.