Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Ant: Problem with Undeploy Task with Tomcat 6

 
Ranch Hand
Posts: 222
  • 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
 
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: 222
  • 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
 
If we don't do the shopping, we won't have anything for dinner. And I've invited this tiny ad:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!