Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-927

broker.xml does not validate against artemis-configuration.xsd

XMLWordPrintable

    • The broker.xml configuration file does not validate against its XML schema.
    • Documented as Known Issue

      Running "xmllint" to validate broker.xml against "artemis-configuration.xsd" fails with following message:

      xmllint --schema /schema/artemis-configuration.xsd broker.xml --noout

      returns:

      broker.xml:19: element configuration: Schemas validity error : Element '

      {urn:activemq}

      configuration': No matching global declaration available for the validation root.
      broker.xml fails to validate

      The problem seems to be the element "configuration" not defined in the schema.
      Removing the "configuration" element from the xml to be validated does the trick, trough the two command:

      xmllint --xpath "/[local-name()='configuration']/[local-name()='core']" broker.xml > test.xml

      This selects all elements inside "configuration", then I did

      xmllint --schema schema/artemis-configuration.xsd test.xml --noout
      test.xml validates

              rh-ee-ataylor Andy Taylor
              rhn-support-abelkour Mohamed Amine Belkoura
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: