我已经将Tomcat Server从版本6更改为版本7,现在我的ant部署失败。
起初,我的ant构建如下所示,并得到一个403错误
<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,并在tomcat-user文件中添加了角色manager-script和admin-script。
我现在得到的错误是
java.net.HttpRetryException: cannot retry due to server authentication, in streaming mode我发现这可能是因为我部署的.war文件的大小约为250M,但我没有找到如何从ant将其部署到Tomcat7的解决方案。
发布于 2013-04-19 19:50:40
我终于找到了一个关于这个问题的综合帖子:http://paulgrenyer.blogspot.co.at/2011/11/catalina-ant-for-tomcat-7.html
https://stackoverflow.com/questions/16103155
复制相似问题