Can you tell us first what the rules are, and then which filter will be invoked ? If you understand the rule, you'll be able to figure it out. You'll also understand that we need the servlet mapping for ServletToFilter too.

This is true for servlets but NOT for filters. Remko is correct. <url-pattern> matches will be added in the order they are declared in the DD. Then the <servlet-name> matches are added to the end of that, also in the order they are declared in the DD.