0 Replies Latest reply on Dec 10, 2013 8:55 PM by Wind Wild

    Using cargo to deploy war to remote Jboss7 server

    Wind Wild Newbie


      I would like to use Cargo to deploy my maven generated war file to a remote JBoss Server that is already running.

      I have configured my pom.xml like this:

           <!-- Deployer configuration -->
                      <!-- Deployables configuration -->

      If I run this with the maven command:


      The eclipse console says:

      Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.2.0:deploy (default-cli) on project cargo: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.2.0:deploy failed:
      Cannot deploy deployable org.codehaus.cargo.container.jboss.deployable.JBossWAR[cargo.war]: java.net.ConnectException: JBAS012144: Could not connect to remote:// The connection timed out

      On the running JBoss server I can see a logging message in the console like this:

      22:57:25,400 ERROR [org.jboss.remoting.remote.connection] (Remoting "localhost:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Connection reset by peer

      Does anybody have an idea what could be wrong or how I could get more debug info from cargo to find out what exactly the problem is?