Spring-framework-3.2.4.release synthesis hibernate-release-4.3.5.final An error caused by:java.lang.NoClassDefFound

Source: Internet
Author: User

LZ Integration Today spring-framework-3.2.4.release synthesis hibernate-release-4.3.5.final An error caused by: Java.lang.NoClassDefFound

Caused By:java.lang.noclassdeffounderror:org/hibernate/service/jta/platform/spi/jtaplatform.

Finally, from a foreign article to find a solution: the original address such as the following : Click to open Link


The reasons are:

In hibernate4.3.x, the Org.hibernate.service.jta.platform.spi.JtaPlatform class was replaced by:

Org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform;


The original solution is that:

Solution

Since Hibernate 4.3.x, the JtaPlatform class is refactored to a new package. To Fix it, downgrade Hibernate to 4.2.x or older, or upgrade the Spring framework.

The translation comes to be, the solution way:

Hibernate with 4.2.X and below version number or spring with version 4.0 and above

After upgrading, spring4.0.3,hibernate4.3.5, solve!

The landlord Pro-test available.

Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

Spring-framework-3.2.4.release synthesis hibernate-release-4.3.5.final An error caused by:java.lang.NoClassDefFound

Related Article

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.