-
Bug
-
Resolution: Done
-
Critical
-
AMQ 7.0.3.GA
-
-
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
- relates to
-
ARTEMIS-1533 Loading...
-
ARTEMIS-1731 Loading...