There are no errors in catalina.out when this occurs.



Yes, via the manager UI I can deploy the WAR, but that doesn't help me in our 
automated scripts.



It does appear to be on the Ant side of things though. Does chunking need to be 
turned on in Manager (or does that setting enable it)?



Or does Ant need to support chunking?


On May 24, 2018, at 11:48 AM, Luis Rodríguez Fernández <uo67...@gmail.com> 
wrote:


Hello Arnold,

In this type of issues you should get something like this in the
catalina.out:

ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager] -
HTMLManager: FAIL - Deploy Upload Failed, Exception:
[org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException:
the request was rejected because its size (355668026) exceeds the
configured maximum (52428800)]

It looks like is more in the ant side. Have you tried directly with the
/manager application?

Hope it helps,

Luis










2018-05-24 17:51 GMT+02:00 Arnold Morein <arnie.mor...@me.com>:


Have been working on a WAR project that is pretty big (104MB) against
Tomcat 8. The Ant command:


<deploy url="${url}" username="${username}" password="${password}"
path="${path}" war="file:${dist.home}${path}.war" />


Was working fine. After upgrading to the last JDK 8 (1.8.0_172) and Tomcat
9.0.8 this command results in:


build.xml:832: java.io.IOException: Error writing request body to server


I've googled but all I have found is that the Tomcat manager application
has a 50MB default upload limit, which I changed to:


<multipart-config>
<!--
<max-file-size>52428800</max-file-size>
<max-request-size>52428800</max-request-size>
-->
<max-file-size>150000000</max-file-size>
<max-request-size>150000000</max-request-size>
<file-size-threshold>0</file-size-threshold>
</multipart-config>


And yet after restarting Tomcat, the error remains.


Can anyone else replicate this behavior or suggest a fix?






--

"Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better."

- Samuel Beckett

Reply via email to