Ant 部署到 tomcat 7 [英] Ant deploy to tomcat 7
问题描述
我已将 Tomcat 服务器从版本 6 更改为 7,现在我的 ant 部署失败.
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>
我在互联网上找到了几个资源,将 manager/html
更改为 manager/text
并添加角色 manager-script
和 admin-script
在 tomcat-user 文件中.
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
我发现这可能是因为我部署的 .war 文件的大小约为 250M,但我没有找到如何从 ant 将其部署到 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.
推荐答案
我终于找到了一篇关于这个问题的综合帖子: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
这篇关于Ant 部署到 tomcat 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!