I am trying to reload a web application from ant. but I did not get the error:
D:\project\triplelands\ocbcfilesending\src\com.ocbcmcd.monitoring\build.xml:90: java.io.FileNotFoundException: http://localhost:8080/manager/reload?path=%2Fhello
I will also try direct access: http: // localhost: 8080 / manager / reload? Path = / hello I got a 404 error code from my browser:
My configuration:
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 the advice
source share