主题 : 按照官方安装文档 添加新标签出错 |
级别: 秀才
![]() |
1# 发表于:2011-07-13 16:52:35 IP:218.6.*.*
|
||||
---|---|---|---|---|---|
级别: 秀才
![]() |
3# 发表于:2011-07-13 17:03:23 IP:218.6.*.*
下面是我自己定义的标签mycontent_list的实现过程
首先,在数据库里创建了一个jc_mycontent的表,其中有id,title,content三个字段 其次,创建了一个*类 public class MyContent { private static final long serialVersionUID = 1L; private Integer id; private String title; private String content; public MyContent () { super(); } ……get set方法 出错 vax.servlet.ServletException: Servlet.init() for servlet JeeCmsAdmin threw exception org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:619) root cause 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-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.setCmsUserMng(com.jeecms.cms.manager.main.CmsUserMng); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cmsUserMng': 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.CmsUserMngImpl.setChannelMng(com.jeecms.cms.manager.main.ChannelMng); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'channelMng' defined in ServletContext resource [/WEB-INF/config/jeecms-context.xml]: Cannot resolve reference to bean 'contentMng' while setting bean property 'deleteCheckerList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentMng' defined in ServletContext resource [/WEB-INF/config/jeecms-context.xml]: Cannot resolve reference to bean 'contentStaticPageListener' while setting bean property 'listenerList' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentStaticPageListener': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.jeecms.cms.staticpage.ContentStaticPageListener.setStaticPageSvc(com.jeecms.cms.staticpage.StaticPageSvc); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'staticPageSvc' defined in ServletContext resource [/WEB-INF/config/jeecms-context.xml]: Cannot create inner bean 'org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer#dc024a' of type [org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer] while setting bean property 'freeMarkerConfigurer'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer#dc024a' defined in ServletContext resource [/WEB-INF/config/jeecms-context.xml]: Cannot resolve reference to bean 'cms_mycontent_list' while setting bean property 'freemarkerVariables' with key [TypedStringValue: value [cms_mycontent_list], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cms_mycontent_list': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.jeecms.cms.manager.main.MyContentMng com.jeecms.cms.action.directive.abs.AbstractMyContentDirective.myContentMng; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.jeecms.cms.manager.main.MyContentMng] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) |
||
---|---|---|---|
1
共1页