ASF GitHub Bot commented on ARTEMIS-1720:

GitHub user jbertram opened a pull request:


    ARTEMIS-1720 put activemq.xsd in 'schema' dir


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jbertram/activemq-artemis ARTEMIS-1720

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1927
commit afda0b912eca0542f3d5c6029adfdd7f3bc49241
Author: Justin Bertram <jbertram@...>
Date:   2018-03-02T19:43:19Z

    ARTEMIS-1720 put activemq.xsd in 'schema' dir


> Not all Artemis XML files can be validated with xmllint
> -------------------------------------------------------
>                 Key: ARTEMIS-1720
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1720
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Lionel Cons
>            Assignee: Justin Bertram
>            Priority: Major
> As hinted in the documentation ("Configuration Reference" section), 
> {{xmllint}} can be used to validate the Artemis configuration files.
> This works fine with {{broker.xml}}:
> {code}
> $ xmllint --schema ${ARTEMIS_HOME}/schema/artemis-server.xsd broker.xml 
> --noout
> broker.xml validates
> {code}
> However, Artemis uses other XML configuration files like {{bootstrap.xml}} 
> and {{management.xml}} and the same command fails to validate them:
> {code}
> $ xmllint --schema ${ARTEMIS_HOME}/schema/artemis-server.xsd bootstrap.xml 
> --noout
> bootstrap.xml:19: element broker: Schemas validity error : Element 
> '{http://activemq.org/schema}broker': No matching global declaration 
> available for the validation root.
> bootstrap.xml fails to validate
> $ xmllint --schema ${ARTEMIS_HOME}/schema/artemis-server.xsd management.xml 
> --noout
> management.xml:18: element management-context: Schemas validity error : 
> Element '{http://activemq.org/schema}management-context': No matching global 
> declaration available for the validation root.
> management.xml fails to validate
> {code}
> {{xmllint}} is a very useful tool to catch configuration errors and all the 
> XML configuration files used by Artemis should be validated this way.

This message was sent by Atlassian JIRA

Reply via email to