tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 52138] global web.xml servlet-mappings are not used when additional mappings are defined in app web.xml
Date Tue, 08 Nov 2011 23:41:16 GMT

--- Comment #4 from Mark Thomas <> 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

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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message