主题 : jeecms3.02 在tomcat7.0启动时错误
级别: 白丁
UID: 9899
积分:7 加为好友
威望: 0 精华: 0
主题:0 回复:7
注册时间:2010-08-11
在线时长:0
1#   发表于:2011-01-06 12:11:11  IP:116.174.*.*
在运行到jeecms-servlet-front.xml时Context initialization failed
11:58:58.772 [main] ERROR o.s.web.servlet.DispatcherServlet - Context initialization failed
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.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-01-06 12:28:21  IP:220.41.*.*
1.如果您只想进行普通的二次开发,您可以只导入com这个源码,删除jeecms-cms-identity-3.0.2-final.jar即可
如果您想进行深入的二次开发,您需要导入common和core源码,另导入common-lib下的jar包,删除jeecms- cms- identity-3.0.2-final.jar,jeecms-common-3.0.2-final.jar ,jeecms- core- identity-3.0.2-final.jar 这三个jar包
2.修改jdbc链接,自己导入数据库。
3.把install\config下的web.xml复制出来覆盖掉WEB-INF下的web.xml
级别: 白丁
UID: 8674
积分:1 加为好友
威望: 0 精华: 0
主题:0 回复:1
注册时间:2010-07-04
在线时长:0
3#   发表于:2011-01-06 13:34:35  IP:122.122.*.*
和我的错误一样。。都按这样操作了
级别: 童生
UID: 10739
积分:3 加为好友
威望: 0 精华: 0
主题:0 回复:3
注册时间:2010-09-08
在线时长:0
4#   发表于:2011-01-06 13:40:45  IP:220.41.*.*
您把操作的步骤发出来看一下吧。
级别: 白丁
UID: 9899
积分:7 加为好友
威望: 0 精华: 0
主题:0 回复:7
注册时间:2010-08-11
在线时长:0
5#   发表于:2011-01-06 14:31:18  IP:116.174.*.*
还是一样呀,把jeecms-3.0.2-final-src文件夹下的src复制到jeecms下,common-lib里的jar复制到WEB-INF下的lib文件夹下,再把Root文件夹里所有的复制到WebRoot下,此时启动tomcat7.0不会报错,再把install\config下的web.xml复制出来覆盖掉WEB-INF下的web.xml,就报下面的错误了
2011-1-6 14:22:10 org.apache.catalina.core.ApplicationContext log
严重: StandardWrapper.Throwable
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.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

2011-1-6 14:22:32 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 13 in XML document from file [D:\Program Files\apache-tomcat-7.0.0\webapps\WebPro\WEB-INF\classes\applicationContext-beans.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
级别: 白丁
UID: 8674
积分:1 加为好友
威望: 0 精华: 0
主题:0 回复:1
注册时间:2010-07-04
在线时长:0
6#   发表于:2011-01-06 14:34:30  IP:122.122.*.*
不要用论坛里的,tomcat的也有关系的,我*的报错。你这个错上午一直报现在好了。你把那个lib去掉
级别: 童生
UID: 10739
积分:3 加为好友
威望: 0 精华: 0
主题:0 回复:3
注册时间:2010-09-08
在线时长:0
7#   发表于:2011-01-06 14:38:35  IP:220.41.*.*
1.如果把jeecms-3.0.2-final-src下的3个压缩包都解压导入的话,先导入common-lib下的jar包,然后删除jeecms- cms- identity-3.0.2-final.jar,jeecms-common-3.0.2-final.jar ,jeecms- core- identity-3.0.2-final.jar 这三个jar包
2.修改jdbc链接,链接到相应的数据库数据库。
3.把install\config下的web.xml复制出来覆盖掉WEB-INF下的web.xml
级别: 白丁
UID: 9899
积分:7 加为好友
威望: 0 精华: 0
主题:0 回复:7
注册时间:2010-08-11
在线时长:0
8#   发表于:2011-01-06 14:52:56  IP:116.174.*.*
你说的,我都试过,但没用
工程建立顺序 
1,新建Web Project  名称为jeecms
2,把jeecms-3.0.2-final-src解压出的COM文件夹放入SRC下 
3,把jeecms-3.0.2-final\ROOT下的文件拷贝到WebRoot下 
4,把jeecms-3.0.2-final-src\common-lib下的三个jar包拷贝到lib下 
5,在lib下删除jeecms- cms- identity-3.0.2-final.jar,jeecms-common-3.0.2-final.jar ,jeecms- core- identity-3.0.2-final.jar三个包 
6,用在TOMCAT里面安装后的jdbc.properties替换WEB-INF/config下的jdbc.propertie 
7,用install\config下面的web.xml替换掉web-inf下的web.xml
级别: 童生
UID: 10739
积分:3 加为好友
威望: 0 精华: 0
主题:0 回复:3
注册时间:2010-09-08
在线时长:0
9#   发表于:2011-01-06 14:57:44  IP:220.41.*.*
您拷贝安装包里面的root文件夹的时候,是怎么拷贝的
级别: 童生
UID: 31813
积分:12 加为好友
威望: 0 精华: 0
主题:0 回复:9
注册时间:2012-04-01
在线时长:0
10#   发表于:2012-04-06 16:57:46  IP:120.39.*.*
我也是报这个错
1 2 > >| 共2页