Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-3208

In-place deployment fails when renaming file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0-M6, 2.0.x, 2.1
    • 2.0.2, 2.1
    • deployment
    • Security Level: public (Regular issues)
    • None
    • Windows XP SP2

    Description

      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:

      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	
      

      So I tried creating a small EAR file for testing purposes, and deployment of it also failed but at a different point:

           [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
      

      This failed at line 121 in the InPlaceResourceContext class. I've attached the sample EAR file that was causing me this problem.

      Attachments

        1. inplace-deployment-fails.ear.zip
          3.57 MB
          Aman Nanner
        2. nestedjarfile.patch
          1 kB
          Aman Nanner

        Activity

          People

            vamsic Vamsavardhana Reddy
            ananner Aman Nanner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: