主题 : 按照步骤导入源码,启动报错。
级别: 童生
UID: 34977
积分:26 加为好友
威望: 0 精华: 0
主题:2 回复:10
注册时间:2012-06-11
在线时长:0
1#   发表于:2012-06-11 16:12:58  IP:58.63.*.*
源码导入报错.
环境:jdK1.5.tomcat6.0
如下错误:
1:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0' defined in ServletContext resource [/WEB-INF/config/jeecms-servlet-front.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentCountAct': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.jeecms.cms.service.ContentCountCache com.jeecms.cms.action.front.ContentCountAct.contentCountCache; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentCountCache': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.jeecms.cms.service.ContentCountCacheImpl.setCache(net.sf.ehcache.Ehcache); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ehContentCountCache' defined in ServletContext resource [/WEB-INF/config/cache-context.xml]: Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in ServletContext resource [/WEB-INF/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
2:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentCountAct': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.jeecms.cms.service.ContentCountCache com.jeecms.cms.action.front.ContentCountAct.contentCountCache; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentCountCache': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.jeecms.cms.service.ContentCountCacheImpl.setCache(net.sf.ehcache.Ehcache); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ehContentCountCache' defined in ServletContext resource [/WEB-INF/config/cache-context.xml]: Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in ServletContext resource [/WEB-INF/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
等等.

导入包
.删除了jeecms等3个包,源码显示不报错
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
2#   发表于:2012-06-11 16:16:40  IP:220.15.*.*
这是bug反馈区,有问题发到安装与使用区,切勿跑题,谢谢合作
功成由勤,业精于勤。
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
3#   发表于:2012-06-11 16:18:58  IP:220.15.*.*
你这是导入MyEclipse中?不是Eclipse?
功成由勤,业精于勤。
1 共1页