https://issues.apache.org/bugzilla/show_bug.cgi?id=52138

--- Comment #4 from Mark Thomas <ma...@apache.org> 2011-11-08 23:41:16 UTC ---
To expand on my previous comment...

When servlet mappings are overridden (e.g. fragment overrides annotations, or
application overrides global) all servlet mappings from the overridden source
are dropped. The reason for this is simple. If annotations are used to map a
servlet to *.foo but the developer wants to change that to *.bar, there is no
way to explicitly remove one or more mappings. Therefore, all overridden
mappings are removed. The price that is paid for this is that if a developer
wants to add a mapping, they have to specify all the overridden mappings as
well.

This behaviour has been confirmed as required and correct with the Servlet EG
for fragments, annotations and main web.xml. The global defaults just follow
this pattern.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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