I upgraded to mod_cluster 1.2.0. I saw that althought excluded-contexts=ROOT,admin-console,invoker,jbossws,jmx-console,juddi,web-console
in mod_cluster_manager I see
Contexts:
/, Status: ENABLED Request: 0 Disable
and mod_cluster does service the page on "/". Apearently "ROOT" does not mean "/" as I thought, or is it a bug? I tried to change the excluded-contexts
in jboss-cli, but got:
{code}
[standalone@localhost:9999 mod-cluster-config=configuration] :write-attribute(name=excluded-contexts, value="invoker,")
{
"outcome" => "failed",
"failure-description" => "JBAS014688: Wrong type for excluded-contexts. Expected [BOOLEAN] but was STRING",
"rolled-back" => true
}
{code}
Looks like a bug in
./modcluster/src/main/java/org/jboss/as/modcluster/ModClusterExtension.java: configuration.registerReadWriteAttribute(CommonAttributes.EXCLUDED_CONTEXTS, null, new WriteAttributeHandlers.ModelTypeValidatingHandler(ModelType.BOOLEAN, true), Storage.CONFIGURATION);
I have created AS7-3788
In fact you have to use:
excluded-contexts="default-host:ROOT" in AS7
The ROOT context problem should have been fixed by https://issues.jboss.org/browse/AS7-3620 in 710.