主题 : jeecms3.02 在tomcat7.0启动时错误 |
级别: 白丁
![]() |
1# 发表于:2011-01-06 12:11:11 IP:116.174.*.*
|
||||
---|---|---|---|---|---|
级别: 童生
![]() |
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 |
||
---|---|---|---|
级别: 白丁
![]() |
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'. |
||
---|---|---|---|
级别: 白丁
![]() |
6# 发表于:2011-01-06 14:34:30 IP:122.122.*.*
不要用论坛里的,tomcat的也有关系的,我*的报错。你这个错上午一直报现在好了。你把那个lib去掉
|
||
---|---|---|---|
级别: 童生
![]() |
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 |
||
---|---|---|---|
级别: 白丁
![]() |
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 |
||
---|---|---|---|