tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Chapman <andrew.chap...@brighterworking.com>
Subject Who gets which request?
Date Tue, 20 Sep 2011 08:53:19 GMT
I have a Tomcat 7.0.16 install with two WAR based webapps in it.

First test case:
Two war files in <tomcat-home>/webapps at startup
1. ROOT.war
2. another.war
If I request http://localhost:8080/another/something it goes to the 
another webapp.

Second test case:
Two war files in <tomcat-home>/webapps at startup
1. ROOT.war
2. wibble.war
If I request http://localhost:8080/wibble/something it goes to the ROOT 
webapp.

Third test case:
One war file in <tomcat-home>/webapps at startup
1. ROOT.war
Second war file added to <tomcat-home>/webapps after startup (with 
auto-deploy on)
2. another.war
If I request http://localhost:8080/another/something it goes to the ROOT 
webapp.

It looks like Tomcat is adding the webapps contexts to it's "filter" 
list in alphabetical order at startup and then adding any auto-deployed 
WARs afterwards but I can't believe it is that simple. Can anyone 
give/link to a proper explanation?

Cheers





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message