tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Flaherty" <>
Subject Re: Tomcat Filter Mapping Issue
Date Sun, 10 Jan 2010 22:28:16 GMT
Uncle !

I just created a ROOT folder off of my appBase, cut and pasted all of what 
was in my appbase
into the new ROOT folder. Restart Tomcat and I try and hit the app with the 
hostname and I get
a 404 for /.
(If I add /ROOT to the appBase path and I can hit the app successfully.)

I tried Tomcat v5.5 and v6.0 with the same result. I move all my files from 
ROOT up one level
back into appBase , delete the ROOT folder, remove /ROOT from my appBase and 
I can hit the
app successfully ? AHHHHH!!!!!!!!!!!!!!!

Can anyone post a virtual host snippet from their server.xml ?

I have to be missing something in my server.xml.


From: "Caldarale, Charles R" <>
Sent: Sunday, January 10, 2010 3:40 PM
To: "Tomcat Users List" <>
Subject: RE: Tomcat Filter Mapping Issue

>> From: Patrick Flaherty []
>> Subject: Re: Tomcat Filter Mapping Issue
>> If I have 3 apps for a given <Host> then off my appBase I
>> would have :
>> /ROOT  (a must default for each <Host>)
>> /app2
>> /app3
>> To access these apps, the URL's for the apps would be :
>>  (This for the ROOT app)
>>  (This for the /app2 app)
>>  (This for the /app3 app)
> The above is correct, but not quite complete.  The default (ROOT) webapp 
> will handle any URIs that don't match any of the explicitly-named apps, 
> where the spec-defined rule is that the longest match wins.  For example, 
> if a user enters:
> the request will be directed to the default (ROOT) app, since it doesn't 
> match the known app2 or app3 patterns.
> - Chuck
> 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:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message