We're updating the issue view to help you get more done. 

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

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

1 2 3 <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:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 [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)

Status

Assignee

Unassigned

Reporter

Kenneth William Colassi

Components

Fix versions

Affects versions

0.9

Priority

Major