tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: Who gets which request?
Date Tue, 20 Sep 2011 09:12:38 GMT
Andy Chapman wrote:
> 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.

That is the expected behaviour.

> 
> 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.

That does not look normal.
But, how do you *really* know that it /goes to/ the ROOT webapp ?
Can you provide some details ?

> 
> 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.
>
That does not look normal either.
But, how do you *really* know that it /goes to/ the ROOT webapp ?
Can you provide some details ?

> 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?

read this carefully :
http://tomcat.apache.org/tomcat-7.0-doc/deployer-howto.html



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


Mime
View raw message