Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3097810AEC for ; Sat, 16 May 2015 18:41:00 +0000 (UTC) Received: (qmail 99027 invoked by uid 500); 16 May 2015 18:41:00 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 98949 invoked by uid 500); 16 May 2015 18:41:00 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 98938 invoked by uid 99); 16 May 2015 18:40:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 May 2015 18:40:59 +0000 Date: Sat, 16 May 2015 18:40:59 +0000 (UTC) From: "Oliver Heger (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CONFIGURATION-600) Loading xml configuration file as a stream does not work with multi configurations 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/CONFIGURATION-600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14546888#comment-14546888 ] Oliver Heger commented on CONFIGURATION-600: -------------------------------------------- Thanks for your feedback. I think your use case is valid and should be supported. I will have a look, but may need some time. I will add my findings to this ticket. > Loading xml configuration file as a stream does not work with multi configurations > ---------------------------------------------------------------------------------- > > Key: CONFIGURATION-600 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-600 > Project: Commons Configuration > Issue Type: Bug > Affects Versions: 1.8 > Reporter: John Henriksson > > When using the commons configuration inside a WAR loading a XML file works fine when done like this: > InputStream is = this.getClass().getClassLoader().getResourceAsStream("/conf/main.xml"); > builder.load(is); > The problem is when the main.xml reference other xml files: > configuration> > > > If the structure of the war is: > / > /classes > /conf/child1.xml > /conf/main.xml > There seems to be no way to pick up child1.xml from main.xml when loading main.xml as a stream. -- This message was sent by Atlassian JIRA (v6.3.4#6332)