Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 5587 invoked from network); 28 Dec 2005 16:51:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Dec 2005 16:51:47 -0000 Received: (qmail 644 invoked by uid 500); 28 Dec 2005 16:51:45 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 99555 invoked by uid 500); 28 Dec 2005 16:51:41 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 99544 invoked by uid 99); 28 Dec 2005 16:51:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Dec 2005 08:51:41 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [194.158.96.209] (HELO relay-ev.club-internet.fr) (194.158.96.209) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Dec 2005 08:51:40 -0800 Received: from [127.0.0.1] (lfjr.club-internet.fr [194.117.194.68]) by relay-ev.club-internet.fr (Postfix) with ESMTP id C305C25608 for ; Wed, 28 Dec 2005 17:51:18 +0100 (CET) Message-ID: <43B2C30B.80606@apache.org> Date: Wed, 28 Dec 2005 17:53:31 +0100 From: Emmanuel Bourg User-Agent: Thunderbird 1.4 (Windows/20050908) MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: XMLConfiguration load problem - External Entity not found References: <768C2A98E8A50F48BD8EE964A8014AD80322DE@sron-chi-exc03.ronin.roncap.com> In-Reply-To: <768C2A98E8A50F48BD8EE964A8014AD80322DE@sron-chi-exc03.ronin.roncap.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N William Evans wrote: > I have finally found out what was causing me to pick up old classes - a > vendor package I use, has an old version of Configuration package > embedded in it! What a pain!!! What is this package embedding Commons Configuration ? Is it widely used ? > My code works great now but the vendor stuff doesn't because they are > calling org.apache.commons.configuration.HierarchicalXMLConfiguration > with the old initProperties method (without the boolean elemRefs > parameter). The boolean parameter appeared in the version 1.1, that means this package was built with the version 1.0. > Can you think of an easy way around this? Is there a way this class can > be made backwards compatible? As a quick workaround I suggest that you download the source of commons configuration and add the missing method initProperties(Document) in HierarchicalXMLConfiguration. Check if your application works with this fix, there may be other issues. For the long term solution I would contact the author of this package and request to upgrade the dependency on commons configuration. Emmanuel Bourg --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org