title: Ant deploy to tomcat 7
body: <p>I have changed my Tomcat Server from version 6 to 7 and now my ant deploy fails.</p>
  
  <p>At first i had my ant build like the following and got a 403 error</p>
  
  <pre><code>&lt;taskdef resource="org/apache/catalina/ant/catalina.tasks" classpathref="x.classpath" /&gt;
  
  &lt;target name="tomcatdeploy" depends="tomcatundeploy,war"&gt;
    &lt;deploy url="http://localhost/manager/html" username="x" password="x" path="/xx" war="file:x.war"/&gt;                   
  &lt;/target&gt;
  </code></pre>
  
  <p>I found several sources on the internet an changed the <code>manager/html</code> to <code>manager/text</code> and added the roles <code>manager-script</code> and <code>admin-script</code> in the tomcat-user file.</p>
  
  <p>The error I am getting now is </p>
  
  <pre><code>  java.net.HttpRetryException: cannot retry due to server authentication, in streaming mode
  </code></pre>
  
  <p>I found that this may be because of the size of the .war file which i deploy which is about 250M, but i didn't find a solution how to deploy it to tomcat 7 from ant.</p>