Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.CacheProvider
2013-01-27 01:34
645 查看
出现这个问题主要是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"/>
相关文章推荐
- Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.CacheProvider
- Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.CacheProvider
- hibernate中异常:java.lang.ClassNotFoundException: org.hibernate.cache.internal.NoCacheProvider
- Caused by: java.lang.ClassNotFoundException: org.hibernate.Session
- Caused by: java.lang.ClassNotFoundException: org.hibernate.service.jta.platform.spi.JtaPlatform
- Caused by: java.lang.ClassNotFoundException: org.hibernate.annotations.Entity
- java.lang.ClassNotFoundException: org.hibernate.annotations.common.reflection.MetadataProvider
- Caused by: java.lang.ClassNotFoundException: org.hibernate.service.jta.platform.spi.JtaPlatform
- Caused by: java.lang.ClassNotFoundException: org.apache.ibatis.mapping.DatabaseIdProvider
- Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.transaction.spi.TransactionContext
- java.lang.ClassNotFoundException: org.hibernate.annotations.common.reflection.MetadataProvider
- Caused by: java.lang.ClassNotFoundException: org.hibernate.impl.SessionImpl
- Caused by: java.lang.ClassNotFoundException: org.hibernate.annotations.common.reflection.MetadataPro
- java.lang.ClassNotFoundException: org.hibernate.annotations.common.reflection.MetadataProvider
- Caused by: java.lang.ClassNotFoundException: org.hibernate.annotations.common.reflection.MetadataPro
- Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.jndi.JndiNameException
- Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.transaction.spi.TransactionContext
- 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.engine.transaction.spi.TransactionContext