0 Replies Latest reply on May 14, 2013 4:14 PM by Steve Ferguson

    DeploymentManager error when trying to remotely deploy app from Hudson to JBOSS with the deploy plugin

    Steve Ferguson Newbie

      This stacktrace is generated when the Hudson deploy plugin tries to deploy to a remote JBOSS 5.1.2 server from a 5.1.2 server.  The jboss-profileservice-spi is in the lib directory and jboss-profileservice-client is in the client directory. I know that the signature changed for the loadProfile method from loadProfile(key, hotDeploy) where hotDeploy was a boolean value to loadProfile(key). So why is the plugin throwing a rod over the second method signature?

       

       

      Stack trace should say it all:

       

      Deploying /home/jboss/hudson_home/jobs/Baseloading-MFG/workspace/dist/jar/baseloading.ear to container JBoss 5.x Remote

        The undeployment phase of the redeploy action has failed: org.codehaus.cargo.util.CargoException: Cannot undeploy deployable org.codehaus.cargo.container.deployable.EAR[baseloading.ear]

      ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to exception

      org.codehaus.cargo.util.CargoException: Cannot deploy deployable org.codehaus.cargo.container.deployable.EAR[baseloading.ear]

      at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:216)

      at org.codehaus.cargo.container.spi.deployer.AbstractDeployer.redeploy(AbstractDeployer.java:212)

      at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:76)

      at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:116)

      at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:103)

      at hudson.FilePath.act(FilePath.java:791)

      at hudson.FilePath.act(FilePath.java:773)

      at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:103)

      at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:47)

      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:51)

      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:646)

      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:624)

      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:600)

      at hudson.model.Build$RunnerImpl.post2(Build.java:163)

      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:566)

      at hudson.model.Run.run(Run.java:1414)

      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:40)

      at hudson.model.ResourceController.execute(ResourceController.java:81)

      at hudson.model.Executor.run(Executor.java:137)

      Caused by: java.lang.NoSuchMethodError: org.jboss.deployers.spi.management.deploy.DeploymentManager.loadProfile(Lorg/jboss/profileservice/spi/ProfileKey;Z)V

      at org.codehaus.cargo.tools.jboss.JBossDeployer.deploy(JBossDeployer.java:73)

      at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:212)

      ... 18 more

      java.lang.NoSuchMethodError: org.jboss.deployers.spi.management.deploy.DeploymentManager.loadProfile(Lorg/jboss/profileservice/spi/ProfileKey;Z)V

      at org.codehaus.cargo.tools.jboss.JBossDeployer.deploy(JBossDeployer.java:73)

      at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:212)

      at org.codehaus.cargo.container.spi.deployer.AbstractDeployer.redeploy(AbstractDeployer.java:212)

      at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:76)

      at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:116)

      at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:103)

      at hudson.FilePath.act(FilePath.java:791)

      at hudson.FilePath.act(FilePath.java:773)

      at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:103)

      at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:47)

      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:51)

      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:646)

      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:624)

      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:600)

      at hudson.model.Build$RunnerImpl.post2(Build.java:163)

      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:566)

      at hudson.model.Run.run(Run.java:1414)

      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:40)

      at hudson.model.ResourceController.execute(ResourceController.java:81)

      at hudson.model.Executor.run(Executor.java:137)

      Finished: FAILURE