You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Meghana Joglekar <me...@gmail.com> on 2005/04/27 01:53:38 UTC

Problems declaring same with diff names

Hi,

We are trying to integrate 2 products, both running on tomcat. They
both use same servlet class but refer to using different
<servlet-name>. here is a snippet from web.xml
------------------------------------------------------------------------------------------------------------------
<servlet>
        <servlet-name>control</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
            <param-name>config</param-name>
            <param-value>
                /WEB-INF/struts/struts-config_guide.xml
            </param-value>
        </init-param>
        <load-on-startup>300</load-on-startup>
</servlet>
<servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
            <init-param>
	<param-name>config</param-name>
	<param-value>/WEB-INF/struts-config.collage.xml</param-value>
            </init-param>
            <init-param>
	<param-name>detail</param-name>
	<param-value>2</param-value>
            </init-param>
         <load-on-startup>20</load-on-startup>
</servlet>
----------------------------------------------------------------------------------------------------------------
and there are mappings called '/control/*' and '/action/*' for both of
them respectively. But the reference loaded at later point of time
does not servlet instance for that class and all requests result in
'Invalid path requested' errors. e.g In above case 'control' servlet
is to be loaded after 'action' and all '/control/*' requests fail.
Is the configuration correct? If it is is this known bug and is there
any fix/workaround?
Any suggestion, advice is appreciated.

Thanks in advance,
Meghana.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org