Details
Description
I only see failure when I'm trying to remote deploy to a JBoss 4.2.3 GA instance. I've ensured the servers can speak to each other, and I've manually placed a war on the deploying server's normal (port 80) webserver and manually crafted the URL the Cargo makes to hit it, and that works fine, too. So all connectivity seems fine.
The only things that seems to me to be wrong is that the filename in the URL in the example at http://cargo.codehaus.org/JBoss+Remote+Deployer#JBossRemoteDeployer-JBoss40xand42x contains "-1.0-SNAPSHOT" and even though I am trying to deploy a snapshot, too, I only have "fly-garmin.war" with no version or "-SHAPSHOT".
Here is what I have in my POM...
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<container>
<containerId>jboss42x</containerId>
<type>remote</type>
</container>
<configuration>
<type>runtime</type>
<properties>
<cargo.remote.username>foo</cargo.remote.username>
<cargo.remote.password>bar</cargo.remote.password>
<cargo.hostname>dflyproxy.garmin.com</cargo.hostname>
<cargo.servlet.port>80</cargo.servlet.port>
<cargo.jboss.remotedeploy.port>8980</cargo.jboss.remotedeploy.port>
<cargo.logging>high</cargo.logging>
</properties>
</configuration>
</configuration>
<executions>
<execution>
<id>start-container</id>
<phase>pre-integration-test</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
A little more info... if I hardcode the IP of the deploying server it works... once. So, for example, I do this...
<cargo.jboss.remotedeploy.hostname>111.222.333.1</cargo.jboss.remotedeploy.hostname>
<cargo.jboss.remotedeploy.port>8980</cargo.jboss.remotedeploy.port>
...and it works. Then if I run it again, it fails with this...
[DEBUG] [SimpleHttpFileServer] Waiting for connection on socket ServerSocket[addr=/111.222.333.1,port=0,localport=8980]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.764s
[INFO] Finished at: Wed Apr 18 15:44:09 CDT 2012
[INFO] Final Memory: 16M/160M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.2.1:deploy (start-container) on project com-flygarmin: Execution start-container of goal org.codehaus.cargo:cargo-maven2-plugin:1.2.1:deploy failed: Application server didn't request the file -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.2.1:deploy (start-container) on project com-flygarmin: Execution start-container of goal org.codehaus.cargo:cargo-maven2-plugin:1.2.1:deploy failed: Application server didn't request the file
...then if I change the port number like this...
<cargo.jboss.remotedeploy.port>8981</cargo.jboss.remotedeploy.port>
...and run it again, it works.