my dog learned polymorphism*
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant: Problem with Undeploy Task with Tomcat 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant: Problem with Undeploy Task with Tomcat 6" Watch "Ant: Problem with Undeploy Task with Tomcat 6" New topic
Author

Ant: Problem with Undeploy Task with Tomcat 6

James Dekker
Ranch Hand

Joined: Dec 09, 2006
Posts: 215
Hello there,

I am using Tomcat 6, Apache Ant 1.7.1 and JDK 1.6 on OS X Snow Leopard...

Created the following build script and supporting property files:

(1) build.xml



(2) admin.properties



(3) build.properties:



(4) tomcatTasks.properties


(5) tomcat-users.xml :



When I run the deploy target, everything works (it places myproject.war) underneath $CATALINA_HOME/webapps...

However, when I run the undeploy target, I get the following error message:

Problem:


Would really appreciate it if someone could tell me what I am doing wrong!

Happy programming,

James
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
tomcat-users.xml is missing the user with the manager role
James Dekker
Ranch Hand

Joined: Dec 09, 2006
Posts: 215
Misha,

Thank you so much for the response!



Yes, it worked! Thank you so much! BTW, in order, to get it to work, I had to have Tomcat running!

-James
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant: Problem with Undeploy Task with Tomcat 6