主题 : Context initialization failed |
级别: 白丁
|
1# 发表于:2011-03-04 17:23:01 IP:119.69.*.*
|
||||
---|---|---|---|---|---|
级别: 白丁
|
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 |
||
---|---|---|---|
级别: 总版主
|
4# 发表于:2011-04-25 11:45:56 IP:220.41.*.*
您好,您没有删除和源码相关的jar包,导致jar包冲突,所以您要删除jar包。
具体操作请看eclipse下部署 http://bbs.jeecms.com/azsy/4726.htm |
||
---|---|---|---|
1
共1页