> From: Patrick Flaherty [mailto:pflah...@rampageinc.com]
> Subject: Re: Tomcat Filter Mapping Issue
> 
> Meaning every host should have a ROOT app regardless of whether you are
> hosting ONE or MORE apps on a host !

Correct.

> That is what I had. I had the ROOT app off the webapps folder of a
> default Tomcat install.

No, that ROOT app applied only to the default <Host> - no others.  Each <Host> 
has an entirely separate and independent set of webapps.

> We then created a virtual host (with a real domain name) where OUR
> app responded to that domain name. (ie Host Name : www.myapp.com
>  appBase =  c:/myapp)

No, an app is not equivalent to a domain (<Host>) name.  As stated previously 
by several of us, the ROOT app for the particular <Host> will handle any 
requests directed to the <Host> that do not map to any other apps *for that 
<Host>*.  Again, each <Host> is completely independent of the others.

> Everything in this config has worked for a couple years. The infamous
> Proofs folder was located in c:/myapp/Proofs which I assume c:/myapp
> to be the "web root" for this www.myapp.com host.

Whatever you had working appears to have been dumb luck, and dependent on 
undefined behavior of having an empty docBase (which is illegal).

> After suggestions from the forum about moving the app (WEB_INF and
> all) under a ROOT folder I added to c:/myapp folder which now contains
> everything for the app under it, viola, Filter Mapping started to work !

Because you were finally using a valid configuration.

> Do people have secondary app (after ROOT) setup like I described above
> running  with filter mapping functioning ?

Sure.  The filter mapping goes into the WEB-INF/web.xml of the webapp, 
regardless of the webapp's name.

> Seems like maybe a bug to me or a misconfiguration of some 
> sort on my part.

Misconfiguration, and misunderstanding of the independence of <Host> elements 
along with the proper use of appBase and the derivation of each app's docBase.

 - 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