Unable to instantiate Action, com.src.Action.bgqhr-sgnlornm-vld-atqftmcx-mtladq-sd-80sg-qx-mhjd-idqrdx-qdc-fnkc-mekt, defined for 'bgqhr-sgnlornm-vld-atqftmcx-mtladq-sd-80sg-qx-mhjd-idqrdx-qdc-fnkc-mekt' in namespace '/'com.src.Action.bgqhr-sgnlornm-vld-atqftmcx-mtladq-sd-80sg-qx-mhjd-idqrdx-qdc-fnkc-mekt com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:307) com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:388) com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:187) org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61) org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39) com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:478) org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91) org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:102)

Root Cause

java.lang.ClassNotFoundException: com.src.Action.bgqhr-sgnlornm-vld-atqftmcx-mtladq-sd-80sg-qx-mhjd-idqrdx-qdc-fnkc-mekt
	org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1365)
	org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1188)
	com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:146)
	com.opensymphony.xwork2.ObjectFactory.getClassInstance(ObjectFactory.java:96)
	com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:149)
	com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:139)
	com.opensymphony.xwork2.ObjectFactory.buildAction(ObjectFactory.java:109)
	com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:288)
	com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:388)
	com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:187)
	org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)
	org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
	com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47)
	org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:478)
	org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
	org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
	org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:102)

Note 主要问题的全部 stack 信息可以在 server logs 里查看


Apache Tomcat/9.0.22