user7403308
user7403308

Reputation: 19

Updated ActiveMQ Artemis and broker will not start

I updated ActiveMQ Artemis from 2.20.0 to 2.21.0. Now the broker will not start!

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)

I moved the <broker> tag to line 20 in bootstrap.xml and it correspond to lineNumber in the error message.

Here's my 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>

Is this familiar to anyone?

Upvotes: 1

Views: 1348

Answers (1)

Justin Bertram
Justin Bertram

Reputation: 34973

You need to follow the upgrade instructions outlined in the 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">

Upvotes: 2

Related Questions