title: How to deploy war file to jboss eap 6.4 (local installed on my machine) using jenkins
body: <p>This is the stack trace of jenkins....
  please help i searched for 3  days but still this error is not going....
  what exactly am i doing wrong ?
  the war gets deployed on my server but this stack error leads to built failure</p>
  
  <pre><code>[INFO] --- maven-install-plugin:2.4:install (default-install) @ JBossEAP ---
  [INFO] Installing D:\Aly da Cristianio\My WorkSpace\JBossEAP\target\JBossEAP.war to C:\Users\amotiwal\.m2\repository\com\subversion\svn\JBossEAP\0.0.1-SNAPSHOT\JBossEAP-0.0.1-SNAPSHOT.war
  [INFO] Installing D:\Aly da Cristianio\My WorkSpace\JBossEAP\pom.xml to C:\Users\amotiwal\.m2\repository\com\subversion\svn\JBossEAP\0.0.1-SNAPSHOT\JBossEAP-0.0.1-SNAPSHOT.pom
  [INFO] 
  [INFO] &gt;&gt;&gt; jboss-as-maven-plugin:7.4.Final:deploy (default) &gt; package @ JBossEAP &gt;&gt;&gt;
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ JBossEAP ---
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
  [INFO] Copying 0 resource
  [INFO] 
  [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ JBossEAP ---
  [INFO] No sources to compile
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ JBossEAP ---
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
  [INFO] skip non existing resourceDirectory D:\Aly da Cristianio\My WorkSpace\JBossEAP\src\test\resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ JBossEAP ---
  [INFO] No sources to compile
  [INFO] 
  [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ JBossEAP ---
  [INFO] No tests to run.
  [INFO] Skipping execution of surefire because it has already been run for this configuration
  [JENKINS] Recording test results
  [INFO] 
  [INFO] --- maven-war-plugin:2.2:war (default-war) @ JBossEAP ---
  [INFO] Packaging webapp
  [INFO] Assembling webapp [JBossEAP] in [D:\Aly da Cristianio\My WorkSpace\JBossEAP\target\JBossEAP]
  [INFO] Processing war project
  [INFO] Copying webapp resources [D:\Aly da Cristianio\My WorkSpace\JBossEAP\src\main\webapp]
  [INFO] Webapp assembled in [13 msecs]
  [INFO] Building war: D:\Aly da Cristianio\My WorkSpace\JBossEAP\target\JBossEAP.war
  [INFO] WEB-INF\web.xml already added, skipping
  [WARNING] Failed to getClass for org.jboss.as.plugin.deployment.Deploy
  [INFO] 
  [INFO] &lt;&lt;&lt; jboss-as-maven-plugin:7.4.Final:deploy (default) &lt; package @ JBossEAP &lt;&lt;&lt;
  [INFO] 
  [INFO] --- jboss-as-maven-plugin:7.4.Final:deploy (default) @ JBossEAP ---
  [INFO] XNIO Version 3.0.7.GA
  [INFO] XNIO NIO Implementation Version 3.0.7.GA
  [INFO] JBoss Remoting version 3.2.12.GA
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 6.308 s
  [INFO] Finished at: 2015-09-02T14:00:07+05:30
  [INFO] Final Memory: 20M/86M
  [INFO] ------------------------------------------------------------------------
  [JENKINS] Archiving D:\Aly da Cristianio\My WorkSpace\JBossEAP\pom.xml to com.subversion.svn/JBossEAP/0.0.1-SNAPSHOT/JBossEAP-0.0.1-SNAPSHOT.pom
  [JENKINS] Archiving D:\Aly da Cristianio\My WorkSpace\JBossEAP\target\JBossEAP.war to com.subversion.svn/JBossEAP/0.0.1-SNAPSHOT/JBossEAP-0.0.1-SNAPSHOT.war
  channel stopped
  ERROR: Build step failed with 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:991)
      at hudson.FilePath.act(FilePath.java:969)
      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:779)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1047)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
      at hudson.model.Run.execute(Run.java:1766)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:408)
  Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
      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: 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.&lt;init&gt;(JBoss5xRemoteDeployer.java:161)
      at org.codehaus.cargo.container.jboss.JBoss7xRemoteDeployer.&lt;init&gt;(JBoss7xRemoteDeployer.java:41)
      ... 26 more
  Caused by: java.lang.ClassNotFoundException: org.jboss.as.controller.client.ModelControllerClient
      at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
      at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
      at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.&lt;init&gt;(JBoss5xRemoteDeployer.java:156)
      ... 27 more
  java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
      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:991)
      at hudson.FilePath.act(FilePath.java:969)
      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:779)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1047)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
      at hudson.model.Run.execute(Run.java:1766)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:408)
  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.`enter code here`
  More information on: http://cargo.codehaus.org/JBoss+Remote+Deployer
      at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.&lt;init&gt;(JBoss5xRemoteDeployer.java:161)
      at org.codehaus.cargo.container.jboss.JBoss7xRemoteDeployer.&lt;init&gt;(JBoss7xRemoteDeployer.java:41)
      ... 26 more
  Caused by: java.lang.ClassNotFoundException: org.jboss.as.controller.client.ModelControllerClient
      at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
      at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
      at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.&lt;init&gt;(JBoss5xRemoteDeployer.java:156)
      ... 27 more
  Build step 'Deploy war/ear to a container' marked build as failure
  Finished: FAILURE
  </code></pre>