Hi,
I'm not sure if this is a networking/tomcat problem or a configuration problem with CARGO and my maven2 pom file.
When I try to deploy to a remote Tomcat instance (currently running) I get an IOException stating
Error writing request body to server
at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.che
ckError(HttpURLConnection.java:2524)
at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.wri
te(HttpURLConnection.java:2507)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65
)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109)
at org.codehaus.cargo.container.tomcat.internal.TomcatManager.pipe(Tomca
tManager.java:601)
The war file I'm deploying is about 17MB. Deploying using the Tomcat manager is working fine. Can someone point me in the right direction whether it's a problems with the CARGO config or if the problem might be somewhere else. I'm using maven 2.09, JDK-1.6.0_06 and Tomcat 5.5
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<!-- <version>1.0-alpha-6</version> -->
<configuration>
<container>
<containerId>tomcat5x</containerId>
<type>remote</type>
</container>
<configuration>
<type>runtime</type>
<properties>
<cargo.tomcat.manager.url>
http://server1:8080/manager </cargo.tomcat.manager.url>
<cargo.remote.username>admin</cargo.remote.username>
<cargo.remote.password>admin</cargo.remote.password>
</properties>
</configuration>
<deployer>
<type>remote</type>
<deployables>
<deployable>
<groupId>net.xzy</groupId>
<artifactId>myapp</artifactId>
<type>war</type>
</deployable>
</deployables>
</deployer>
</configuration>
</plugin>