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

deployer.jar not cleaning up properly during redeploy and undeploy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1, 1.1.1, 1.1.x, 1.2
    • 1.1.x
    • deployment
    • Security Level: public (Regular issues)
    • None
    • Win32/XP SP1
      Sun JDK 1.5_06

    Description

      deployment using deploy.jar doesn't appear to clean up correctly.

      first deploy always works. subsequent re-deploy and un-deploy are problematic.

      following illustrates the full sequence of events as i had encountered:

      ------------------------------------------

      D:\work\SERVER\geronimo-1.1\bin>c:\JDK\jdk1.5.0_06\bin\java.exe -jar deployer.ja
      r --user system --password manager deploy D:/work/SERVER/dwr-demo.war
      Deployed littleoldme/dwrdemo/1.1/war @ http://vaio:8080/dwr-demo

      D:\work\SERVER\geronimo-1.1\bin>c:\JDK\jdk1.5.0_06\bin\java.exe -jar deployer.ja
      r --user system --password manager redeploy D:/work/SERVER/dwr-demo.war
      No ModuleID or TargetModuleID provided. Attempting to guess based
      on the content of the archive.
      Attempting to use ModuleID 'littleoldme/dwrdemo/1.1/war'
      Stopped littleoldme/dwrdemo/1.1/war
      Unloaded littleoldme/dwrdemo/1.1/war
      Uninstalled littleoldme/dwrdemo/1.1/war
      Deployed littleoldme/dwrdemo/1.1/war
      Started littleoldme/dwrdemo/1.1/war
      Redeployed littleoldme/dwrdemo/1.1/war

      D:\work\SERVER\geronimo-1.1\bin>c:\JDK\jdk1.5.0_06\bin\java.exe -jar deployer.ja
      r --user system --password manager redeploy D:/work/SERVER/dwr-demo.war
      No ModuleID or TargetModuleID provided. Attempting to guess based
      on the content of the archive.
      Attempting to use ModuleID 'littleoldme/dwrdemo/1.1/war'
      Stopped littleoldme/dwrdemo/1.1/war
      Unloaded littleoldme/dwrdemo/1.1/war
      Uninstalled littleoldme/dwrdemo/1.1/war
      Error: Operation failed:
      org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException:
      Configuration already exists: littleoldme/dwrdemo/1.1/war

      Configuration already exists: littleoldme/dwrdemo/1.1/war

      D:\work\SERVER\geronimo-1.1\bin>c:\JDK\jdk1.5.0_06\bin\java.exe -jar deployer.ja
      r --user system --password manager undeploy littleoldme/dwrdemo/1.1/war
      Error: littleoldme/dwrdemo/1.1/war does not appear to be a the name
      of a module available on the selected server. Perhaps it has already
      been stopped or undeployed? If you're trying to specify a
      TargetModuleID, use the syntax TargetName|ModuleName instead. If
      you're not sure what's running, try the list-modules command.

      ------------------------------------------

      While in this broken state, i'm able to recover by manually removing the ${geronimo}/repository/littleoldme directory and removing the one line in ${geronimo}/var/config/config.xml that says

      <module load="false" name="littleoldme/dwrdemo/1.1/war"/>

      However, this only gets me to a fresh beginning, and then the whole sequence starts again as I repeat (re/un)deploying.

      Attachments

        1. jw-0620-dwr.zip
          765 kB
          Leonard Wu
        2. dwr-demo.war
          756 kB
          Leonard Wu

        Activity

          People

            kevan Kevan Lee Miller
            lwu Leonard Wu
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: