Okay, I have a web app that maps "/" to servlet X. According to the Servlet
spec, this is supposed to make X the default servlet. Also, according to the
spec, the container is supposed to do a recursive search for the longest
matching path.

Here's the problem, when requests come in for things like: /images/img.gif,
the container is mapping those to X as well. Ouch! Basically, "/" is being
interpreted to mean "/*".

The strange thing is that, while playing around with it, I redeployed once
and, all of a sudden, it worked correctly. Then, when I redeployed later
(changing something totally unrelated and not web.xml), it went back to the
incorrect behavior.

Has anyone else encountered this behavior? Is this a bug? I'm using 1.4.5.

Help would be greatly appreciated,
Dan Cramer
Chief Architect
Dynamic Resolve, LLC
Internet Solutions Consulting


Reply via email to