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

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

    XMLWordPrintable

    Details

    • Target Release:
    • Release Notes Text:
      The broker.xml configuration file does not validate against its XML schema.
    • Release Notes Docs Status:
      Documented as Known Issue

      Description

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ataylor Andy Taylor
                  Reporter:
                  mbelkour Amine Belkoura
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: