tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Meghana Joglekar <megha...@gmail.com>
Subject Problems declaring same <servlet-class> with diff names
Date Tue, 26 Apr 2005 23:53:38 GMT
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


Mime
View raw message