没有找到匹配的result,action出错

错误:

Stacktraces
java.lang.RuntimeException: Invalid action class configuration that references an unknown class named [jbpmCommonAction]

    org.apache.struts2.convention.ConventionsServiceImpl.determineResultPath(ConventionsServiceImpl.java:100)
    org.apache.struts2.convention.ConventionUnknownHandler.determinePath(ConventionUnknownHandler.java:385)
    org.apache.struts2.convention.ConventionUnknownHandler.handleUnknownResult(ConventionUnknownHandler.java:274)
    com.opensymphony.xwork2.DefaultUnknownHandlerManager.handleUnknownResult(DefaultUnknownHandlerManager.java:76)
    com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:215)
.....


原因是:
Struts2没有找到匹配的result,比如返回input它却没有找到相应的input result 会偿试着用ACTION的class去新建一个对象所以报错了,就是你没有入口路径。。。

原配置:

<action name="getPerTaskList" class="jbpmCommonAction" method="getPersonalTaskList">
     <result name="success">/pages/jbpm/task_personal_list.jsp</result>
</action>

增加input后的配置,比如:

 <action name="getPerTaskList" class="jbpmCommonAction" method="getPersonalTaskList">
    <result name="success">/pages/jbpm/task_personal_list.jsp</result>
     <result name="input">/404.jsp</result>
</action>
 

你可能感兴趣的:(struts)