Ant deploy to tomcat 7

和自甴很熟 提交于 2019-12-08 08:24:18

问题


I have changed my Tomcat Server from version 6 to 7 and now my ant deploy fails.

At first i had my ant build like the following and got a 403 error

<taskdef resource="org/apache/catalina/ant/catalina.tasks" classpathref="x.classpath" />

<target name="tomcatdeploy" depends="tomcatundeploy,war">
  <deploy url="http://localhost/manager/html" username="x" password="x" path="/xx" war="file:x.war"/>                   
</target>

I found several sources on the internet an changed the manager/html to manager/text and added the roles manager-script and admin-script in the tomcat-user file.

The error I am getting now is

  java.net.HttpRetryException: cannot retry due to server authentication, in streaming mode

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.


回答1:


I finally found a comprehensive post about this Problem: http://paulgrenyer.blogspot.co.at/2011/11/catalina-ant-for-tomcat-7.html



来源:https://stackoverflow.com/questions/16103155/ant-deploy-to-tomcat-7

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!