Jboss サーバー (EAP 6.4.X) がドメイン モードで動作しています。
domain.xml でカスタム ハンドラを定義しました。custom-handler 定義で指定されたクラスは、Jboss モジュールに含まれています。
定義は次のとおりです。
<custom-handler name="SomeCustomHandlerName" class="com.abc.def.SomeCustomHandler" module="com.abc.def">
<level name="ALL"/>
<properties>
...
<property name="somePropertyKey" value="${some.property.value}"/>
...
</properties>
</custom-handler>
Jboss を起動すると、次のエラーが表示されます。
2018-12-04 18:33:30,564 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014612: Operation ("add") failed - address: ([
("subsystem" => "logging"),
("custom-handler" => "SomeCustomHandlerName")
]) - failure description: "JBAS014802: Cannot resolve expression '${some.property.value}'"
ご覧のとおり、Jboss は${some.property.value}
システム プロパティを使用して式を解決しようとします。com.abc.def.SomeCustomHandler
ただし、この値はクラスによって内部的に解決される必要があります。
問題は、Jboss にこの値を解釈しないように指示し、生のプロパティ値としてSomeCustomHandler
クラスに渡す方法です。${}
たぶん、そのような簡単な脱出方法はあり\$\{\}
ますか?