Roger, It sounds like you've created a web application to hold these servlets, and Tomcat is inserting the name of the web application when creating the path to the 'exit.htm's that you're trying to replace.
If you try this using the ROOT web application, it should do what you're wanting. Alternatively, try creating two new web applications - one call 'ipshtml', and the other called 'elcomhtml' and put your two different 'exit.htm' servlet replacements in their respective webapps. HTH, Dan. > -----Original Message----- > From: Varley, Roger [mailto:[EMAIL PROTECTED]] > Sent: 21 January 2003 15:19 > To: Tomcat Users List (E-mail) > Subject: URL mapping problem > > > Hi > > (Tomcat 3.2, IIS 4.0 Win NT5.0 Sp6) > > I have a commercial web application (to which I have no access to the > source) that exists in two configurations (i.e two sets of web directories > below Inetpub/wwwroot). The application ends by calling exit.htm in their > respective html directories (ipshtml and elcomhtml). I need to do > some extra > processing and want to replace these calls to exit.htm with calls to > servlets that exist in a Tomcat web application. Each call needs > a different > servlet although they are in the same Tomcat web application > > I've put the following entries in uriworkermap.properties (one for each of > the applications) > > /ipshtml/exit.htm=$(default.worker) > /elcomhtml/exit.htm=$(default.worker) > > and after restarting both tomcat and IIS, I can see from the > isapi.log that > IIS is correctly identifying both these calls as servlet URLS and > hands off > to tomcat. > > What I'm having problems with is configuring the web.xml file to find the > servlet. I started with > > <servlet-mapping> > <servlet-name>ExitReplacement</servlet-name> > <url-pattern>/ipshtml/exit.htm</url-pattern> > </servlet-mapping> > <servlet-mapping> > <servlet-name>ElcomExit</servlet-name> > <url-pattern>/elcomhtml/exit.htm</url-pattern> > </servlet-mapping> > > but calls to either ipshtml/exit.htm and elcomhtml/exit.htm both > return 404. > If I change to > > <servlet-mapping> > <servlet-name>ExitReplacement</servlet-name> > <url-pattern>/exit.htm</url-pattern> > </servlet-mapping> > <servlet-mapping> > <servlet-name>ElcomExit</servlet-name> > <url-pattern>/exit.htm</url-pattern> > </servlet-mapping> > > then Tomcat logs that it's removing duplicate exit.htm's during > startup and > calls to both /ipshtml/exit.htm and /elcomhtml/exit.htm resolve to > ElcomExit. If I reverse the order of the servlet mapping entries then both > resolve to ExitReplacement. > > So, how do I map /ipshtml/exit.htm to ExitReplacement and > /elcomhtml/exit.htm to ElcomExit when both ExitReplacement and ElcomExit > exist in the same Tomcat Web Application. > > I hope that this makes sense. > > Regards > Roger > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>