> From: Patrick Flaherty [mailto:pflah...@rampageinc.com]
> Subject: Re: Tomcat Filter Mapping Issue
> 
> To solve it, I simply removed the docBase="" from the <Host> ?

Note that we mentioned an empty docBase was illegal quite some time ago.

You should not have *any* <Context> elements in server.xml.  Whatever you've 
been reading that suggested you do so is sadly out of date, or flat-out wrong.  
Again, use the real Tomcat doc, not 3rd-party scribblings.

> it's ok not to have a docBase ?

There is always a docBase; but when the <Context> elements are properly 
located, it's calculated automatically from the location of the webapp.

For Tomcat versions starting with 5.0.x, the proper place to put your <Context> 
elements is in each app's META-INF/context.xml file.  When doing so, the path 
and docBase attributes must be omitted.  An alternate location for <Context> 
elements is in conf/Catalina/[host]/[appName].xml, and again the path attribute 
must be omitted.  You *may* use the docBase attribute in this latter case, but 
only if the webapp is located outside of the <Host> appBase directory.

Again, post your server.xml and we'll show you what to fix.

 - 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