问题描述
我想从蚂蚁重新加载Web应用程序。
但我遇到错误未找到:
I'm trying to reload web application from ant.but I got error not found:
D:\project\triplelands\ocbcfilesending\src\com.ocbcmcd.monitoring\build.xml:90:
java.io.FileNotFoundException: http://localhost:8080/manager/reload?path=%2Fhello
我也尝试直接访问:
我得到404错误code从我的浏览器:
I also try direct access: http://localhost:8080/manager/reload?path=/helloI got 404 error code from my browser:
我的配置是:
我的Ant脚本的
<target name="deploy-realod" depends="deploy" description="Reload application in Tomcat">
<reload url="${tomcat.manager.url}" username="${tomcat.manager.username}" password="${tomcat.manager.password}" path="/${name}" />
</target>
build.properties
appserver.home=C:/appserv/apache6
#for Tomcat 5 use $appserver.home}/server/lib
#for Tomcat 6 use $appserver.home}/lib
appserver.lib=${appserver.home}/lib
deploy.path=${appserver.home}/webapps
tomcat.manager.url=http://localhost:8080/manager
tomcat.manager.username=root
tomcat.manager.password=root
tomcat的用户配置
tomcat user configuration
<user name="root" password="root" roles="admin-gui,manager-gui,tomcat,role1" />
感谢您的建议
推荐答案
我也遇到了这个问题,在移动一个项目,我已经从Tomcat 6工作到Tomcat 7基本上,一直在经理发生变动URL,在那里它被分成几个,取决于你如何使用它接口上使用的每个组成:
I too ran into this issue, while moving a project I've been working on from Tomcat 6 to Tomcat 7. Essentially, there's been a change in the manager URL, where it's been split into several, the use of each depending on how you interface with it:
* /manager/html for the HTML GUI
* /manager/text for the text interface
* /manager/jmxproxy for the JMX proxy
* /manager/status for the status pages
在蚂蚁的情况下,要使用/经理/文本。
所以,你需要编辑build.properties文件,像这样:
In the case of ant, you want to use /manager/text.SO, you'll need to edit your build.properties file, like so:
tomcat.manager.url=http://localhost:8080/manager/text
希望帮助!
这篇关于蚂蚁Tomcat 7的刷新FileNotFoundException异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!