求帮助,ssh页面跳转报错,Unable to instantiate Action

固体De海洋 发布于 2013/04/08 16:52
阅读 3K+
收藏 0

url:User_Action!login,在tomcat下运行正常,放到jboss下就出现这个问题。

os:ubuntu,jboss版本:7.x

错误:

Unable to instantiate Action, User_Action,  defined for 'User_Action' in namespace '/'User_Action from [Module "deployment.ContractMSys.war:main" from Service Module Loader]
	com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:319)
	com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:400)
	com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:194)
	org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
	org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
	com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
	org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:500)
	org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
	org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
struts.xml

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"
    "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>


<constant name="struts.objectFactory" value="org.apache.struts2.spring.StrutsSpringObjectFactory" />
<constant name="sturts.i18n.encoding" value="utf-8" />


<!-- packages -->
<package name="default" extends="struts-default" namespace="/">
<!--用户相关的Action-->
<action name="User_Action" class="User_Action">
<result name="lbsuccess" >/tab/yhlb.jsp</result>
<result name="normalUser" >/index.jsp</result>
<result name="superUser"  >/index.jsp</result>
<result name="login">/login.jsp</result>
<result name="addSuccess" type="redirectAction">User_Action!gotoLB</result>
<result name="addFaile">/tab/tjyh.jsp</result>
<result name="tzsuccess">/tab/xgyhxx.jsp</result>
    <result name="updsuccess" type="redirectAction">User_Action!gotoLB</result>
<result name="updatePwd">/tab/ok.jsp</result>
    <result name="input">/tab/xgyhmm.jsp</result>
    <result name="dltsuccess" type="redirectAction">User_Action!gotoLB</result>
    <result name="restsuccess" type="redirectAction">User_Action!gotoLB</result>
    <result name="checksuccess">/tab/yhxx.jsp</result>
    <result name="gotoAdd">/tab/tjyh.jsp</result>
    <result name="success">/tab/yhlb.jsp</result>
    <result name="logout" >/login.jsp</result>
</action>
</package>
</struts>

bean:

<!--用户模块 Action  -->
<bean id="User_Action" class="com.Controller.Action.User_Action" scope="prototype">
<property name="userService" ref="User_Service_Imp"/>
<property name="logService" ref="Log_Service_Imp"></property>

<property name="tLog" ref="T_Log"></property>
<property name="pageService" ref="Page_Service_Imp"/>
<property name="deptService" ref="Dept_Service_Imp"/>
<property name="page" ref="Page"/>
<property name="hSql" ref="HSql"/>
<property name="userList" ref="ArrayList"></property>
<property name="deptList" ref="ArrayList"></property>
</bean>

加载中
0
陶利坤
clean下,再保存下!
曾经帅的一笔
曾经帅的一笔
为什么这样就行了呢!纠结死了!
0
Devil_no
Devil_no
请问问题解决了吗?怎么解决的啊?
返回顶部
顶部