class not found:org.hibernate.cache.cacheprovider
相关配置信息:
<bean id="mysf" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource" ref="ds"/>
<!-- <property name="mappingResources">
<list>
<value>product.hbm.xml</value>
</list>
</property> -->
<property name="annotatedClasses">
<list>
<value>com.spring.bean.User</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.Oracle10gDialect
</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="format_sql">true</prop>
<prop key="hbm2ddl.auto">create</prop>
</props>
</property>
</bean>
<bean id="ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
<property name="url" value="jdbc:oracle:thin:@127.0.0.1:1521:orcl"/>
<property name="username" value="scott"/>
<property name="password" value="scott"/>
</bean>
配置感觉都没什么问题,但却报了class not found:org.hibernate.cache.cacheprovider错误,
我在hibernate.croe里能够找到org.hibernate.cache包但没有cacheProvider类。
感觉问题可能会是:少jar包,或cacheprovider过时被替代,小弟初学不能完成此检验,还请帮忙