首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ant部署到tomcat 7

Ant部署到tomcat 7
EN

Stack Overflow用户
提问于 2013-04-19 19:04:29
回答 1查看 3.3K关注 0票数 1

我已经将Tomcat Server从版本6更改为版本7,现在我的ant部署失败。

起初,我的ant构建如下所示,并得到一个403错误

代码语言:javascript
复制
<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-scriptadmin-script

我现在得到的错误是

代码语言:javascript
复制
  java.net.HttpRetryException: cannot retry due to server authentication, in streaming mode

我发现这可能是因为我部署的.war文件的大小约为250M,但我没有找到如何从ant将其部署到Tomcat7的解决方案。

EN

回答 1

Stack Overflow用户

发布于 2013-04-19 19:50:40

我终于找到了一个关于这个问题的综合帖子:http://paulgrenyer.blogspot.co.at/2011/11/catalina-ant-for-tomcat-7.html

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16103155

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档