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
I also try direct access: http://localhost:8080/manager/reload?path=/hello I got 404 error code from my browser:
My configuration is:
My Ant Script
<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 user configuration
<user name="root" password="root" roles="admin-gui,manager-gui,tomcat,role1" />
Thanks for advice
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:
In the case of ant, you want to use /manager/text. SO, you'll need to edit your build.properties file, like so:
Hope that helps!
To get it working on Tomcat 7, you would need the following -
build.xml
build.properties
tomcat-users.xml
cheers, alexi
tomcat user configuration in tomcat 7.0 should be like this: