This is to with struts not tomcat ... 

The below link can help  ( for struts )

http://struts.apache.org/userGuide/configuration.html#dd_config_modules

Regards
Guru


-----Original Message-----
From: Meghana Joglekar [mailto:[EMAIL PROTECTED] 
Sent: 27 April 2005 00:54
To: tomcat
Subject: Problems declaring same <servlet-class> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to