Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ANT Install Task Fails

Status
Not open for further replies.

Affleck

Technical User
Jun 19, 2001
26
GB
Hello,

I am trying to Hot Deploy a webapp to Tomcat using ant and the tomcat manager tasks.

<target name="install" description="Install application in Tomcat" depends="deploywar">
<install url="${tomcat.manager.url}"
username="${tomcat.username}"
password="${tomcat.password}"
path="/"
war="file://${build.dir}/${warname}"/>
</target>

The error I am getting is:
"Cannot Access document base directory ./build/webapp.war" I have tried copying the WAR manually and deploying (Using install) via the manager app and it works fine. I have also tried copying the WAR to the webapp folder and referencing it from there rather than the war in the build directory and it still don't work :(
Any help would be greatly appreciated


TIA

CT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top