Why is this error occurring?
I used maven to configure struts, so I modified the default path for the struts profile, as follows:
<!--configuring Struts--><filter><filter-name>struts2</filter-name><filter-class> Org.apache.struts2.dispatcher.ng.filter.strutsprepareandexecutefilter</filter-class><init-param> <param-name>config</param-name><param-value>, .... /.. /resources/struts.xml</param-value></init-param></filter><filter-mapping>< Filter-name>struts2</filter-name><url-pattern>*.cgi</url-pattern></filter-mapping>
Because it is not the default record, some of the parameters required by the framework cannot be loaded.
Workaround:
Modify
<param-value>, .... /.. /resources/struts.xml</param-value> for <param-value>struts-default.xml,struts-plugin.xml,.. /.. /resources/struts.xml</param-value>
Struts-default.xml (required), struts-plugin.xml (optional)
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Com.opensymphony.xwork2.inject.dependencyexception:com.opensymphony.xwork2.inject.containerimpl$mis