Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 43416 invoked from network); 26 Oct 2005 08:43:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Oct 2005 08:43:34 -0000 Received: (qmail 68118 invoked by uid 500); 26 Oct 2005 08:43:31 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 68051 invoked by uid 500); 26 Oct 2005 08:43:31 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 68040 invoked by uid 99); 26 Oct 2005 08:43:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2005 01:43:31 -0700 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 [84.96.21.10] (HELO mail.anyware-tech.com) (84.96.21.10) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2005 01:43:29 -0700 Received: from localhost (localhost [127.0.0.1]) by mail.anyware-tech.com (Postfix) with ESMTP id B4D99338B8 for ; Wed, 26 Oct 2005 10:43:12 +0200 (CEST) Received: from mail.anyware-tech.com ([127.0.0.1]) by localhost (trinity [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15659-04 for ; Wed, 26 Oct 2005 10:43:07 +0200 (CEST) Received: from [10.0.0.27] (poukram.anyware [10.0.0.27]) by mail.anyware-tech.com (Postfix) with ESMTP id 8C587338E4 for ; Wed, 26 Oct 2005 10:43:06 +0200 (CEST) Message-ID: <435F4196.5070505@apache.org> Date: Wed, 26 Oct 2005 10:43:02 +0200 From: Sylvain Wallez User-Agent: Thunderbird 1.4.1 (Macintosh/20051006) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Reverting the property search order in CoreUtils Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at anyware-tech.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi all, Trying to set the hslqdb server port using the property lookup system in trunk, I found that the lookup order actually makes it not much useful. From what I understand, the properties files are read in the following order: - WEB-INF/properties/* - WEB-INF/properties/{run-mode}/* - custom property providers (where are they defined?) - work directory and logkit config from web.xml - an optional user-specific property file, either pointed to by the "org.apache.cocoon.setting" property, or the "~/.cocoon/settings.properties" file - system properties. Cool, even if it would be good to extend lookup in web.xml to any servlet and/or context parameter (some admins will want to configure everything using their J2EE deployment tools). Now the problem comes from the property search order, which follows the exact same path, meaning the most generic properties (in WEB-INF/properties) hide any overriding in specific properties (user settings, system properties). I reverted the property lookup order, and this now works just fine :-) Sylvain -- Sylvain Wallez Anyware Technologies http://people.apache.org/~sylvain http://www.anyware-tech.com Apache Software Foundation Member Research & Technology Director