[jboss-jira] [JBoss JIRA] (WFCORE-1703) It is not possible to set jboss.modules.system.pkgs per server in domain mode
Brian Stansberry (JIRA)
issues at jboss.org
Wed Aug 10 09:26:00 EDT 2016
[ https://issues.jboss.org/browse/WFCORE-1703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry updated WFCORE-1703:
-------------------------------------
Workaround Description:
Working solution is to add the following for the server in {{host.xml}}:
{code:xml}
<server name="server-one" group="main-server-group">
<system-properties>
<property name="jboss.modules.system.pkgs" value="my.package"/>
</system-properties>
..
{code}
Workaround: Workaround Exists
Great; glad it works. I'll leave this open because even though the intended use is to use the system-properties configuration element, having the jvm option logic detect and deal with -D options is a valid improvement.
> It is not possible to set jboss.modules.system.pkgs per server in domain mode
> -----------------------------------------------------------------------------
>
> Key: WFCORE-1703
> URL: https://issues.jboss.org/browse/WFCORE-1703
> Project: WildFly Core
> Issue Type: Bug
> Components: Domain Management
> Affects Versions: 2.2.0.Final
> Reporter: Bogdan Ilchyshyn
> Priority: Minor
>
> It is not possible to set {{jboss.modules.system.pkgs}} property per server / server group in domain configuration. Even when the following configuration is added to {{host.xml}}:
> {code:xml}
> <server name="server-one" group="main-server-group">
> <jvm name="default">
> <jvm-options>
> <option value="-Djboss.modules.system.pkgs=my.package"/>
> ...
> {code}
> It is overridden by configuration in {{domain.conf}}:
> {noformat}
> JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"
> {noformat}
> This is an issue for configuring third-party java agents per-server. A problem described in WFLY-895 adds to this. One should either add a whole bunch of things to _all_ jvms in domain in order to make agent work, or remove config from {{domain.conf}} to avoid overrides.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list