更新后的 ActiveMQ Artemis 和代理将无法启动

Updated ActiveMQ Artemis and broker will not start

我将 Artemis 从 2.20.0 更新到 2.21.0。现在经纪人不会启动!

ERROR:
org.xml.sax.SAXParseException; lineNumber: 19; columnNumber: 44; cvc-elt.1.a: Cannot find the declaration of element 'broker'
java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)

我将<broker>标签移动到bootstrap.xml中的第20行,它对应于错误消息中的lineNumber

这是我的 bootstrap.xml:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<broker xmlns="activemq.org/schema">
   <jaas-security domain="activemq"/>
   <server configuration="${artemis.URI.instance}/etc/broker.xml"/> 
   <web bind="localhost:23161" path="web">
      <!-- <app url="jolokia" war="jolokia.war"/> --> 
      <app url="activemq-branding" war="activemq-branding.war"/>
      <app url="artemis-plugin" war="artemis-plugin.war"/>
      <app url="console" war="console.war"/>
   </web>
</broker>

有人熟悉吗?

您需要按照 ActiveMQ Artemis documentation 中概述的升级说明进行操作:

Due to XML schema changes to correct an inaccurate domain name 2 files will need to be updated:

  1. etc/bootstrap.xml
  2. etc/management.xml

In both files change the XML namespace from activemq.org to activemq.apache.org, e.g. in bootsrap.xml use:q:

<broker xmlns="http://activemq.apache.org/schema">

And in management.xml use:

<management-context xmlns="http://activemq.apache.org/schema">