tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Flaherty <>
Subject Re: Tomcat Filter Mapping Issue
Date Fri, 08 Jan 2010 20:49:15 GMT
If I use a host name of with a appBase of c:/FilterTest then  
doesn't c:/FilterTest become my web server root for
Is seems to work that way for us although it may not be the correct  
way to deploy a web app. The proofs folder is
just that a folder off the (Our c:/FilterTest) web root and we are  
try to get a "filter mapping" hit when you type

If you deploy an app off of %CATALINAHOME% then doesn't the user have  
to type ?
I want it to hit my app when I type That is  
how it works with our product today.

It starting to sound like the complete URL has to be part of % 
CATALINAHOME%'s path to get a filter hit ?


On Jan 8, 2010, at 2:16 PM, Caldarale, Charles R wrote:

>> From: Patrick Flaherty []
>> Subject: Re: Tomcat Filter Mapping Issue
>> I could not get it to work using our shipping configuration
>> which is appBase pointing to a folder off the c:\ drive.
> That's because you don't seem to understand the function of  
> appBase: it doesn't point to a single webapp, it points to a  
> *directory* under which each of your webapps is installed.  For  
> example, the single <Host> in the default Tomcat config is  
> $CATALINA_HOME/webapps, and under webapps, you'll find ROOT,  
> manager, docs, examples, etc.
> You appear to have placed your webapp named Proofs under the  
> default <Host>'s appBase, and everything works as expected.  To use  
> the webapp under the appBase of the <Host>, place the Proofs  
> directory (or .war file) under the declared C:\FilterTest directory:
> C:\FilterTest\
>   Proofs\
>     WEB-INF\
>       lib\
>       classes\
>     META-INF\
>       context.xml
> etc.
>> <filter-mapping>
>> <filter-name>FileAccessFilter</filter-name>
>> <url-pattern>/Proofs/*</url-pattern>
>> </filter-mapping>
> The <url-pattern> must not include the context name; it should  
> really be just /*.
>  - Chuck
> PROPRIETARY MATERIAL and is thus for use only by the intended  
> recipient. If you received this in error, please contact the sender  
> and delete the e-mail and its attachments from all computers.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message