Mark,

Here is what I think is the relevant part of my server.xml you're asking
for...

<Host name="katchconstructionsupply.com" appBase="/home/katch/public_html">
<Context path="" docBase="/home/katch/public_html" />
</Host>

...this was the same configuration that I ran in 5.5.14.

Something that may be related and seems odd to me is that if I go into the
Tomcat Application Manager all of the static directories under the base are
listed as applications.  ....my host told me today that this was an
intentional design change to Tomcat at version 5.5.17?? Not sure I believe
that.

-Tad


-----Original Message-----
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 29, 2007 11:58 AM
To: Tomcat Users List
Subject: Re: Does a static directory now always take precedence to a
url-pattern?

Tad Woods wrote:
> The 5.5.23 version seems to give static directories total precedence over
> <url-patterns> defined in the web.xml. For example, in my application
root,
> I had a directory "/office" which contained static files and in my
> application's web.xml I mapped a servlet to the url-pattern "/office". In
> the older Tomcat this worked fine, matching the url-pattern if the URL was
> exactly "/office" or the static content if the URL was
"/office/something,"
> but in the newer Tomcat the existence of the static directory causes the
> url-pattern to be completely ignored. Is this the expected behavior or am
I
> missing something in the configuration that would give matching the
> <url-pattern> precedence again?

I think you are missing something. This works as expected for me.

Just a wild stab in the dark - what values are you using for the docBase
for your app and the host's appBase?

Mark

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to