Details
-
Task
-
Resolution: Won't Do
-
Major
-
JBossAS-4.0.3 SP1
-
None
Description
Now that JBAS-2410 has been verified and resolved, there needs to be an evaluation of hosts deployed on the tomcat instance.
The problem is this:
TomcatDeployer.java
----------------------------
protected synchronized Iterator mapVirtualHosts(Iterator vhostNames)
throws Exception
{
if( vhostToHostNames.size() == 0 )
{
// Query the configured Host mbeans
String hostQuery = config.getCatalinaDomain() + ":type=Host,*";
ObjectName query = new ObjectName(hostQuery);
Set hosts = server.queryNames(query, null);
Iterator iter = hosts.iterator();
.....
config.getCatalinaDomain() is going to return "jboss.web" or whatever that is defined in the tomcat sar jboss-service.xml file. If the server.xml defines multiple tomcat services, then the domain for the services is going to be the names of the tomcat services used. Hence this reliance on config.getCatalinaDomain may not return the right hosts.
Please validate the hosts to work on multiple services.
A similar issue may exist with ClusteredSingleSignOnValve in initialization of the cache.