数据库加载完毕,重启tomcat后报错 系统是否少了<value>classpath:ehcache-application.xml</value>这个文件?
Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'contentCountAct': Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException: Co
uld not autowire field: private com.jeecms.cms.service.ContentCountCache com.jee
cms.cms.action.front.ContentCountAct.contentCountCache; nested exception is org.
springframework.beans.factory.BeanCreationException: Error creating bean with na
me 'contentCountCache': Injection of autowired dependencies failed; nested excep
tion is org.springframework.beans.factory.BeanCreationException: Could not autow
ire method: public void com.jeecms.cms.service.ContentCountCacheImpl.setCache(ne
t.sf.ehcache.Ehcache); nested exception is org.springframework.beans.factory.Bea
nCreationException: Error creating bean with name 'ehContentCountCache' defined
in ServletContext resource [/WEB-INF/config/cache-context.xml]: Cannot resolve r
eference to bean 'cacheManager' while setting bean property 'cacheManager'; nest
ed exception is org.springframework.beans.factory.BeanCreationException: Error c
reating bean with name 'cacheManager' defined in ServletContext resource [/WEB-I
NF/config/cache-context.xml]: Invocation of init method failed; nested exception
is java.io.FileNotFoundException: class path resource [ehcache-application.xml]
cannot be opened because it does not exist
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanP
ostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java
:285) ~[spring.beans-3.0.5.jar:3.0.5.RELEASE] |
|