tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: URL Mapping for filter not the same on tomcat as it is on TomEE?
Date Wed, 26 Nov 2014 13:36:01 GMT
2014-11-24 23:05 GMT+03:00 zack6849 <zack@zack6849.com>:
> Hello, i've found some strange issue with the url mapping with tomcat, i've
> tested this on tomcat8 and TomEE, it seems easily reproducable.
>
> I have a Filter listening to requests matching "/uploads/*" (all files
> inside of my uploads directory"
>
> On TomEE, this filter is fired for requests just as one would expect,
> however on tomcat8, it does *not*
>
> Example:
>
> /uploads/test.jpg as a file request, the filter fires on TomEE, but not
> tomcat, same code, only difference being the servlet mapping.
>
> Does anyone know what could be causing this?
>
> Relevant code attached below
>
>
>    |@WebFilter(urlPatterns = "/uploads/*")||
>    ||public class StatisticsFilter implements Filter {||

1. What is in your web.xml?
2. Exact versions of Tomcat, Java = ?

(Are annotations processed? It is configurable in web.xml.)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message