使用的hibernate4,启动有下面错误:2013-05-16 11:16:04,980 [main] ERROR pringframework.web.context.ContextLoader -Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [G:\Code\aria\aria-web\target\classes\spring\context-dao.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.spi.CacheImplementor]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)我的sessionFactory:
<bean id="sessionFactory"
class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="packagesToScan">
<value>net.jasuka.aria.entity</value>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.format_sql">true</prop>
<prop key="hibernate.cache.use_query_cache">true</prop>
</props>
</property>
</bean>哪里有问题?
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [G:\Code\aria\aria-web\target\classes\spring\context-dao.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.spi.CacheImplementor]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)我的sessionFactory:
<bean id="sessionFactory"
class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="packagesToScan">
<value>net.jasuka.aria.entity</value>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.format_sql">true</prop>
<prop key="hibernate.cache.use_query_cache">true</prop>
</props>
</property>
</bean>哪里有问题?
解决方案 »
- 求助:ORA-22922: 不存在的 LOB 值,这个问题怎么解决!!!
- activex 插件打印的
- createSQLQuery()的addEntity()问题
- 能否用B/S实现做局域网的点对点语音通讯
- 有没有谁剥离过myeclipse的sql插件
- java用axis调用c# WebService的参数为null问题
- Struts2和Spring集成时org.springframework.web.struts.ActionSupport出错
- 想转行,大家给点意见
- jndi如何确定是在本机还是远程的
- 【求大神帮忙】SSh框架的项目运行,404路径问题!
- 求助
- Struts2 设置 ParentPackage 注解错误
<value>net.jasuka.aria.entity</value>这里是不是应该是/而不是.
</property>