java.lang.NoClassDefFoundError: Lorg/hibernate/cache/CacheProvider
程序员文章站
2022-04-14 09:16:01
...
nested exception is java.lang.NoClassDefFoundError:
[b][color=red]org/springframework/dao/support/PersistenceExceptionTranslator[/color][/b]
出现此异常是因为缺少jar包
[b]解决方法:[/b]从网上下载org.springframework.transaction-3.1.0.M1.jar或者spring-dao.jar导入即可
[color=red]
[b]java.lang.NoClassDefFoundError: Lorg/hibernate/cache/CacheProvider[/color][/b]
解决方法:
将原来的配置代码:
改为:
参考链接:
[url]http://blog.sina.com.cn/s/blog_6f3fea5c0100zui7.html[/url]
[b][color=red]org/springframework/dao/support/PersistenceExceptionTranslator[/color][/b]
出现此异常是因为缺少jar包
[b]解决方法:[/b]从网上下载org.springframework.transaction-3.1.0.M1.jar或者spring-dao.jar导入即可
[color=red]
[b]java.lang.NoClassDefFoundError: Lorg/hibernate/cache/CacheProvider[/color][/b]
解决方法:
将原来的配置代码:
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
改为:
<bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
参考链接:
[url]http://blog.sina.com.cn/s/blog_6f3fea5c0100zui7.html[/url]
下一篇: 使用C#微信开发说明介绍
推荐阅读
-
java.lang.NoClassDefFoundError: Lorg/hibernate/cache/CacheProvider;问题解决
-
java.lang.NoClassDefFoundError: Lorg/hibernate/cache/CacheProvider
-
java.lang.NoClassDefFoundError: Lorg/hibernate/cache/CacheProvider;
-
java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition;
-
Caused by: java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition;解决方案
-
java.lang.NoClassDefFoundError: Lorg/hibernate/cache/CacheProvider;问题解决
-
java.lang.NoClassDefFoundError: Lorg/hibernate/cache/CacheProvider