]
Pierre-Luc Gregoire commented on MODCLUSTER-467:
------------------------------------------------
I will submit a fix using a system property to add a dependency on the desired host when
the subsytem start. In ModClusterSubsystemAdd :
.addDependency(ServiceName.parse("jboss.web.host.default-host")) where
"jboss.web.host.default-host" could be a system property. Maybe not the best
option but I tested it and it works well. This ensure that the host used in
excludedContexts is initialized.
Here is the link used to find how subsystem dependencies work.
ExcludedContexts are ignored if modcluster subsystem initialize
before default-host
-----------------------------------------------------------------------------------
Key: MODCLUSTER-467
URL:
https://issues.jboss.org/browse/MODCLUSTER-467
Project: mod_cluster
Issue Type: Bug
Components: Core & Container Integration (Java)
Affects Versions: 1.2.11.Final
Reporter: Pierre-Luc Gregoire
Assignee: Jean-Frederic Clere
Labels: jboss
With JBoss 7.2.0.Final, modcluster will ignore excludedContexts defined in modcluster
subsystem (ie jmx-console, ROOT). This is caused by engine.getHosts() not yet available
when org.jboss.modcluster.ModClusterService.init(Server) try to setup his list of
excludedContexts.