> From: Patrick Flaherty [mailto:pflah...@rampageinc.com]
> 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 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.

> <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


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to