From issues-return-26272-archive-asf-public=cust-asf.ponee.io@activemq.apache.org Fri Mar 2 21:21:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id EB88C18062F for ; Fri, 2 Mar 2018 21:21:03 +0100 (CET) Received: (qmail 82770 invoked by uid 500); 2 Mar 2018 20:21:03 -0000 Mailing-List: contact issues-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list issues@activemq.apache.org Received: (qmail 82756 invoked by uid 99); 2 Mar 2018 20:21:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2018 20:21:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 6FA4FC0412 for ; Fri, 2 Mar 2018 20:21:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id s30HS1s_WX35 for ; Fri, 2 Mar 2018 20:21:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 30BC15F126 for ; Fri, 2 Mar 2018 20:21:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id A0491E0218 for ; Fri, 2 Mar 2018 20:21:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4C4F32476D for ; Fri, 2 Mar 2018 20:21:00 +0000 (UTC) Date: Fri, 2 Mar 2018 20:21:00 +0000 (UTC) From: "Justin Bertram (JIRA)" To: issues@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (ARTEMIS-1720) Not all Artemis XML files can be validated with xmllint MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ARTEMIS-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Justin Bertram resolved ARTEMIS-1720. ------------------------------------- Resolution: Fixed Fix Version/s: 2.5.0 > 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 > Affects Versions: 2.4.0 > Reporter: Lionel Cons > Assignee: Justin Bertram > Priority: Major > Fix For: 2.5.0 > > > 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 (v7.6.3#76005)