org.codehaus.cargo.util.CargoException: Deployment has failed: Action failed Deploying application to target server failed; Error occurred during deployment: Application with name itmems4-ear 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.

Jenkins JIRA | Derek Knapp | 5 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

    Jenkins issues - [JIRA] (JENKINS-12133) need to use redeploy, or force deploy for glassfish

    nabble.com | 1 year ago
    org.codehaus.cargo.util.CargoException: Deployment has failed: Action failed Deploying application to target server failed; Error occurred during deployment: Application with name itmems4-ear 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.
  2. 0

    After the 1st build I get the following exception If I were deploying using the command line, I would simply add --force to the command, for example {code} asadmin deploy --force /root/itrac/itmems4/itmems4-ear/target/itmems4-ear.ear {code} Simply adding --force to the command should do the trick, as there is no negative side effects. {code} Deploying /root/.jenkins/jobs/itmems4/workspace/itmems4-ear/target/itmems4-ear.ear to container GlassFish 3.x Remote ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to exception org.codehaus.cargo.util.CargoException: Deployment has failed: Action failed Deploying application to target server failed; Error occurred during deployment: Application with name itmems4-ear 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. at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.waitForProgressObject(AbstractJsr88Deployer.java:220) at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.deploy(AbstractJsr88Deployer.java:76) at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.redeploy(AbstractJsr88Deployer.java:142) at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:60) at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:86) at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:73) at hudson.FilePath.act(FilePath.java:783) at hudson.FilePath.act(FilePath.java:765) at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:73) at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:45) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:1014) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614) at hudson.model.Run.run(Run.java:1429) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Finished: FAILURE {code}

    Jenkins JIRA | 5 years ago | Derek Knapp
    org.codehaus.cargo.util.CargoException: Deployment has failed: Action failed Deploying application to target server failed; Error occurred during deployment: Application with name itmems4-ear 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.
  3. 0

    After the 1st build I get the following exception If I were deploying using the command line, I would simply add --force to the command, for example {code} asadmin deploy --force /root/itrac/itmems4/itmems4-ear/target/itmems4-ear.ear {code} Simply adding --force to the command should do the trick, as there is no negative side effects. {code} Deploying /root/.jenkins/jobs/itmems4/workspace/itmems4-ear/target/itmems4-ear.ear to container GlassFish 3.x Remote ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to exception org.codehaus.cargo.util.CargoException: Deployment has failed: Action failed Deploying application to target server failed; Error occurred during deployment: Application with name itmems4-ear 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. at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.waitForProgressObject(AbstractJsr88Deployer.java:220) at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.deploy(AbstractJsr88Deployer.java:76) at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.redeploy(AbstractJsr88Deployer.java:142) at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:60) at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:86) at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:73) at hudson.FilePath.act(FilePath.java:783) at hudson.FilePath.act(FilePath.java:765) at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:73) at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:45) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667) at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:1014) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614) at hudson.model.Run.run(Run.java:1429) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Finished: FAILURE {code}

    Jenkins JIRA | 5 years ago | Derek Knapp
    org.codehaus.cargo.util.CargoException: Deployment has failed: Action failed Deploying application to target server failed; Error occurred during deployment: Application with name itmems4-ear 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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JENKINS-12133] need to use redeploy, or force deploy for glassfish - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    org.codehaus.cargo.util.CargoException: Deployment has failed: Action failed Deploying application to target server failed; Error occurred during deployment: Application with name itmems4-ear is already registered. Either specify that redeployment must be forced, or redeploy the application. Or is a deployment, pick a different name. Please see server.log more details.
  6. 0

    Deploy to container Plugin: Can i force redeploy / force deploy? Glassfish 3.1.1

    Google Groups | 5 years ago | pranahata
    org.codehaus.cargo.util.CargoException: Deployment has failed: Action failed Deploying application to target server failed; Error occurred during deployment: Application with name Ibi-ear-1.0-SNAPSHOT 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.

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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 itmems4-ear 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.

      at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.waitForProgressObject()
    2. Cargo
      AbstractJsr88Deployer.redeploy
      1. org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.waitForProgressObject(AbstractJsr88Deployer.java:220)
      2. org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.deploy(AbstractJsr88Deployer.java:76)
      3. org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.redeploy(AbstractJsr88Deployer.java:142)
      3 frames
    3. Deploy to container Plugin
      CargoContainerAdapter$1.invoke
      1. hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:60)
      2. hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:86)
      3. hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:73)
      3 frames
    4. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:783)
      2. hudson.FilePath.act(FilePath.java:765)
      2 frames
    5. Deploy to container Plugin
      DeployPublisher.perform
      1. hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:73)
      2. hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:45)
      2 frames
    6. Hudson
      AbstractBuild$AbstractRunner.performAllBuildSteps
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:692)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667)
      3 frames
    7. Hudson Maven Embedder
      MavenModuleSetBuild$RunnerImpl.post2
      1. hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:1014)
      1 frame
    8. Hudson
      Run.run
      1. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:614)
      2. hudson.model.Run.run(Run.java:1429)
      2 frames
    9. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)
      1 frame
    10. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:238)
      2 frames