[
https://issues.jboss.org/browse/MODCLUSTER-467?page=com.atlassian.jira.pl...
]
Pierre-Luc Gregoire edited comment on MODCLUSTER-467 at 8/27/15 12:04 PM:
--------------------------------------------------------------------------
I have 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.
However, this fix is for modcluster extension in JBoss 7.2 and I don't think
there's an active branch for 7.2. I think this bug is still relevant since it's
for modcluster 1.2.x and modcluster 1.2.x is for JBoss 7.2... right?
Here is the link used to find how subsystem dependencies work :
https://developer.jboss.org/message/776404#776404
was (Author: plgregoire):
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.
https://developer.jboss.org/message/776404#776404
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.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)