Spring3.0 JPA (implementation of hibernate3.6) Integration: Java. Lang. nosuchmethoderror: javax. Persistence. SPI. persistenceuni

Source: Internet
Author: User

Java. lang. nosuchmethoderror: javax. persistence. SPI. persistenceunitinfo. the error message of getvalidationmode () ljavax/persistence/validationmode cannot be solved. It is known that this is a hibernate bug only after reading the community on the spring official website, this is because the new version of Hibernate is used (here I am using hibernate 3.6), with javaee. the JPA interface in jar conflicts. Solution: Remove myeclipse comes with javaee package, self-built user libraries, add javaee jsf-api.jar jsf-impl.jar jstl-1.2.jar package, and then add tomcat in the servlet-api.jar is actually javaee. jar with tomcat in the servlet-api.jar to replace, this problem is solved.

 

This article is to use b3log solo from smiled to see the distance for Synchronous publishing original address: http://jiangzezhou.appspot.com/articles/2011/06/04/1307172300000.html

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.