What JAR contains org.springframework.orm.hibernate.HibernateTransactionManager?

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:)

+4
source share
4 answers

in spring -orm.jar . Also make sure you have this JAR in your classpath

+2
source

Umar, I see you are using ant, have you tried maven ? you just include the dependency:

 <dependency> <groupId>org.springframework</groupId> <artifactId>spring</artifactId> <version>${spring.version}</version> </dependency> 

And maven takes care of the download and everything for you,

0
source

If you use Eclipse there is a very useful plugin called JAR Class Finder , which is ideal for these problems.

0
source

Source: https://habr.com/ru/post/1304971/


All Articles