org.codehaus.cargo.util.CargoException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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}
    via by Derek Knapp,
  • 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}
    via by Derek Knapp,
  • Deploy fail
    via GitHub by zhongfuqiang
    ,
  • Deploy Plugin - Jenkins - Jenkins Wiki
    via by Unknown author,
  • [Jenkins] Deploy on Glassfish server
    via by Elcio Junior,
  • Redeploy remote glassfish with cargo fails
    via Stack Overflow by ufasoli
    ,
    • 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)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,