tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat Filter Mapping Issue
Date Fri, 08 Jan 2010 20:32:41 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 1/8/2010 2:16 PM, Caldarale, Charles R wrote:
> You appear to have placed your webapp named Proofs under the default
> <Host>'s appBase, and everything works as expected.

Not quite, since a webapp called "Proofs" would require a filter-mapped
URL like /* to match his filter. Instead, his filter-mapping is for
/Proofs/*. If the webapp were deployed as /Proofs, then the URLs would
have to be http://localhost/Proofs/Proofs/1/calendar.png in order to match.

> To use the webapp
> under the appBase of the ft.com <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.

Given the above, I think Pid is right, and Patrick wants to use a
ROOT.war under C:\FilterTest

>> <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 /*.

If the webapp is really called Proofs, then yes, the filter mapping
ought to be "/*".

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktHlmkACgkQ9CaO5/Lv0PA70wCfYUW+sIcsKl+P5bEAijHtoVNW
hMMAn3aTtKzujVJK3+uIFYcS3jGr/YH4
=Ci87
-----END PGP SIGNATURE-----

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


Mime
View raw message