After restarting tomcat it started working by itself, but only if I've
overriden the default <welcome-file-list> in my web.xml or move
index.jsp out of the way, implying that the default tomcat servlet is
running *before* mine and then handing off to mine. I checked and
requesting a plain static file does get handled by my servlet instead of
the tomcat default, so this is only an issue with /
Joseph S wrote:
I have this in the web.xml of my application:
<servlet-mapping>
<servlet-name>
MyServlet
</servlet-name>
<url-pattern>
/
</url-pattern>
</servlet-mapping>
Which works fine, except for requests without pathinfo (i.e.
http://servername/ ). That still seems to be handled by the default
tomcat servlet, which is serving up the index.jsp that I no longer
want to use. Am I doing something wrong or is this a bug?
Incidentally I discovered you can't <welcome-file-list> by having an
empty element, you have to have at least one <welcome-file> in there
or the default servlet will use the one in $CATALINA_BASE/conf/web.xml
. Bug or feature?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org