蚂蚁部署到Tomcat 7 [英] Ant deploy to tomcat 7
问题描述
我从6版本改变了我的Tomcat服务器到7,现在我的蚂蚁部署失败。
I have changed my Tomcat Server from version 6 to 7 and now my ant deploy fails.
起初,我有我的Ant构建类似于下面,并得到了403错误
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>
我在网上找到一个改变了经理/ HTML
到经理/文
,并添加了角色上的几个来源管理脚本
和管理脚本
在tomcat用户文件。
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.
现在我得到的错误是
java.net.HttpRetryException: cannot retry due to server authentication, in streaming mode
我发现,这可能是因为我部署的是250M左右.war文件的大小,但我没有找到一个解决方案是如何将其部署到从蚂蚁Tomcat 7的。
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.
推荐答案
我终于找到了关于这个问题的一个COM prehensive后:
http://paulgrenyer.blogspot.co.at /2011/11/catalina-ant-for-tomcat-7.html
I finally found a comprehensive post about this Problem: http://paulgrenyer.blogspot.co.at/2011/11/catalina-ant-for-tomcat-7.html
这篇关于蚂蚁部署到Tomcat 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!