亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

是否可以在 XInclude 屬性 href 中使用 Java 系統屬性變量?

是否可以在 XInclude 屬性 href 中使用 Java 系統屬性變量?

九州編程 2023-10-13 09:46:34
我正在使用 ActiveMQ Artemis splitbroker.xml 功能并包括 xml 文件。我正在嘗試使用 Java 系統屬性作為 xml 文件路徑。但它正在拋出錯誤。這是我正在嘗試的路線。<xi:include href="${amq.conf.broker.config}/broker-security-settings.xml"/>我已經單獨定義了-Damq.conf.broker.config=/var/amq/...。出現以下錯誤[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貢獻1775條經驗 獲得超11個贊

ActiveMQ Artemis 目前不支持在元素中使用系統屬性href替換include。然而,這似乎是一個不錯的功能,所以我為它打開了一個新的 JIRA并發送了PR。



查看完整回答
反對 回復 2023-10-13
  • 1 回答
  • 0 關注
  • 98 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號