Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 78286 invoked from network); 14 Dec 2010 10:23:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Dec 2010 10:23:24 -0000 Received: (qmail 8131 invoked by uid 500); 14 Dec 2010 10:23:20 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 8013 invoked by uid 500); 14 Dec 2010 10:23:20 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 8004 invoked by uid 99); 14 Dec 2010 10:23:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Dec 2010 10:23:20 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 14 Dec 2010 10:23:17 +0000 Received: (qmail 78252 invoked by uid 99); 14 Dec 2010 10:22:55 -0000 Received: from localhost.apache.org (HELO [192.168.23.9]) (127.0.0.1) (smtp-auth username markt, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Dec 2010 10:22:55 +0000 Message-ID: <4D074577.2090109@apache.org> Date: Tue, 14 Dec 2010 10:22:47 +0000 From: Mark Thomas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-GB; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: jndi-lookup fails, cured by tomcat restart References: <4D0685F9.5060103@christopherschultz.net> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 13/12/2010 22:52, Dale Ogilvie wrote: > > propsFileName is the name of the bean, which should be initialized with > the string value from the JNDI entry "propertiesFileName" defined in > $CATALINA_HOME/conf/context.xml > > This was working, stopped working until a tomcat restart, and is working > again now. My concern is that this may be a bug in tomcat > > So what happens is that tomcat startup creates a JNDI environment entry > in the "cross-application" context called "propertiesFileName". Just to be clear, there is no global or cross-application context. Entries in CATALINA_BASE/conf/context.xml are merged with the application's context.xml and become part of the application's context configuration. This means that if you define a resource in CATALINA_BASE/conf/context.xml and you have 20 contexts you will get 20 instances of that resource - one for each context. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org