Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.CacheProvider
来源:互联网 发布:高通kryo 知乎 编辑:程序博客网 时间:2024/05/18 12:39
出现这个问题主要是hibernate4里不在有cacheprovider类,cacheprovider在hibernate3中才有,
用hibernate4就应该用hibernate4的SessionFactory。
具体的sessionfactory配置:
<bean id="mysf" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<property name="dataSource" ref="ds"/>
用hibernate4就应该用hibernate4的SessionFactory。
具体的sessionfactory配置:
<bean id="mysf" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<property name="dataSource" ref="ds"/>
0 0
- Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.CacheProvider
- Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.CacheProvider
- Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.CacheProvider
- java.lang.NoClassDefFoundError: org/hibernate/cache/CacheProvider
- Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.FilterDefinition
- Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.FilterDefinition
- Caused by: java.lang.ClassNotFoundException: org.hibernate.impl.SessionImpl
- Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.FilterDefinition
- Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.jndi.JndiNameException
- Caused by: java.lang.ClassNotFoundException: org.hibernate.annotations.Entity
- Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.jndi.JndiNameException
- Caused by: java.lang.ClassNotFoundException: org.aspectj.lang.annotation.Around
- Caused by: java.lang.ClassNotFoundException: org.aspectj.lang.annotation.Around
- spring事务配置Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.SessionFactoryImplemento
- Caused by: java.lang.ClassNotFoundException: org.hibernate.annotations.common.reflection.MetadataPro
- Caused by: java.lang.ClassNotFoundException: org.hibernate.service.jta.platform.spi.JtaPlatform
- Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.transaction.spi.TransactionContext
- ssh:配置异常:Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.transaction.spi.Transacti
- 写自己的内核模块——获取一个进程的物理地址
- what happened when we don't set the namespace attrribute in Struts 2?
- 当推荐算法开源包多如牛毛,为什么我们还要专门的推荐算法工程师
- go 开发环境
- WPF 基础到企业应用系列5——WPF千年轮回 续前缘
- Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.CacheProvider
- 反射帮助类更新2015/11/07
- OC内存管理分类
- hdu1671 Phone List (字典树)
- 数据绑定DBinder完全解析。轻松定制属于你自己的绑定框架。
- 维护数据库安全的方法和系统
- 一种聊天机器人系统
- 学习心得(三)
- leetcode 46:Permutations