No action instance for path /* could be created
来源:互联网 发布:算法分析 知识总结 编辑:程序博客网 时间:2024/06/05 00:50
很久没有使用struts了.今天调试一个struts项目的时候,就碰到一个这样的错误:
HTTP Status 500 - No action instance for path /* could be created
真让我很郁闷了半天.这个错误意思是:请求所对应的action的实例无法创建。
以下是我的排错步骤:
1)检查一下配置文件struts-config的问题
例如,某一个action在struts-config.xml的配置如下:
<action
parameter="method"
scope="request"
path="/userAction"
name="userForm"
type="test.struts.action.UserAction"
validate="false">
<forward name="manageplugins" path="/admin/page/pluginsconfig/pluginsconfig.jsp" />
</action>
2)检查编写的Action类是否继承struts的基类Action, DispatchAction, LookupDispatchAction
如果没有继承struts的基类或者继承错了,例如:
public class dispatchAction {
也会报这样的错误
3)版本问题
在开发环境中使用的是struts的高版本,在运行环境中使用的是struts的低版本.
如在开发环境中,使用struts1.1以上版本,编写的Action类继承struts的基类DispatchAction.
但在运行环境中部署的是struts低版本的jar包,也会报这样的错误.
这种情况就是很多人说的在一台电脑上运行没问题,但换成了另一台电脑就出问题了.
- 错误:No action instance for path /login could be created
- No action instance for path /* could be created(
- No action instance for path /leftTreeMenu could be created
- No action instance for path /serviceAgency could be created
- No action instance for path /* could be created
- Struts中关于"No action instance for path XXX could be created"的问题
- HTTP Status 500 - No action instance for path /store could be created
- HTTP Status 500 - No action instance for path /login could be created
- Spring管理Struts No action instance for path /login could be created
- HTTP Status 500 - No action instance for path /student could be created
- No actino instance for path /user could be created
- The server encountered an internal error (No action instance for path /user could be created) that prevented it from fulfilling
- 完美解决HTTP Status 500 - No action instance could be created的问题
- No action instance for path
- struts No action instance for path 异常
- webpy服务端口no socket could be created
- Problems & Solutions -- 9 No Socket could be created
- No appenders could be found for logger
- 关于面试
- Python Intro - Numpy function vectorize
- 黑马程序员_JAVA反射机制(一)
- 关于js校验,检验常见的比如:电话,数字,邮箱,手机号等等
- Android 自定义view
- No action instance for path /* could be created
- Java多线程简介
- QtCreator中添加库
- [POJ 2187]Beauty Contest(旋转卡壳)
- SOA中怎样确定服务的粒度
- Tomcat性能监控LambdaProbe
- 一个好的多核支持人员应必备的素质
- Eclipse中maven项目JDK配置报错红叉问题
- IOS 四种保存数据的方式