[
https://issues.jboss.org/browse/WFCORE-4729?page=com.atlassian.jira.plugi...
]
Brian Stansberry commented on WFCORE-4729:
------------------------------------------
The named-formatter attribute of a console-hander resource does not allow expressions for
it's value:
{code}
[standalone@embedded /]
/subsystem=logging/console-handler=CONSOLE:read-resource-description
...
"named-formatter" => {
"type" => STRING,
"description" => "The name of the defined formatter to
be used on the handler.",
"expressions-allowed" => false,
"required" => false,
"nillable" => true,
"alternatives" => ["formatter"],
"capability-reference" =>
"org.wildfly.logging.formatter",
"min-length" => 1L,
"max-length" => 2147483647L,
"access-type" => "read-write",
"storage" => "configuration",
"restart-required" => "no-services"
}
{code}
This is because its value holds a reference to the name of another resource. Attributes
whose values are such references don't allow expressions, because the value must be
known at boot before expressions can be resolved.
System property variable substitution not working for
named-formatter
---------------------------------------------------------------------
Key: WFCORE-4729
URL:
https://issues.jboss.org/browse/WFCORE-4729
Project: WildFly Core
Issue Type: Bug
Components: Logging
Affects Versions: 10.0.0.Final
Reporter: Jason White
Assignee: James Perkins
Priority: Major
The follow FATAL error occurs at start up after attempting to configure a variable
substitution for a named-formatter in the logging subsystem in standalone.xml:
{noformat}
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /home/jasonwhite/apps/wildfly-18.0.0.Final
JAVA: /home/jasonwhite/apps/jdk/bin/java
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m
-Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman
-Djava.awt.headless=true
=========================================================================
15:47:59,418 INFO [org.jboss.modules] (main) JBoss Modules version 1.9.1.Final
15:47:59,732 INFO [org.jboss.msc] (main) JBoss MSC version 1.4.11.Final
15:47:59,745 INFO [org.jboss.threads] (main) JBoss Threads version 2.3.3.Final
15:47:59,848 INFO [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: WildFly Full
18.0.0.Final (WildFly Core 10.0.0.Final) starting
15:48:00,460 INFO [org.wildfly.security] (ServerService Thread Pool -- 24) ELY00001:
WildFly Elytron version 1.10.3.Final
15:48:00,899 INFO [org.jboss.as.controller.management-deprecated] (Controller Boot
Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address
'/core-service=management/management-interface=http-interface' is deprecated, and
may be removed in a future version. See the attribute description in the output of the
read-resource-description operation to learn more about the deprecation.
15:48:00,926 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread
Pool -- 36) WFLYCTL0028: Attribute 'security-realm' in the resource at address
'/subsystem=undertow/server=default-server/https-listener=https' is deprecated,
and may be removed in a future version. See the attribute description in the output of the
read-resource-description operation to learn more about the deprecation.
15:48:00,961 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362:
Capabilities required by resource '/subsystem=logging/console-handler=CONSOLE' are
not available:
org.wildfly.logging.formatter.${some.property:COLOR-PATTERN}; Possible registration
points for this capability:
/subsystem=logging/pattern-formatter=*
/subsystem=logging/custom-formatter=*
/subsystem=logging/json-formatter=*
/subsystem=logging/xml-formatter=*
/subsystem=logging/logging-profile=*/pattern-formatter=*
/subsystem=logging/logging-profile=*/custom-formatter=*
/subsystem=logging/logging-profile=*/json-formatter=*
/subsystem=logging/logging-profile=*/xml-formatter=*
15:48:00,966 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server
boot has failed in an unrecoverable manner; exiting. See previous messages for details.
15:48:00,980 INFO [org.jboss.as] (MSC service thread 1-2) WFLYSRV0050: WildFly Full
18.0.0.Final (WildFly Core 10.0.0.Final) stopped in 5ms
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)