I am trying to use Hibernate + Spring in my application, but fell into the following error:
java.lang.ClassNotFoundException: org.springframework.orm.hibernate.HibernateTransactionManager
Tired of googling, can any stackoverflower tell me which JAR the above class contains?
EDIT
The important thing that I did not notice was that Spring has different packages for different versions of Hibernate. For Hibernate V3 (which I use) the corresponding HibernateTransactionManager class will be
org.springframework.orm.hibernate3.HibernateTransactionManager
instead
org.springframework.orm.hibernate.HibernateTransactionManager .
The JAR containing this class (hibernate3), as I discovered, is spring-hibernate3.jar . Thank you for your responses:)
source share