bmuschko / gradle-cargo-plugin

Gradle plugin that provides deployment capabilities to local and remote containers via Cargo
Apache License 2.0
258 stars 61 forks source link

Error writing request body to server #150

Closed lucduong closed 8 years ago

lucduong commented 8 years ago

I tried to deploy on Tomcat 8x

Caused by: java.io.IOException: Error writing request body to server
    at org.codehaus.cargo.container.tomcat.internal.TomcatManager.pipe(TomcatManager.java:820)
    at org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke(TomcatManager.java:568)
    at org.codehaus.cargo.container.tomcat.internal.TomcatManager.deployImpl(TomcatManager.java:760)
    at org.codehaus.cargo.container.tomcat.internal.TomcatManager.deploy(TomcatManager.java:312)
    at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.deploy(AbstractTomcatManagerDeployer.java:101)
    ... 77 more

I thought that my war file is too large so I have changed the limit size in tomcat manager:

<multipart-config>
      <!-- 50MB max -> 52428800-->
      <max-file-size>104857600</max-file-size>
      <max-request-size>104857600</max-request-size>
      <file-size-threshold>0</file-size-threshold>
    </multipart-config>