spring 集成 Hibernate4.3.X org.hibernate.service.jta.platform.spi.JtaPlatform异常

来源:互联网 发布:淘宝c店全屏装修 编辑:程序博客网 时间:2024/05/18 03:10

使用Spring3.2.4集成Hibernate4.3.5时,出现以下异常

Causedby:java.lang.ClassNotFoundException: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;

解决方案:

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

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

0 0
原创粉丝点击