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

使用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后,解决!

posted on 2014-04-16 11:32  leiOOlei  阅读(5687)  评论(2编辑  收藏  举报