Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 50732 invoked from network); 27 Aug 2007 15:17:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Aug 2007 15:17:56 -0000 Received: (qmail 10122 invoked by uid 500); 27 Aug 2007 15:17:51 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 9893 invoked by uid 500); 27 Aug 2007 15:17:50 -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 List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 9882 invoked by uid 99); 27 Aug 2007 15:17:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2007 08:17:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2007 15:18:44 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 445EC71421D for ; Mon, 27 Aug 2007 08:17:31 -0700 (PDT) Message-ID: <11773924.1188227851277.JavaMail.jira@brutus> Date: Mon, 27 Aug 2007 08:17:31 -0700 (PDT) From: "Aman Nanner (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Updated: (GERONIMO-3208) In-place deployment fails when renaming file In-Reply-To: <11026230.1180985906679.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-3208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aman Nanner updated GERONIMO-3208: ---------------------------------- Attachment: nestedjarfile.patch Here is a patch that I use to get around this problem. I'm not sure that this is the best solution to the problem. > In-place deployment fails when renaming file > -------------------------------------------- > > Key: GERONIMO-3208 > URL: https://issues.apache.org/jira/browse/GERONIMO-3208 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: deployment > Affects Versions: 2.0-M6 > Environment: Windows XP SP2 > Reporter: Aman Nanner > Priority: Blocker > Attachments: inplace-deployment-fails.ear.zip, nestedjarfile.patch > > > I am using the latest SNAPSHOT of Geronimo. > I was trying to deploy my custom application with Geronimo using "in-place" deployment, but it would fail with a ZipException and an "Access denied" message at the following line: > {code} > System Thread [RMI TCP Connection(189)-192.168.12.66] (Suspended (breakpoint at line 127 in InPlaceResourceContext)) > InPlaceResourceContext.flush() line: 127 > EARContext(DeploymentContext).flush() line: 428 > TomcatModuleBuilder(AbstractWebModuleBuilder).installModule(JarFile, EARContext, Module, Collection, ConfigurationStore, Collection) line: 312 > AbstractWebModuleBuilder$$FastClassByCGLIB$$8523248f.invoke(int, Object, Object[]) line: not available > {code} > So I tried creating a small EAR file for testing purposes, and deployment of it also failed but at a different point: > {code} > [java] Error: Unable to distribute testing.ear: Problem closing war context > [java] Cannot rename file > [java] D:\Development\mx0706\build\geronimo\maintenix\testing.ear\testing.war > [java] to > [java] D:\Development\mx0706\build\geronimo\maintenix\testing.ear\testing.war.saved > {code} > This failed at line 121 in the {{InPlaceResourceContext}} class. I've attached the sample EAR file that was causing me this problem. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.