DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] No bean named 'org.apache.struts2.dispatcher.ServletDispatcherResult' found in org.springframework.beans.factory.support.DefaultListableBeanFactory@46136: defining beans -------------------------------- 名称为“ServletDispatcherResult”的Bean没有找到。
2.检查一下配置文件是否正确
3.但不调试一下,看执行到哪里报异常的good luck...
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd"><struts>
<constant name="struts.i18n.encoding" value="GBK" />
<constant name="struts.objectFactory" value="spring" />
<constant name="struts.multipart.saveDir" value="c:/strutsFiles"/>
<package name="default" namespace="/" extends="struts-default">
<!-- 前台提示框信息 -->
<action name="showMessage" method="showMessage" class="showMessageAction">
<result name="su">jsp/share/showMessage.jsp</result>
<result name="fa" type= "redirect">/error.action?action=1</result>
</action>
<!-- 后台提示框信息 -->
<action name="adminShowMessage" method="adminShowMessage" class="showMessageAction">
<result name="su">jsp/share/admin_showMessage.jsp</result>
<result name="fa" type= "redirect">/error.action?action=1</result>
</action>
<!-- 后台网页提示框信息 -->
<action name="show" method="show" class="showMessageAction">
<result name="su">../jsp/share/admin_showWebMessage.jsp</result>
<result name="fa" type= "redirect">/error.action?action=1</result>
</action>
<!-- error 错误提示 -->
<action name="error" method="error" class="showMessageAction">
<result name="su">/jsp/share/loginout_showWebMessage.jsp</result>
<result name="fa">/jsp/share/loginout_showWebMessage.jsp</result>
</action>
<!-- 前台提示框信息 -->
<action name="showAlerMessage" method="showAlerMessage" class="showMessageAction">
<result name="su">jsp/share/showAlerMessage.jsp</result>
<result name="fa" type= "redirect">/error.action?action=1</result>
</action>
</package>
<include file="meto/ecshop/resource/struts/admin/AdminUserAction.xml"/>
<include file="meto/ecshop/resource/struts/admin/adminAjaxAction.xml"/>
<include file="meto/ecshop/resource/struts/admin/MenuAction.xml"/>
<include file="meto/ecshop/resource/struts/admin/AdminRoleAction.xml"/>
<include file="meto/ecshop/resource/struts/admin/WebconfigAction.xml"/>
<include file="meto/ecshop/resource/struts/admin/myStruts.xml"/>
</struts>
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation" value="classpath:hibernate.cfg.xml">
</property>
</bean>
<bean id="jbpmConfiguration" class="org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean">
<property name="sessionFactory" ref="sessionFactory"/>
<property name="configuration" value="classpath:jbpm.cfg.xml"/>
</bean> <!-- 配置文件 -->
<import resource="meto/ecshop/resource/spring/dao.xml" />
<import resource="meto/ecshop/resource/spring/proxy.xml" />
<import resource="meto/ecshop/resource/spring/service.xml" />
<import resource="meto/ecshop/resource/spring/admin_action.xml" />
<import resource="meto/ecshop/resource/spring/web_action.xml" />
<import resource="meto/ecshop/resource/spring/dwr.xml" /></beans>
这是日志调试用的
--------------------------------
名称为“ServletDispatcherResult”的Bean没有找到。