Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 93152CBC0 for ; Wed, 26 Nov 2014 13:38:45 +0000 (UTC) Received: (qmail 32430 invoked by uid 500); 26 Nov 2014 13:38:42 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 32365 invoked by uid 500); 26 Nov 2014 13:38:41 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 32354 invoked by uid 99); 26 Nov 2014 13:38:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Nov 2014 13:38:41 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of knst.kolinko@gmail.com designates 209.85.192.50 as permitted sender) Received: from [209.85.192.50] (HELO mail-qg0-f50.google.com) (209.85.192.50) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Nov 2014 13:38:37 +0000 Received: by mail-qg0-f50.google.com with SMTP id i50so1978845qgf.23 for ; Wed, 26 Nov 2014 05:36:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=X2bXEEUdx7SkU76hQZFnYjD6p0FOsxckYqxBkjW8kGg=; b=JVRdhl6hKMLrODE7RwqiIKoQoqn9xrDEdn4VI6lRsKpgpgPL2IT/s3fIbF9zwQRgYW pGIms6czQ6q4Tr7P97qoBV9+6VxUS7JivtosFmjxWh7alXSivu9AsvsEbie+HlyR/qK4 d2r5KvuhpsRLuF7f1iv5hBRpmB8FJJdSJE6OH3snc3/dZ8tp4DZWB9Tj0R4Qui4FcX/I UdgaKbXsAQdNaDQebPMiCBoxaU2IbqF9ClNUQNx/f/+9v1mAN2stM0G1Jgbidd1rs86a 4HC/IPjjcGlI6IrrBpzZukDllqfqzdFyrA3kIejpZNQos/lDuyuhx65iYJzeVzOeQU9U YsyA== MIME-Version: 1.0 X-Received: by 10.224.11.10 with SMTP id r10mr46668837qar.42.1417008961744; Wed, 26 Nov 2014 05:36:01 -0800 (PST) Received: by 10.140.106.227 with HTTP; Wed, 26 Nov 2014 05:36:01 -0800 (PST) In-Reply-To: <54738FA4.1040700@zack6849.com> References: <54738FA4.1040700@zack6849.com> Date: Wed, 26 Nov 2014 16:36:01 +0300 Message-ID: Subject: Re: URL Mapping for filter not the same on tomcat as it is on TomEE? From: Konstantin Kolinko To: Tomcat Users List Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org 2014-11-24 23:05 GMT+03:00 zack6849 : > 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