org.codehaus.cargo.util.CargoException: Deployment has failed: Action failed Deploying application to target server failed; Error occurred during deployment: Application with name mycoservicesear is already registered. Either specify that redeployment must be forced, or redeploy the application. Or if this is a new deployment, pick a different name. Please see server.log for more details. 14:40:55 14:40:55 at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.waitForProgressObject(AbstractJsr88Deployer.java:220) 14:40:55 at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.deploy(AbstractJsr88Deployer.java:76) 14:40:55 at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.redeploy(AbstractJsr88Deployer.java:142) 14:40:55 at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:64) 14:40:56 at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:90)

Jenkins JIRA | Derek E | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Using the Deploy to Container plugin for a multi-module Maven job works fine for deploying the EAR files to Glassfish on the first run, but subsequent runs fail due to the previous ear not being undeployed first. 14:40:55 Deploying /var/lib/jenkins/workspace/mycoservices--TRUNK--install/mycoservicesear/target/mycoservicesear-1.2.1-SNAPSHOT.ear to container GlassFish 3.x Remote 14:40:55 ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to exception 14:40:55 org.codehaus.cargo.util.CargoException: Deployment has failed: Action failed Deploying application to target server failed; Error occurred during deployment: Application with name mycoservicesear is already registered. Either specify that redeployment must be forced, or redeploy the application. Or if this is a new deployment, pick a different name. Please see server.log for more details. 14:40:55 14:40:55 at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.waitForProgressObject(AbstractJsr88Deployer.java:220) 14:40:55 at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.deploy(AbstractJsr88Deployer.java:76) 14:40:55 at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.redeploy(AbstractJsr88Deployer.java:142) 14:40:55 at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:64) 14:40:56 at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:90) 14:42:15 at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:77) 14:42:15 at hudson.FilePath.act(FilePath.java:904) 14:42:15 at hudson.FilePath.act(FilePath.java:877) 14:42:15 at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:77) 14:42:15 at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:47) 14:42:15 at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) 14:42:15 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:802) 14:42:15 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:774) 14:42:15 at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:949) 14:42:15 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:724) 14:42:15 at hudson.model.Run.execute(Run.java:1600) 14:42:15 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) 14:42:15 at hudson.model.ResourceController.execute(ResourceController.java:88) 14:42:15 at hudson.model.Executor.run(Executor.java:237)

    Jenkins JIRA | 4 years ago | Derek E
    org.codehaus.cargo.util.CargoException: Deployment has failed: Action failed Deploying application to target server failed; Error occurred during deployment: Application with name mycoservicesear is already registered. Either specify that redeployment must be forced, or redeploy the application. Or if this is a new deployment, pick a different name. Please see server.log for more details. 14:40:55 14:40:55 at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.waitForProgressObject(AbstractJsr88Deployer.java:220) 14:40:55 at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.deploy(AbstractJsr88Deployer.java:76) 14:40:55 at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.redeploy(AbstractJsr88Deployer.java:142) 14:40:55 at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:64) 14:40:56 at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:90)
  2. 0

    Using the Deploy to Container plugin for a multi-module Maven job works fine for deploying the EAR files to Glassfish on the first run, but subsequent runs fail due to the previous ear not being undeployed first. 14:40:55 Deploying /var/lib/jenkins/workspace/mycoservices--TRUNK--install/mycoservicesear/target/mycoservicesear-1.2.1-SNAPSHOT.ear to container GlassFish 3.x Remote 14:40:55 ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to exception 14:40:55 org.codehaus.cargo.util.CargoException: Deployment has failed: Action failed Deploying application to target server failed; Error occurred during deployment: Application with name mycoservicesear is already registered. Either specify that redeployment must be forced, or redeploy the application. Or if this is a new deployment, pick a different name. Please see server.log for more details. 14:40:55 14:40:55 at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.waitForProgressObject(AbstractJsr88Deployer.java:220) 14:40:55 at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.deploy(AbstractJsr88Deployer.java:76) 14:40:55 at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.redeploy(AbstractJsr88Deployer.java:142) 14:40:55 at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:64) 14:40:56 at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:90) 14:42:15 at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:77) 14:42:15 at hudson.FilePath.act(FilePath.java:904) 14:42:15 at hudson.FilePath.act(FilePath.java:877) 14:42:15 at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:77) 14:42:15 at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:47) 14:42:15 at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) 14:42:15 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:802) 14:42:15 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:774) 14:42:15 at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:949) 14:42:15 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:724) 14:42:15 at hudson.model.Run.execute(Run.java:1600) 14:42:15 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) 14:42:15 at hudson.model.ResourceController.execute(ResourceController.java:88) 14:42:15 at hudson.model.Executor.run(Executor.java:237)

    Jenkins JIRA | 4 years ago | Derek E
    org.codehaus.cargo.util.CargoException: Deployment has failed: Action failed Deploying application to target server failed; Error occurred during deployment: Application with name mycoservicesear is already registered. Either specify that redeployment must be forced, or redeploy the application. Or if this is a new deployment, pick a different name. Please see server.log for more details. 14:40:55 14:40:55 at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.waitForProgressObject(AbstractJsr88Deployer.java:220) 14:40:55 at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.deploy(AbstractJsr88Deployer.java:76) 14:40:55 at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.redeploy(AbstractJsr88Deployer.java:142) 14:40:55 at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:64) 14:40:56 at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:90)

    Root Cause Analysis

    1. org.codehaus.cargo.util.CargoException

      Deployment has failed: Action failed Deploying application to target server failed; Error occurred during deployment: Application with name mycoservicesear is already registered. Either specify that redeployment must be forced, or redeploy the application. Or if this is a new deployment, pick a different name. Please see server.log for more details. 14:40:55 14:40:55 at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.waitForProgressObject(AbstractJsr88Deployer.java:220) 14:40:55 at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.deploy(AbstractJsr88Deployer.java:76) 14:40:55 at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.redeploy(AbstractJsr88Deployer.java:142) 14:40:55 at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:64) 14:40:56 at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:90)

      at hudson.plugins.deploy.CargoContainerAdapter$1.invoke()
    2. Deploy to container Plugin
      CargoContainerAdapter$1.invoke
      1. hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:77)
      1 frame
    3. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:904)
      2. hudson.FilePath.act(FilePath.java:877)
      2 frames
    4. Deploy to container Plugin
      DeployPublisher.perform
      1. hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:77)
      2. hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:47)
      2 frames
    5. Hudson
      AbstractBuild$AbstractBuildExecution.performAllBuildSteps
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:802)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:774)
      3 frames
    6. Hudson Maven Embedder
      MavenModuleSetBuild$MavenModuleSetBuildExecution.post2
      1. hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:949)
      1 frame
    7. Hudson
      Run.execute
      1. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:724)
      2. hudson.model.Run.execute(Run.java:1600)
      2 frames
    8. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
      1 frame
    9. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:237)
      2 frames