have you tried the fork of the plugin? I could look more deeply into https://github.com/xhaggi/deploy-plugin/commit/3225ccdf2aebab293324aacc282aec47a8dd95c6
Kind Regards, Roman On Friday, July 4, 2014 11:07:27 AM UTC+2, roman...@fluidtime.com wrote:Good Morning, I've updated to yesterdays release of Deploy Plugin 1.10 and I'm trying to deploy to a running JBoss 7.x. On Wednesday, July 16, 2014 12:36:48 PM UTC+2, Michael Nothhard wrote: > > I have also been trying to deploy to JBoss 7.1.1 using the new version of > the Deploy Plugin (1.10). I ran into the same issues > > I resolved the error you received by coping all the *.jars from > "JBOSS_HOME/modules" to the deploy plugin's "WEB-INF/lib" directory so that > they would be in classpath(this also required restarting Jenkins to load > the new classes). > > Next I was presented with a different stack-trace that pointed me to > replacing the log4j jar in Jenkins(as discussed here: > https://github.com/xhaggi/deploy-plugin). > > I finally seem to have all the class dependencies, as the plugin now > attempts to actually deploy my EAR to JBoss. Unfortunately the deployment > fails with a new message: > > ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to > exceptionorg.codehaus.cargo.util.CargoException > <http://stacktrace.jenkins-ci.org/search?query=org.codehaus.cargo.util.CargoException>: > Cannot deploy deployable org.codehaus.cargo.container.deployable.EAR[my.ear] > at > org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:216) > > <http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy&entity=method> > at > org.codehaus.cargo.container.spi.deployer.AbstractDeployer.redeploy(AbstractDeployer.java:212) > > <http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.cargo.container.spi.deployer.AbstractDeployer.redeploy&entity=method> > at > hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:76) > > <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.deploy.CargoContainerAdapter.deploy&entity=method> > at > hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:116) > > <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.deploy.CargoContainerAdapter$1.invoke&entity=method> > at > hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:103) > > <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.deploy.CargoContainerAdapter$1.invoke&entity=method> > at hudson.FilePath.act(FilePath.java:920) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act&entity=method> > at hudson.FilePath.act(FilePath.java:893) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act&entity=method> > at > hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:103) > > <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.deploy.CargoContainerAdapter.redeploy&entity=method> > at > hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:61) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.deploy.DeployPublisher.perform&entity=method> > at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.BuildStepMonitor$3.perform&entity=method> > at > hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:745) > > <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.perform&entity=method> > at > hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:709) > > <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps&entity=method> > at hudson.model.Build$BuildExecution.post2(Build.java:182) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Build$BuildExecution.post2&entity=method> > at > hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:658) > > <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.post&entity=method> > at hudson.model.Run.execute(Run.java:1731) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method> > at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run&entity=method> > at hudson.model.ResourceController.execute(ResourceController.java:88) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method> > at hudson.model.Executor.run(Executor.java:231) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method> > Caused by: org.codehaus.cargo.util.CargoException > <http://stacktrace.jenkins-ci.org/search?query=org.codehaus.cargo.util.CargoException>: > Deployment action ADD failed > at > org.codehaus.cargo.tools.jboss.JBossDeployer.executeAction(JBossDeployer.java:148) > > <http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.cargo.tools.jboss.JBossDeployer.executeAction&entity=method> > at > org.codehaus.cargo.tools.jboss.JBossDeployer.deploy(JBossDeployer.java:85) > <http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.cargo.tools.jboss.JBossDeployer.deploy&entity=method> > at > org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:212) > > <http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy&entity=method> > ... 17 more > org.codehaus.cargo.util.CargoException: Deployment action ADD failed > at > org.codehaus.cargo.tools.jboss.JBossDeployer.executeAction(JBossDeployer.java:148) > at > org.codehaus.cargo.tools.jboss.JBossDeployer.deploy(JBossDeployer.java:85) > 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:920) > at hudson.FilePath.act(FilePath.java:893) > at > hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:103) > at > hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:61) > at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) > at > hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:745) > at > hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:709) > at hudson.model.Build$BuildExecution.post2(Build.java:182) > at > hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:658) > at hudson.model.Run.execute(Run.java:1731) > at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) > at hudson.model.ResourceController.execute(ResourceController.java:88) > > at hudson.model.Executor.run(Executor.java:231) > > > If you look carefully, this appears to be a bug since the Deploy Plugin > and/or Cargo are calling the JBoss5xRemoteDeployer > <http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy&entity=method> > > class even though we are trying to deploy to JBoss7x. > > On Friday, July 4, 2014 11:07:27 AM UTC+2, roman...@fluidtime.com wrote: >> >> Good Morning, >> >> I've updated to yesterdays release of Deploy Plugin 1.10 and I'm trying >> to deploy to a running JBoss 7.x. >> >> After setting up the credentials and URL and running the Job, I get the >> following error: >> >> ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to >> exception >> org.codehaus.cargo.container.ContainerException: Failed to create >> deployer with implementation class >> org.codehaus.cargo.container.jboss.JBoss7xRemoteDeployer for the parameters >> (container [id = [jboss7x]], deployer type [remote]). >> at >> org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:154) >> at >> org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory.createImplementation(AbstractIntrospectionGenericHintFactory.java:93) >> at >> org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createDeployer(DefaultDeployerFactory.java:141) >> at >> org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createDeployer(DefaultDeployerFactory.java:161) >> at >> hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:61) >> 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:914) >> at hudson.FilePath.act(FilePath.java:887) >> at >> hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:103) >> at >> hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:61) >> at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) >> at >> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) >> at >> hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776) >> at >> hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1040) >> at >> hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:725) >> at hudson.model.Run.execute(Run.java:1709) >> at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) >> at hudson.model.ResourceController.execute(ResourceController.java:88) >> at hudson.model.Executor.run(Executor.java:231) >> Caused by: java.lang.reflect.InvocationTargetException >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> Method) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) >> at java.lang.reflect.Constructor.newInstance(Constructor.java:526) >> at >> org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createInstance(DefaultDeployerFactory.java:220) >> at >> org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createInstance(DefaultDeployerFactory.java:43) >> at >> org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:150) >> ... 19 more >> Caused by: org.codehaus.cargo.util.CargoException: C*annot locate the >> JBoss connector classes! Make sure the required JBoss JARs (or Maven >> dependencies) are in CARGO's classpath.* >> More information on: http://cargo.codehaus.org/JBoss+Remote+Deployer >> at >> org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.<init>(JBoss5xRemoteDeployer.java:161) >> at >> org.codehaus.cargo.container.jboss.JBoss7xRemoteDeployer.<init>(JBoss7xRemoteDeployer.java:41) >> ... 26 more >> Caused by: java.lang.ClassNotFoundException: >> org.jboss.as.controller.client.ModelControllerClient >> at >> jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1375) >> at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325) >> at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:358) >> at >> org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.<init>(JBoss5xRemoteDeployer.java:156) >> ... 27 more >> java.lang.reflect.InvocationTargetException >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> Method) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) >> at java.lang.reflect.Constructor.newInstance(Constructor.java:526) >> at >> org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createInstance(DefaultDeployerFactory.java:220) >> at >> org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createInstance(DefaultDeployerFactory.java:43) >> at >> org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation(AbstractGenericHintFactory.java:150) >> at >> org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory.createImplementation(AbstractIntrospectionGenericHintFactory.java:93) >> at >> org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createDeployer(DefaultDeployerFactory.java:141) >> at >> org.codehaus.cargo.generic.deployer.DefaultDeployerFactory.createDeployer(DefaultDeployerFactory.java:161) >> at >> hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:61) >> 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:914) >> at hudson.FilePath.act(FilePath.java:887) >> at >> hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:103) >> at >> hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:61) >> at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) >> at >> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) >> at >> hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776) >> at >> hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1040) >> at >> hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:725) >> at hudson.model.Run.execute(Run.java:1709) >> at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) >> at hudson.model.ResourceController.execute(ResourceController.java:88) >> at hudson.model.Executor.run(Executor.java:231) >> Caused by: org.codehaus.cargo.util.CargoException: *Cannot locate the >> JBoss connector classes! Make sure the required JBoss JARs (or Maven >> dependencies) are in CARGO's classpath.* >> More information on: http://cargo.codehaus.org/JBoss+Remote+Deployer >> at >> org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.<init>(JBoss5xRemoteDeployer.java:161) >> at >> org.codehaus.cargo.container.jboss.JBoss7xRemoteDeployer.<init>(JBoss7xRemoteDeployer.java:41) >> ... 26 more >> Caused by: java.lang.ClassNotFoundException: >> org.jboss.as.controller.client.ModelControllerClient >> at >> jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1375) >> at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325) >> at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:358) >> at >> org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.<init>(JBoss5xRemoteDeployer.java:156) >> ... 27 more >> Finished: FAILURE >> >> As it is a separate step I assume, that I don't have to change anything >> in the project's pom file. The more information Link doesn't realy help. >> >> Google came up with: >> >> https://translate.google.com/translate?sl=fr&tl=en&js=y&prev=_t&hl=en&ie=UTF-8&u=http%3A%2F%2Fwww.developpez.net%2Fforums%2Fd1144053%2Fgeneral-developpement%2Falm%2Fusine-logicielle%2Fintegration-continue%2Fjenkins-deploy-plugin-jboss-eap-5-1-a%2F&edit-text=&act=url >> >> "To deploy my war / ear to a local JBoss server, the plugin "Deploy >> plugin" is of no use since it works only for container-type remote (remote). >> So I used the plugin "cargo-maven2-plugin". " >> >> Any hints are appreciated. >> >> Kind Regards, >> Roman >> > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.