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

CARGO fails to deploy to tomcat when host attribute unpackWARS="true"

    Details

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

      windows xp pro

      Description

      Having checked out the latest source code and built everything and using it...

      I tried to operate the cargo maven plugin for tomcat with default tomcat server configuration.

      It fails...

      It only works if tomcat is running AND unpackWARs="false" inside tomcat conf/server.xml

      <Host name="localhost" appBase="webapps"
      unpackWARs="false" autoDeploy="true"
      xmlValidation="false" xmlNamespaceAware="false">
      

      Seems this plugin does not know how to operate directories and cleanup and such.

      OUTPUT FOLLOWS:

      [INFO] [mcat5xRemoteDeployer] Deploying [C:\Prototype\Mavenized\Product\tap.proto\target\tap.proto-1.0.war]
      org.codehaus.cargo.container.ContainerException: Failed to deploy [C:\Prototype\Mavenized\Product\tap.proto\target\tap.proto-1.0.war]
      at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.deploy(AbstractTomcatManagerDeployer.java:105)
      at org.codehaus.cargo.container.spi.deployer.AbstractDeployer.deploy(AbstractDeployer.java:58)
      at org.codehaus.cargo.maven2.DeployerDeployMojo.performDeployerActionOnSingleDeployable(DeployerDeployMojo.java:75)
      at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:105)
      at org.codehaus.cargo.maven2.AbstractDeployerMojo.execute(AbstractDeployerMojo.java:48)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
      at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
      at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
      at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
      Caused by: org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: FAIL - Application already exists at path /tap.proto-1.0
      
      at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:525)
      at org.codehaus.cargo.container.tomcat.internal.TomcatManager.deployImpl(TomcatManager.java:565)
      at org.codehaus.cargo.container.tomcat.internal.TomcatManager.deploy(TomcatManager.java:273)
      at org.codehaus.cargo.container.tomcat.internal.TomcatManager.deploy(TomcatManager.java:256)
      at org.codehaus.cargo.container.tomcat.internal.TomcatManager.deploy(TomcatManager.java:240)
      at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.deploy(AbstractTomcatManagerDeployer.java:101)
      ... 14 more
      org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: FAIL - Application already exists at path /tap.proto-1.0
      
      at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:525)
      at org.codehaus.cargo.container.tomcat.internal.TomcatManager.deployImpl(TomcatManager.java:565)
      at org.codehaus.cargo.container.tomcat.internal.TomcatManager.deploy(TomcatManager.java:273)
      at org.codehaus.cargo.container.tomcat.internal.TomcatManager.deploy(TomcatManager.java:256)
      at org.codehaus.cargo.container.tomcat.internal.TomcatManager.deploy(TomcatManager.java:240)
      at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.deploy(AbstractTomcatManagerDeployer.java:101)
      at org.codehaus.cargo.container.spi.deployer.AbstractDeployer.deploy(AbstractDeployer.java:58)
      at org.codehaus.cargo.maven2.DeployerDeployMojo.performDeployerActionOnSingleDeployable(DeployerDeployMojo.java:75)
      at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:105)
      at org.codehaus.cargo.maven2.AbstractDeployerMojo.execute(AbstractDeployerMojo.java:48)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
      at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
      at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
      at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kennethwilliamcolassi Kenneth William Colassi (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: