求帮助,ssh页面跳转报错,Unable to instantiate Action
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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
请问问题解决了吗?怎么解决的啊?
为什么这样就行了呢!纠结死了!
clean下,再保存下!