说明:系统整合了Struts2.0,Ibatis,Spring
LOG4J代码如下:
LOG4J代码如下:
2008-07-14 08:44:05,406 DEBUG [com.opensymphony.xwork2.interceptor.ParametersInterceptor] - <Setting params >
2008-07-14 08:44:05,406 DEBUG [com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor] - <Invoking validate() on action com.xbkj.ex.system.action.UserAction@c8a7c5>
2008-07-14 08:44:05,406 DEBUG [com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil] - <cannot find method [validateLogin] in action [com.xbkj.ex.system.action.UserAction@c8a7c5]>
2008-07-14 08:44:05,406 DEBUG [com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil] - <cannot find method [validateDoLogin] in action [com.xbkj.ex.system.action.UserAction@c8a7c5]>
2008-07-14 08:44:05,406 DEBUG [com.opensymphony.xwork2.DefaultActionInvocation] - <Executing action method = login>
2008-07-14 08:44:05,406 DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <No bean named 'org.apache.struts2.dispatcher.ServletDispatcherResult' found in org.springframework.beans.factory.support.DefaultListableBeanFactory@1d49c56: defining beans [dataSource,sqlMapClient,commonDao,transactionManager,transactionInterceptor,org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator,commonService,systemService,officeService,htService,scoreService,xhService,guidePriceService,bbsService,wlService,userAction,indexAction,officeAction,htAction,scoreAction,ht_publish_action,ht_manage_action,xh_publish_action,base_info_select_action,xh_action,guide_price_action,bbs_action,wl_action,springContext]; root of factory hierarchy>
2008-07-14 08:44:05,406 DEBUG [org.springframework.core.CollectionFactory] - <Creating [java.util.LinkedHashMap]>
2008-07-14 08:44:05,406 DEBUG [org.springframework.core.CollectionFactory] - <Creating [java.util.LinkedHashMap]>
2008-07-14 08:44:05,406 DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <Ignoring constructor [public org.apache.struts2.dispatcher.ServletDispatcherResult(java.lang.String)] of bean 'org.apache.struts2.dispatcher.ServletDispatcherResult': org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.apache.struts2.dispatcher.ServletDispatcherResult': Unsatisfied dependency expressed through constructor argument with index 0 of type [java.lang.String]: There are 0 beans of type [java.lang.String] available for autowiring: []. There should have been exactly 1 to be able to autowire constructor of bean 'org.apache.struts2.dispatcher.ServletDispatcherResult'.>
2008-07-14 08:44:05,406 DEBUG [org.apache.struts2.dispatcher.ServletDispatcherResult] - <Forwarding to location /WEB-INF/jsp/login.jsp>
本文记录了一次Struts2.0与Spring框架整合时遇到的问题,详细展示了启动过程中的调试日志,包括参数设置、拦截器调用、方法查找失败及Spring Bean配置错误等问题。
867

被折叠的 条评论
为什么被折叠?



