Tomcat deploy war with Ant - error writing to server
It could be disk space, or hot deploy. For hot deploy, you can put the following parameters:

...
&lt;target name="tomcat-stop"&gt;
    &lt;exec executable="${server.home}/bin/catalina.bat"&gt;
        &lt;arg value="stop"/&gt;
    &lt;/exec&gt;
&lt;/target&gt;

&lt;target name="tomcat-start"&gt;
    &lt;exec executable="${server.home}/bin/startup.bat"&gt;
        &lt;arg value="start"/&gt;
    &lt;/exec&gt;
&lt;/target&gt;
...
&lt;target name="all" depends="tomcat-stop,clean,init,compile,junit-slow,make_war,deploy,tomcat-start"&gt;&lt;/target&gt;


The answer is at this link: https://stackoverflow.com/a/32482795/8442153