https://bz.apache.org/bugzilla/show_bug.cgi?id=64818

--- Comment #4 from Mark Thomas <ma...@apache.org> ---
The text from the spec is:

<quote>
If the effective web.xml (after merging information from fragments and
annotations) contains any url-patterns that are mapped to multiple servlets
then the deployment must fail.
</quote>

I've traced this back to the original EG discussion and it was only considering
one URL pattern mapping to multiple Servlets. The case of duplicate mappings
(same URL, same servlet) was not discussed.

While I accept that the spec language is not as explicit as I thought, I remain
of the view that this should be a WONTFIX. If this situation arises, clearly an
error has occurred. The proposed solution assumes one particular error and
"auto-corrects" based on that assumption. However, the assumption may not be
valid. I think it is better to fail the deployment and require the error to be
fixed rather than making assumptions about how it should be fixed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to