码迷,mamicode.com
首页 > 编程语言 > 详细

spring-framework-3.2.4.RELEASE 综合hibernate-release-4.3.5.Final一个错误Caused by: java.lang.NoClassDefFound

时间:2015-08-12 23:24:47      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

LZ一体化的今天spring-framework-3.2.4.RELEASE 综合hibernate-release-4.3.5.Final一个错误Caused by: java.lang.NoClassDefFound

Caused by: java.lang.NoClassDefFoundError: org/hibernate/service/jta/platform/spi/JtaPlatform。

最后从国外一篇文章找到解决的方法:原文地址例如以下点击打开链接


产生原因是:

Hibernate4.3.X中,org.hibernate.service.jta.platform.spi.JtaPlatform类换成了:

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


原文说解决方法是:

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.

翻译过来即是,解决方式:

Hibernate用4.2.X及下面版本号  或 Spring用4.0及以上版本号

经过升级,Spring4.0.3,Hibernate4.3.5后,解决!

楼主亲测可用。

版权声明:本文博客原创文章,博客,未经同意,不得转载。

spring-framework-3.2.4.RELEASE 综合hibernate-release-4.3.5.Final一个错误Caused by: java.lang.NoClassDefFound

标签:

原文地址:http://www.cnblogs.com/gcczhongduan/p/4725544.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!