aspose file tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Problems with Tomcat Ant Tasks Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Problems with Tomcat Ant Tasks" Watch "Problems with Tomcat Ant Tasks" New topic
Author

Problems with Tomcat Ant Tasks

Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Posts: 15040

I am trying to see if Tomcat ant tasks are going to work ok for my project. I have a simple WAR file that I am test deploying. Locally, meaning when I set my manager URL to localhost everything works fine. When I try and deploy to a remote machine via it's IP I get an error message. Here is my ant file:



I get the following Error message:



If I change the ${url} to http://localhost:8080/manager and I have tomcat running on the same PC I am running ant from, everything works fine. Any ideas?


My Blog | DZone Articles
Mike Clark
author
Ranch Hand

Joined: Aug 15, 2003
Posts: 83
I think you might need to drop the // from the file URL in the 'install' target, like so:



It seems to be confused by your drive letter (Z).

Mike
[ September 21, 2004: Message edited by: Mike Clark ]

Mike Clark<br />Author of <a href="http://www.amazon.com/exec/obidos/ASIN/0974514039/ref=jranch-20" target="_blank" rel="nofollow">Pragmatic Project Automation</a>
Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Posts: 15040

Thanks Mike. I'll give that a shot.
Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Posts: 15040

Mike, that worked great. Thanks a lot.
Mike Clark
author
Ranch Hand

Joined: Aug 15, 2003
Posts: 83
My pleasure. :-)

Mike
 
 
subject: Problems with Tomcat Ant Tasks
 
Threads others viewed
Spring coniguration
Ant script not finding my build.properties file
Regarding Ant issue.
Need help in build applications using ant : getting exception
Error The requested resource is not available
MyEclipse, The Clear Choice