无法实例化的行动

来源:3-5 显示学生资料-页面调用与数据展现

醒来的只是躯壳

2015-08-26 10:35

HTTP Status 500 - Unable to instantiate Action, com.hy.action.StudentsAction, defined for 'Students_query' in namespace '/students'com.hy.action.StudentsAction




写回答 关注

1回答

  • 醒来的只是躯壳
    2015-08-26 10:36:22
    com.opensymphony.xwork2.XWorkException: Unable to instantiate Action, com.hy.action.StudentsAction,  defined for 'Students_query' in namespace '/students'com.hy.action.StudentsAction
    	at com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:314) ~[xwork-core-2.3.24.jar:2.3.24]
    	at com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:395) ~[xwork-core-2.3.24.jar:2.3.24]
    	at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:194) ~[xwork-core-2.3.24.jar:2.3.24]
    	at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63) ~[struts2-core-2.3.24.jar:2.3.24]
    	at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:37) ~[struts2-core-2.3.24.jar:2.3.24]
    	at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58) ~[xwork-core-2.3.24.jar:2.3.24]
    	at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:554) [struts2-core-2.3.24.jar:2.3.24]
    	at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81) [struts2-core-2.3.24.jar:2.3.24]
    	at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99) [struts2-core-2.3.24.jar:2.3.24]
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.57]
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.57]
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) [catalina.jar:7.0.57]
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) [catalina.jar:7.0.57]
    	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503) [catalina.jar:7.0.57]
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) [catalina.jar:7.0.57]
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) [catalina.jar:7.0.57]
    	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) [catalina.jar:7.0.57]
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) [catalina.jar:7.0.57]
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) [catalina.jar:7.0.57]
    	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070) [tomcat-coyote.jar:7.0.57]
    	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) [tomcat-coyote.jar:7.0.57]
    	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2466) [tomcat-coyote.jar:7.0.57]
    	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2455) [tomcat-coyote.jar:7.0.57]
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_45]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_45]
    	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-coyote.jar:7.0.57]
    	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
    Caused by: java.lang.ClassNotFoundException: com.hy.action.StudentsAction
    	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720) ~[catalina.jar:7.0.57]
    	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) ~[catalina.jar:7.0.57]
    	at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:152) ~[xwork-core-2.3.24.jar:2.3.24]
    	at com.opensymphony.xwork2.ObjectFactory.getClassInstance(ObjectFactory.java:135) ~[xwork-core-2.3.24.jar:2.3.24]
    	at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:188) ~[xwork-core-2.3.24.jar:2.3.24]
    	at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:178) ~[xwork-core-2.3.24.jar:2.3.24]
    	at com.opensymphony.xwork2.factory.DefaultActionFactory.buildAction(DefaultActionFactory.java:22) ~[xwork-core-2.3.24.jar:2.3.24]
    	at com.opensymphony.xwork2.ObjectFactory.buildAction(ObjectFactory.java:148) ~[xwork-core-2.3.24.jar:2.3.24]
    	at com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:295) ~[xwork-core-2.3.24.jar:2.3.24]
    	... 26 more


使用Struts2+Hibernate开发学生信息管理功能

Strust2+Hibernate整合开发案例,Java Web开发技能更上一层楼

80701 学习 · 754 问题

查看课程

相似问题