主题 : 部署后启动报错
级别: 秀才
UID: 33642
积分:68 加为好友
威望: 0 精华: 0
主题:3 回复:46
注册时间:2012-05-11
在线时长:0
1#   发表于:2012-05-11 10:38:57  IP:59.189.*.*
按照指南加载源码到myeclipse中,编译后启动未通过,报错:
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]: Cannot resolve reference to bean 'frontContextInterceptor' while setting bean property 'interceptors' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'frontContextInterceptor': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.jeecms.cms.web.FrontContextInterceptor.setCmsSiteMng(com.jeecms.cms.manager.main.CmsSiteMng); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cmsSiteMng': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.jeecms.cms.manager.main.impl.CmsSiteMngImpl.setFtpMng(com.jeecms.core.manager.FtpMng); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftpMng': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.jeecms.core.manager.impl.FtpMngImpl.setDao(com.jeecms.core.dao.FtpDao); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftpDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.jeecms.common.hibernate3.HibernateSimpleDao.setSessionFactory(org.hibernate.SessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/config/application-context.xml]: Invocation of init method failed; nested exception is org.hibernate.DuplicateMappingException: Duplicate class/entity mapping com.jeecms.core.entity.Authentication
级别: 总版主
UID: 10736
积分:148515 加为好友
威望: 205 精华: 42
主题:287 回复:126217
注册时间:2010-09-08
在线时长:18
2#   发表于:2012-05-11 10:49:25  IP:220.15.*.*
请描述下您的系统使用环境,如操作系统,JDK版本,tocmat版本,mysql版本等
路漫漫其修远兮,吾将上下而求索!
级别: 秀才
UID: 33642
积分:68 加为好友
威望: 0 精华: 0
主题:3 回复:46
注册时间:2012-05-11
在线时长:0
3#   发表于:2012-05-11 10:59:11  IP:59.189.*.*
操作系统:win7 旗舰版 (64位)
JDK:1.7  (64位)
Tomcat:7.0 (64位)
MySql:*

用安装版的启动安装没有问题,源码加载项目编译启动后报错。用2011版的没有出现此问题,望求教
级别: 总版主
UID: 10736
积分:148515 加为好友
威望: 205 精华: 42
主题:287 回复:126217
注册时间:2010-09-08
在线时长:18
4#   发表于:2012-05-11 11:03:17  IP:220.15.*.*
你用的是eclipse还是什么 ?
路漫漫其修远兮,吾将上下而求索!
级别: 秀才
UID: 33642
积分:68 加为好友
威望: 0 精华: 0
主题:3 回复:46
注册时间:2012-05-11
在线时长:0
5#   发表于:2012-05-11 11:09:28  IP:59.189.*.*
我用的MyEclipse8.6 for Spring 版本,用2011版的CMS就没问题,2012版的有什么要注意的吗?
级别: 总版主
UID: 10736
积分:148515 加为好友
威望: 205 精华: 42
主题:287 回复:126217
注册时间:2010-09-08
在线时长:18
6#   发表于:2012-05-11 11:14:23  IP:220.15.*.*
MyEclipse把WEB-INF/classes下的4个配置文件,复制到src下
路漫漫其修远兮,吾将上下而求索!
级别: 秀才
UID: 33642
积分:68 加为好友
威望: 0 精华: 0
主题:3 回复:46
注册时间:2012-05-11
在线时长:0
7#   发表于:2012-05-11 11:16:04  IP:59.189.*.*
源码加载部署进去以后没有出现问题,安装页面也显示出来,点击安装之后后台执行数据库的安装,未报错,页面显示安装成功,需重启tomcat,当再次重启的时候就报了此错误
级别: 总版主
UID: 10736
积分:148515 加为好友
威望: 205 精华: 42
主题:287 回复:126217
注册时间:2010-09-08
在线时长:18
8#   发表于:2012-05-11 11:16:31  IP:220.15.*.*
MyEclipse把WEB-INF/classes下的4个配置文件,复制到src
路漫漫其修远兮,吾将上下而求索!
级别: 总版主
UID: 10736
积分:148515 加为好友
威望: 205 精华: 42
主题:287 回复:126217
注册时间:2010-09-08
在线时长:18
9#   发表于:2012-05-11 11:17:23  IP:220.15.*.*
详情请参考JEECMS-V2012导入eclipse步骤说明http://www.jeecms.com/rjaz/326.jhtml
路漫漫其修远兮,吾将上下而求索!
级别: 秀才
UID: 33642
积分:68 加为好友
威望: 0 精华: 0
主题:3 回复:46
注册时间:2012-05-11
在线时长:0
10#   发表于:2012-05-11 11:54:34  IP:59.189.*.*
是我自己的问题,忘了替换文件了,感谢斑竹
1 2 3 4 > >| 共4页