• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ant Build Failed for uninstall

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am facing a varitey problem with ANT. I have written an ant Script which Installs me a WAR file into Tomcat. I have one more Task to uninstall also. When I use uninstall It is giving me some HTML dump on my command line and at the end it is saying BUILD FAILED. But When I check with Admin pages WAR files is uninstalled. What could be the problem with Script. Here I am pasting the script I am using.



<!-- Tomcat Ant Tasks -->
<project name="webmodulebuilder" default="uninstall" basedir=".">
<taskdef file="C:/tomcatTasks.properties">
<classpath>
<pathelement path="C:\Program Files\Apache Software Foundation\Tomcat 5.0\server\lib\catalina-ant.jar"/>
</classpath>
</taskdef>



<target name="uninstall" description="Remove application from Tomcat" >
<undeploy url="http://localhost:8080/manager/html"
username="admin"
password="admin"
path="/TestJ2EE"
/>
</target>
</project>


Tomcat.Properties:

deploy=org.apache.catalina.ant.DeployTask

undeploy=org.apache.catalina.ant.UndeployTask

remove=org.apache.catalina.ant.RemoveTask

reload=org.apache.catalina.ant.ReloadTask

start=org.apache.catalina.ant.StartTask

stop=org.apache.catalina.ant.StopTask

list=org.apache.catalina.ant.ListTask

Thanks
Srinivas Ivaturi.
 
Srinivas Ivaturi
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone look into this please.

Thanks
Srinivas Ivaturi.
 
Quick! Before anybody notices! Cover it up with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic