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