Uploaded image for project: 'Codehaus Cargo'
  1. CARGO-1070

WAR deployed as "" or "/" under Tomcat 7 have their war copied over, but since the ROOT folder is not deleted by undeploy, the WAR is not expanded

    Details

    • Type: Bug
    • Status: Closed (View workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects versions: 1.1.4
    • Fix versions: 1.2.1
    • Components: Tomcat
    • Labels:
      None
    • Environment:

      Windows 64 bit

      Description

      Undeploy never work. Also, it seems the plug-ins doesn't understand well that war file deployed in root will be mapped by Tomcat to ROOT.war because sometime it is very confused.

      Maybe the undeploy doesn't work because after calling undeploy the script leave. I mean it seems undeploy is asynchronous so that if the server do not stay UP for a while after undeploy there is no hope it's going to work. This is unmanageable in a scripted environment. Why you don't just delete the uncompressed folder directly?

      So some behavior are:

      • complain cannot find ".war" to be deleted
      • delete the war but do not delete the folder ROOT or what is inside
      • deploy the war but do not update what is inside folder ROOT.

      It so buggy that I feel I'm the only one on the planet using Tomcat! No kidding.

      Configuration like the following doesn't work well at all:

      <groupId>org.codehaus.cargo</groupId>
      <artifactId>cargo-maven2-plugin</artifactId>
      <version>1.1.4</version>
      <configuration>
      <container>
      <containerId>tomcat7x</containerId>
      <home>C:/Program Files/Apache Software Foundation/Tomcat 7.0_Tomcat7FunctionalTest</home>
      </container>
      
      <configuration>
      <!-- Configuration to use with the container -->
      <home>C:/Program Files/Apache Software Foundation/Tomcat 7.0_Tomcat7FunctionalTest</home>
      <type>existing</type>
      <properties>
      <cargo.servlet.port>${web.server.port}</cargo.servlet.port>
      <cargo.rmi.port>85</cargo.rmi.port>
      <cargo.tomcat.ajp.port>89</cargo.tomcat.ajp.port>
      <cargo.jvmargs>-XX:PermSize=512m -XX:MaxPermSize=512m -Xmx1524m -Xms512m</cargo.jvmargs>
      </properties>
      </configuration>
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebastientardif Sebastien Tardif (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: