1
解決表達我的設置變量WildFly:無法在Linux
standalone.conf.bat
set "DBO_PATH_CONFIG=D:/test"
set "MOBILE_KEYSTORE=jboss.mobile.keystore"
standalone.conf
set "DBO_PATH_CONFIG=/opt/!!!"
set "MOBILE_KEYSTORE=jboss.mobile.keystore"
standalone.xml
個<security-realm name="SslRealm">
<server-identities>
<ssl>
<keystore path="${env.DBO_PATH_CONFIG}/${env.MOBILE_KEYSTORE}" keystore-password="rmi+ssl"/>
</ssl>
</server-identities>
</security-realm>
屬性
<subsystem xmlns="urn:jboss:domain:naming:2.0">
<bindings>
<simple name="java:/propertiesFileName" value="NONE" />
<simple name="java:/propertiesFileNameV1" value="${env.DBO_PATH_CONFIG}/V1.properties" />
<simple name="java:/propertiesFileNameV2" value="${env.DBO_PATH_CONFIG}/V2.properties" />
</bindings>
<remote-naming />
</subsystem>
在Windows上的所有工作正常,但在Linux上我有這樣的錯誤:
10:57:34,512 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
("core-service" => "management"),
("security-realm" => "SslRealm")
]) - failure description: "WFLYCTL0211: Cannot resolve expression '${env.DBO_PATH_CONFIG}/${env.MOBILE_KEYSTORE}'"
如何解決這個問題呢?