0 Replies Latest reply on Apr 24, 2014 11:52 AM by vivekpandian

    Remote Deployment on JBOSS EAP 6.1  using Cargo.

    vivekpandian

      I am trying to remote deploy war to EAP 6.1 using cargo. But, it's failing silently. I am not getting any errors on the console or logs. But, the war is not deployed.  

       

       

       

      Gradle snippet.

       

      apply plugin: 'cargo'

       

      buildscript {

        repositories {

        mavenCentral()

        jcenter()

        }

        dependencies {

        classpath 'org.gradle.api.plugins:gradle-cargo-plugin:1.5'

        }

      }

       

       

      war {

        destinationDir = file("$rootDir/war")

        baseName = test'

      }

       

       

      //buildDependents

      dependencies {

       

      //.... other dependencies.

       

       

       

        cargo "org.codehaus.cargo:cargo-core-uberjar:1.4.5",

             "org.codehaus.cargo:cargo-ant:1.4.5"

        

          cargo group: 'org.jboss.as', name: 'jboss-as-controller-client', version: '7.1.1.Final'

      }

       

       

       

       

      cargo {

          timeout = 300000

          containerId = 'jboss72x'

          port = 9999

          type = "remote"

       

          deployable {

              file = file('war/test.war')

              context = 'test'

              pingURL = 'http://<host>:<port>/<context>/index.html'

              pingTimeout = 60000

             

          }

       

        remote {

        username = 'user'

        password = 'pwd'

        hostname = <host>

       

        }

      }

       

       

       

      Log Message.

       

      Selected primary task 'cargoRedeployRemote'

      Tasks to be executed: [task ':cargoRedeployRemote']

      :cargoRedeployRemote (Thread[Daemon,5,main]) started.

      :cargoRedeployRemote

      Executing task ':cargoRedeployRemote' (up-to-date check took 0.0 secs) due to:

        Task has not declared any outputs.

      Container ID = jboss72x

      Deployable artifacts = [C:\Vivek\em_platform\em_platform\war\em_platform.war]

      Starting action 'redeploy' for remote container 'JBoss 7.2.x' on 'http://<ip>:<port>'

      Container properties = [:]

      XNIO Version 3.0.3.GA

      XNIO NIO Implementation Version 3.0.3.GA

      JBoss Remoting version 3.2.3.GA

      :cargoRedeployRemote (Thread[Daemon,5,main]) completed. Took 6.159 secs.

       

       

      BUILD SUCCESSFUL

       

       

      Let me know, if i have done anything incorrect.