Return-Path: Delivered-To: apmail-jakarta-jcs-users-archive@www.apache.org Received: (qmail 34215 invoked from network); 13 Dec 2005 22:18:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Dec 2005 22:18:21 -0000 Received: (qmail 79146 invoked by uid 500); 13 Dec 2005 22:18:21 -0000 Delivered-To: apmail-jakarta-jcs-users-archive@jakarta.apache.org Received: (qmail 79130 invoked by uid 500); 13 Dec 2005 22:18:20 -0000 Mailing-List: contact jcs-users-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JCS Users List" Delivered-To: mailing list jcs-users@jakarta.apache.org Received: (qmail 79117 invoked by uid 99); 13 Dec 2005 22:18:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2005 14:18:20 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [62.80.19.64] (HELO stinger.2e-systems.com) (62.80.19.64) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2005 14:18:19 -0800 Received: from [127.0.0.1] (stinger [192.168.101.1]) by stinger.2e-systems.com (Postfix) with ESMTP id E51FE36E62B for ; Tue, 13 Dec 2005 23:17:54 +0100 (CET) Message-ID: <439F4A58.1010701@2e-systems.com> Date: Tue, 13 Dec 2005 23:25:28 +0100 From: Alistair Forbes User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jcs-users@jakarta.apache.org Subject: Config file placement 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 Is it possible to specify the path to the config file? Something like: -Djcs.configfile=../config/cache.ccf This would be preferrable to using the classpath. A null-check on the current setup would probably also help some folks. diff -u -r1.14 CompositeCacheManager.java --- src/java/org/apache/jcs/engine/control/CompositeCacheManager.java 4 Jun 2005 02:01:58 -0000 1.14 +++ src/java/org/apache/jcs/engine/control/CompositeCacheManager.java 13 Dec 2005 22:13:48 -0000 @@ -162,6 +162,12 @@ Properties props = new Properties(); InputStream is = getClass().getResourceAsStream( propFile ); + if (is == null) + { + logger.error("Failed to load " + propFile + + "Try /" + propFile + " if in the root classpath."); + } + Regards Al --------------------------------------------------------------------- To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org For additional commands, e-mail: jcs-users-help@jakarta.apache.org