主题 : Context initialization failed
级别: 白丁
UID: 16512
积分:1 加为好友
威望: 0 精华: 0
主题:0 回复:1
注册时间:2011-03-04
在线时长:0
1#   发表于:2011-03-04 17:23:01  IP:119.69.*.*
Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0' defined in ServletContext resource [/WEB-INF/config/jeecms-servlet-admin.xml]: Cannot resolve reference to bean 'adminContextInterceptor' while setting bean property 'interceptors' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'adminContextInterceptor': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.jeecms.cms.web.AdminContextInterceptor.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.setDao(com.jeecms.cms.dao.main.CmsSiteDao); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cmsSiteDao': 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: 10739
积分:3 加为好友
威望: 0 精华: 0
主题:0 回复:3
注册时间:2010-09-08
在线时长:0
2#   发表于:2011-03-04 17:27:33  IP:59.245.*.*
您好,请您详细说明下您的环境和您在什么情况下出现的该问题。
级别: 白丁
UID: 17740
积分:250 加为好友
威望: 0 精华: 0
主题:26 回复:64
注册时间:2011-04-07
在线时长:0
3#   发表于:2011-04-25 11:40:28  IP:10.1.*.*
之前部署过一次,好用,但是后来再别人机器上部署的时候出现了这个错误。

我也出现了这个错误,求助解决

环境如下:eclipse,mysql,tomcat6,jdk 6.0

部署过程:建立动态web工程,将jeecms-3.0.4-final-src下的src拷入工程的 src

将jeecms-3.0.4-final 下 boot 的文件拷入 工程 webroot 文件夹下

建立数据库,将source db文件夹下的sql。

修改jdbc.propertise.改为自己的数据库配置


部署到tomcat 第一次启动,配置。eclipse后台显示表操作。

然后重启服务器的时候就报错了。

Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0' defined in ServletContext resource [/WEB-INF/config/jeecms-servlet-admin.xml]: Cannot resolve reference to bean 'adminContextInterceptor' while setting bean property 'interceptors' with key [0]; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'adminContextInterceptor': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.jeecms.cms.web.AdminContextInterceptor.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.setDao(com.jeecms.cms.dao.main.CmsSiteDao); 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cmsSiteDao': 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
积分:148478 加为好友
威望: 205 精华: 42
主题:287 回复:126198
注册时间:2010-09-08
在线时长:17.05
4#   发表于:2011-04-25 11:45:56  IP:220.41.*.*
您好,您没有删除和源码相关的jar包,导致jar包冲突,所以您要删除jar包。
具体操作请看eclipse下部署
http://bbs.jeecms.com/azsy/4726.htm
路漫漫其修远兮,吾将上下而求索!
级别: 白丁
UID: 17740
积分:250 加为好友
威望: 0 精华: 0
主题:26 回复:64
注册时间:2011-04-07
在线时长:0
5#   发表于:2011-04-25 11:46:07  IP:10.1.*.*
common-lib 的3个jar包也拷到了lib目录下
级别: 白丁
UID: 17740
积分:250 加为好友
威望: 0 精华: 0
主题:26 回复:64
注册时间:2011-04-07
在线时长:0
6#   发表于:2011-04-25 11:48:40  IP:10.1.*.*
OK 问题解决了!多谢!
1 共1页