Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 55213 invoked from network); 17 Feb 2006 15:32:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Feb 2006 15:32:23 -0000 Received: (qmail 33614 invoked by uid 500); 17 Feb 2006 15:32:22 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 33287 invoked by uid 500); 17 Feb 2006 15:32:21 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 33276 invoked by uid 99); 17 Feb 2006 15:32:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2006 07:32:20 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ammulder@gmail.com designates 66.249.92.198 as permitted sender) Received: from [66.249.92.198] (HELO uproxy.gmail.com) (66.249.92.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2006 07:32:20 -0800 Received: by uproxy.gmail.com with SMTP id u2so286505uge for ; Fri, 17 Feb 2006 07:31:59 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dSM6Obi5EvgcWXE/yBipm0b8c2NIIhs93qSgGI4Ifj/0FoFiwugSnPnxG0mvRp4lIWOrbKkS9gTc8rFlVXT6XSU31rbX8qmNUkndnIU2uzGPNs6OkRPrtlxN1nInX75UHeQUYDxa7+I9Yum4AHjDsTt+s9lkHd1vb97hJcLfnds= Received: by 10.66.245.14 with SMTP id s14mr884494ugh; Fri, 17 Feb 2006 07:31:53 -0800 (PST) Received: by 10.66.219.2 with HTTP; Fri, 17 Feb 2006 07:31:53 -0800 (PST) Message-ID: <74e15baa0602170731v58ebf58eme4381da9f8bbb980@mail.gmail.com> Date: Fri, 17 Feb 2006 10:31:53 -0500 From: Aaron Mulder Sender: ammulder@gmail.com To: user@geronimo.apache.org Subject: Re: File paths within the EAR file In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N So your web app is trying to refer to a file within the EAR? I'm not sure there's a portable way to do this. If the file was within the WAR it would be easy enough to load it as a relative path, and if was in a JAR it would be possible to load it from the class loader -- I think those would be better ways to go. Thanks, Aaron On 2/17/06, yskim@symcor.com wrote: > The hot deployment is excellent for the automation of the deployment. Bu= t > we ran into the problem of inability to specify the file path of the > property files. > > We have the file path information in the web.xml as shown below > > > initialize > > com.web.someaction.InitializeServlet > > config > /opt/geronimo-1.0 > /deploy/some.ear/someweb.war/WEB-INF/classes/quartz.properties > > 2 > > > Of course, geronimo will complain that it is not a directory. Then we > cannot predict the numeric directory name under /opt/geronimo-1.0 > /config-store For the subsequent deployment, we know where the some.ear > will be expanded into. Would I have to deploy the application once for t= he > first time just to know the /opt/geronimo-1.0/config-store/${NUMBER}? Or > is there any other way around this? > > Many thanks again in advance. > > > Young > >