# Cargo Plugin - Failed to Create Deployer

**URL:** <https://discuss.gradle.org/t/cargo-plugin-failed-to-create-deployer/1751>\
**Category:** Old Forum Archive\
**Created:** [March 24, 2014, 10:48am UTC](https://discuss.gradle.org/t/cargo-plugin-failed-to-create-deployer/1751 "2014-03-24T10:48:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeffrey\_Effendy](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@Jeffrey\_Effendy](https://discuss.gradle.org/u/Jeffrey_Effendy)\
**Post date:** [March 24, 2014, 10:48am UTC](https://discuss.gradle.org/t/cargo-plugin-failed-to-create-deployer/1751/1 "2014-03-24T10:48:00Z")

</div>

Hi, I have issues using cargo plugin. For all solutions I found, it seems like it still gives me the same issue. Here is my build.gradle script.

```gradle
apply plugin: 'java'
apply plugin: 'ear'
apply plugin: 'cargo'
  buildDir = '../output'
  repositories {
 mavenCentral()
}
  buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'org.gradle.api.plugins:gradle-cargo-plugin:1.4.1'
    }
}
  dependencies {
 def cargoVersion = '1.4.5'
    cargo "org.codehaus.cargo:cargo-core-uberjar:$cargoVersion",
          "org.codehaus.cargo:cargo-ant:$cargoVersion"
 compile project(':NRTenantStatusReport-ejb')
 deploy project(path:':NRTenantStatusReport-web', configuration:'archives')
}
  ear {
 from ('../NRTenantStatusReport-ejb/build/libs') {
  into '/'
 }
 from ('../libs') {
  into '/lib'
 }
 deploymentDescriptor {
  webModule('NRTenantStatusReport-web.war', 'reports')
 }
}
  cargo{
 containerId = 'jboss7x'
 port = 9990
 local {
  homeDir = file(System.getenv("JBOSS_HOME"))
 }
 remote {
  hostname = 'localhost'
  username = 'jeffrey'
  password = 'password'
 }
   }

```

So, i want to automatically deploy an ear file to JBoss. However it gives me an error below

```gradle
Caused by: : org.codehaus.cargo.container.ContainerException: Failed to create d
eployer with implementation class org.codehaus.cargo.container.jboss.JBoss7xRemo
teDeployer for the parameters (container [id = [jboss7x]], deployer type [remote
]).

```

Anybody has an idea about this issue?

---

<div class="post-metadata">

**Author:** ![bmuschko](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/bmuschko/32/5458_2.png) [@bmuschko](https://discuss.gradle.org/u/bmuschko)\
**Post date:** [March 24, 2014, 1:08pm UTC](https://discuss.gradle.org/t/cargo-plugin-failed-to-create-deployer/1751/2 "2014-03-24T13:08:00Z")

</div>

I can reproduce the issue but only with JBoss. This works fine with other containers like Tomcat for example. My guess is that it is a bug in Cargo’s Ant task. I’d need to have a deeper look at it. Would you mind opening an issue on the plugin’s GitHub page?

---

<div class="post-metadata">

**Author:** ![bmuschko](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/bmuschko/32/5458_2.png) [@bmuschko](https://discuss.gradle.org/u/bmuschko)\
**Post date:** [March 25, 2014, 6:56pm UTC](https://discuss.gradle.org/t/cargo-plugin-failed-to-create-deployer/1751/3 "2014-03-25T18:56:00Z")

</div>

The dependency declaration was missing the JBoss client libraries. For more information please check the [GitHub issue](https://github.com/bmuschko/gradle-cargo-plugin/issues/84).

---

<div class="post-metadata">

**Author:** ![Jeffrey\_Effendy](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@Jeffrey\_Effendy](https://discuss.gradle.org/u/Jeffrey_Effendy)\
**Post date:** [March 26, 2014, 5:14am UTC](https://discuss.gradle.org/t/cargo-plugin-failed-to-create-deployer/1751/4 "2014-03-26T05:14:00Z")

</div>

thanks a lot!!
