不能初始化action Unable to instantiate Action, homePageAction
来源:互联网 发布:淘宝介入有用吗 编辑:程序博客网 时间:2024/05/22 16:54
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
Unable to instantiate Action, homePageAction, defined for 'HomePageAction' in namespace '/ztg'homePageActioncom.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:316)com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:397)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:553)org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
root cause
java.lang.ClassNotFoundException: homePageActionorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:152)com.opensymphony.xwork2.ObjectFactory.getClassInstance(ObjectFactory.java:108)com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:233)com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:153)com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:151)com.opensymphony.xwork2.ObjectFactory.buildAction(ObjectFactory.java:121)com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:297)com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:397)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:553)org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)解决原因是 action忘记加 @Controller@Scope("prototype")所以不能初始化
0 0
- 不能初始化action Unable to instantiate Action, homePageAction
- Unable to instantiate Action
- Unable to instantiate Action
- Unable to instantiate Action
- Unable to instantiate Action
- Unable to instantiate Action解决
- Unable to instantiate Action, UserAction
- Unable to instantiate Action或者Unable to instantiate default tuplizer
- Unable to instantiate Action错误的解决
- 关于Xwork异常 : Unable to instantiate Action
- Unable to instantiate Action错误的解决
- HTTP Status 500 - Unable to instantiate Action
- struts2+spring Unable to instantiate Action
- Unable to instantiate Action(Action无法实例化)
- Unable to instantiate Action, Action, defined for 解决方法
- spring Unable to instantiate Action一个很伤心的错误!
- Unable to instantiate Action,,,,,,,,,defined for ',,,' in namespace '/,,,'null
- Unable to instantiate Action,,,,,,,,,defined for ',,,' in namespace '/,,,'null
- 线段树Codeforces Beta Round #35 (Div. 2)
- 页面视频播放器
- POJ 2063 Investment (完全背包)
- ZooKeeper
- Java反射机制
- 不能初始化action Unable to instantiate Action, homePageAction
- hdu 1420 终于知道错哪了,
- Java性能优化(概述)
- poj 2499 Binary Tree(水题)
- [LeetCode] Binary Tree Preorder Traversal [40]
- highchart实时曲线实例:highchart实时曲线,java web
- Esper事件处理引擎_7_EPL 语法_3_Output 输出条件语法
- DCT变换编码及C语言实现 (2010-09-04 18:20:55)转载▼
- android编译系统makefile(Android.mk)写法