SSH 报错 HTTP Status 500 - Unable to instantiate Action, adminAction, defined for 'admin_login' in namespace '/'adminAction type Exception report message Unable to instantiate Action, adminAction, def

异常信息:

  

HTTP Status 500 - Unable to instantiate Action, adminAction, defined for 'admin_login' in namespace '/'adminAction

 

type Exception report

message Unable to instantiate Action, adminAction, defined for 'admin_login' in namespace '/'adminAction

description The server encountered an internal error that prevented it from fulfilling this request.

exception

Unable to instantiate Action, adminAction,  defined for 'admin_login' in namespace '/'adminAction
	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:501)
	org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
	org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)

root cause

java.lang.ClassNotFoundException: adminAction
	org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1295)
	org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1147)
	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:300)
	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:501)
	org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
	org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)

note The full stack trace of the root cause is available in the Apache Tomcat/8.0.15 logs.


Apache Tomcat/8.0.15

 

报的错是找不到action ,我一看struts配置文件里面有配置action啊,然后才发现 我在spting的配置中少了一个 相应的 bean,我也是醉了,要更加细心啊

posted @ 2017-08-15 09:58  韩立小瓶  阅读(1355)  评论(0编辑  收藏  举报