You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Guy Caseley <gu...@guycaseley.com> on 2003/07/03 20:14:38 UTC
Multiple application modules without default module doesn't work
for me
I recently took advantage of the application modules feature in
Struts1.1, and split a larger application into several modules. This
worked fine until I removed the default module (so all modules were
sub-apps) and everything stopped working. Do you always need a default
module?
Here is an extract from my web.xml
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<!-- Seem to need a default app in order to start up properly? -->
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config/customer</param-name>
<param-value>/WEB-INF/struts-config-customer.xml</param-value>
</init-param>
<init-param>
<param-name>config/business</param-name>
<param-value>/WEB-INF/struts-config-business.xml</param-value>
</init-param>
</servlet>
If I remove the first <init-param> (param-name=config) all the other
modules stop working. Is this expected behaviour? If so, is there any
particular reason for this? If not, any suugestions for what could be
causing the sub-modules to break?
Thanks,
Guy
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org