我正在使用 ActiveMQ Artemis splitbroker.xml 功能并包括 xml 文件。我正在嘗試使用 Java 系統(tǒng)屬性作為 xml 文件路徑。但它正在拋出錯(cuò)誤。這是我正在嘗試的路線。<xi:include href="${amq.conf.broker.config}/broker-security-settings.xml"/>我已經(jīng)單獨(dú)定義了-Damq.conf.broker.config=/var/amq/...。出現(xiàn)以下錯(cuò)誤[Fatal Error] :116:82: An include with href '${amq.conf.broker.config}/broker-security-settings.xml'failed, and no fallback element was found.org.xml.sax.SAXParseException; lineNumber: 116; columnNumber: 82; An include with href '${amq.conf.broker.config}/broker-security-settings.xml'failed, and no fallback element was found. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339) at org.apache.activemq.artemis.utils.XMLUtil.readerToElement(XMLUtil.java:84) at org.apache.activemq.artemis.utils.XMLUtil.streamToElement(XMLUtil.java:57) at org.apache.activemq.artemis.utils.XMLUtil.urlToElement(XMLUtil.java:66) at org.apache.activemq.artemis.core.config.FileDeploymentManager.readConfiguration(FileDeploymentManager.java:70) at org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:61) at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:85) at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:150) at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:98) at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:125) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:129) at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:49)
1 回答

繁星淼淼
TA貢獻(xiàn)1775條經(jīng)驗(yàn) 獲得超11個(gè)贊
ActiveMQ Artemis 目前不支持在元素中使用系統(tǒng)屬性href
替換include
。然而,這似乎是一個(gè)不錯(cuò)的功能,所以我為它打開了一個(gè)新的 JIRA并發(fā)送了PR。
添加回答
舉報(bào)
0/150
提交
取消