Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 94886 invoked from network); 4 Nov 2004 19:22:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Nov 2004 19:22:45 -0000 Received: (qmail 143 invoked by uid 500); 4 Nov 2004 19:22:23 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 99947 invoked by uid 500); 4 Nov 2004 19:22:22 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@geronimo.apache.org Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 99919 invoked by uid 99); 4 Nov 2004 19:22:22 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [64.14.202.141] (HELO mgd.gluecode.com) (64.14.202.141) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 04 Nov 2004 11:22:21 -0800 Received: from [192.168.17.104] ([192.168.17.104]) (authenticated bits=0) by mgd.gluecode.com (8.12.10/8.12.10) with ESMTP id iA4JWlF9022640 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Thu, 4 Nov 2004 11:32:49 -0800 Mime-Version: 1.0 (Apple Message framework v619) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: dev@geronimo.apache.org From: Dain Sundstrom Subject: change: ServerInfo baseDirectory Date: Thu, 4 Nov 2004 11:22:16 -0800 X-Mailer: Apple Mail (2.619) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The addition of GBean persistence has revealed a problem in ServerInfo (http://nagoya.apache.org/jira/browse/GERONIMO-431). The problem is that normally we guess the location of the geronimo home directory, and this location is saved as an absolute path during gbean persistence. This means that if an admin were to boot a geronimo install in a directory they would never be able to move the install. The real cause of this problem is we have no place to save a user-set-home-directory that is different from the working-home-directory (the one we guessed when the user set home directory is null). The fix for this I have implemented is have the getBaseDirectory to return only the user-set-base-directory, which in a normal case this method return null. This does not cause any code in geronimo, openejb, activemq to break, because all of these modules use one of the resolve methods on ServerInfo directly instead of trying to resolve paths themselves. For anyone using, ServerInfo in a GBean not inside of geronimo, you will need to check for uses if getBaseDirectory or Kernel.getAttribute("baseDirectory"). I'll be checking this in shortly.... -dain -- Dain Sundstrom Chief Architect Gluecode Software 310.536.8355, ext. 26