Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 31311 invoked from network); 28 Jan 2011 21:00:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jan 2011 21:00:17 -0000 Received: (qmail 47581 invoked by uid 500); 28 Jan 2011 21:00:13 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 47495 invoked by uid 500); 28 Jan 2011 21:00:13 -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 47486 invoked by uid 99); 28 Jan 2011 21:00:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jan 2011 21:00:13 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.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; Fri, 28 Jan 2011 21:00:12 +0000 Received: (qmail 30993 invoked by uid 99); 28 Jan 2011 20:59:52 -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; Fri, 28 Jan 2011 20:59:52 +0000 Message-ID: <4D432E43.7060504@apache.org> Date: Fri, 28 Jan 2011 20:59: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: deploying a war file and starting the application References: <4D431EC7.5060601@christopherschultz.net> <4D432353.90509@apache.org> <99C8B2929B39C24493377AC7A121E21F9A479BED6A@USEA-EXCH8.na.uis.unisys.com> <99C8B2929B39C24493377AC7A121E21F9A479BEDDA@USEA-EXCH8.na.uis.unisys.com> In-Reply-To: <99C8B2929B39C24493377AC7A121E21F9A479BEDDA@USEA-EXCH8.na.uis.unisys.com> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 28/01/2011 20:54, Caldarale, Charles R wrote: >> From: Robert.Jenkin@surecomp.com [mailto:Robert.Jenkin@surecomp.com] >> Subject: RE: deploying a war file and starting the application > >> I make reference to getRealPath to load a property file. > > It's definitely a bad thing to do. You should be using ServletContext#getResourceAsStream(). +1. That will also mean you app will work (well, that part of it at least) as an exploded directory or as a WAR file. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org