Hi all, It was caching issue with my IDE... It works fine now :) Sorry for the inconvenience.
-----Original Message----- From: Kris Schneider [mailto:kschnei...@gmail.com] Sent: Monday, December 05, 2011 10:59 PM To: Tomcat Users List Subject: Re: Tomcat filter-mapping dispatcher forward On Mon, Dec 5, 2011 at 2:12 PM, Hodchenkov, Paul <paul.hodchen...@oxagile.com> wrote: > It works when using servlet 3.0 annotations api... I will write the simplest > test case > > Sent from my iPad > > On 05.12.2011, at 20:49, "Mark Thomas" <ma...@apache.org> wrote: > >> On 05/12/2011 14:45, Hodchenkov, Paul wrote: >>> Hi all, >>> I am trying to configure dispatcher forward rule for filter in tomcat 7.0.22 >>> <filter-mapping> >>> <filter-name>UrlRewriteFilter</filter-name> >>> <url-pattern>/*</url-pattern> >>> <dispatcher>REQUEST</dispatcher> >>> <dispatcher>FORWARD</dispatcher> >>> </filter-mapping> >> >> That looks right at first glance. What does the <web-app> element look like? Is the proper version attribute being used, along with the correct namespaces/locations? >>> However, tomcat ignores dispatcher definition and does not fill dispatchers >>> in org.apache.catalina.deploy.FilterMap (used debug) , so it always returns >>> REQUEST in getDispatcherMapping. >> >> Hmm. Odd. This is tested by the TCK that every Tomcat release must pass >> so I don't think there is a bug - or if there is it is an odd edge case. >> >> I'd suggest that the way forward is to write the simplest possible test >> case (1 * JSP + 1 * Servlet + web.xml should be plenty) that >> demonstrates this issue. If you still see the issue with that test case, >> it will probably be time to open a bug. >> >> Mark -- Kris Schneider --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org