0

i am using spring 3.2.4 (latest stable version) with hibernate i have added all the dependencies but still i am getting the error which is below

java.lang.NoClassDefFoundError: org/springframework/transaction/interceptor/TransactionInterceptor

if i use maven then i get too many errors like Failed to Autowired (in both service and DAO),

org.springframework.beans.factory.BeanCreationException:
java.lang.ClassNotFoundException: org.hibernate.cache.CacheProvider

please help me to solve problem for one of above. i want to create an application (spring + Hibernate) any of way (with maven or without maven)

enter image description here

4

1 回答 1

0

应用程序缺少hibernate-core-x.x.x.jar文件。您将需要找到合适的 jar 版本。

使用 FindJar: http ://www.findjar.com/jar/org/hibernate/hibernate-core/3.3.2.GA/hibernate-core-3.3.2.GA.jar.html

该类java.lang.ClassNotFoundException: org.hibernate.cache.CacheProvider包含在 4.0 版之前的 Hibernate 版本中。我会更新您的所有库以使用 4.0 版本。

于 2013-08-31T21:54:27.947 回答