I have a Maven project with multiple modules. Out of four modules, two of them are web modules.
Here is the structure.
MyProject
|
|__ api
|
Specify explicitly config file in the struts filter initialization parameter.
<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>struts.xml,struts-config.xml,struts-default.xml,struts-plugin.xml</param-value>
</init-param>
</filter>