Struts和Spring整合后访问Action注入失败

如题,刚刚接触SSH,不知道是哪配置出问题了,
蛋疼的是单元测试中用ClassPathXmlApplicationContext读取spring配置文件却通过了- -
Struts2配置:

<!-- 设置浏览器是否缓存静态内容,默认值为true(生产环境下使用),开发阶段最好关闭 -->

<!-- 当struts的配置文件修改后,系统是否自动重新加载该文件,默认值为false(生产环境下使用),开发阶段最好打开 -->

<!-- 开发模式下使用,这样可以打印出更详细的错误信息 -->

<!-- <constant name="struts.action.extension" value="do,app" /> -->
<constant name="struts.objectFactory"
    value="org.apache.struts2.spring.StrutsSpringObjectFactory" />
<!-- Configuration for the default package. -->
<package name="default" extends="struts-default,json-default">
    <action name="*_*" method="{2}" class="org.crush.mlms.action.{1}Action">
        <result type="json">
            <param name="success">responseJson</param>
        </result>
    </action>
</package>


Spring配置:




class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">






org.hibernate.dialect.MySQLDialect





org/crush/mlms/domain/Test.hbm.xml
























web.xml配置:
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
MLMS

org.springframework.web.context.ContextLoaderListener


contextConfigLocation
classpath:Bean.xml


struts2
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter


struts2
/*



index.html


把详细的错误信息贴出来。