Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant: Problem with Undeploy Task with Tomcat 6

 
James Dekker
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tomcat-users.xml is missing the user with the manager role
 
James Dekker
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic