• 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
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Issue undeploying an app using an Ant target

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have added the following target to my build.xml, and when invoked, it results with the success message (below)

<target name="undeploy">
<undeploy url="${tomcat.manager}"
username="${tomcat.username}"
password="${tomcat.password}"
path="/${app.name}" />
</target>

--------------------------------------------------------------
undeploy:
[undeploy] OK - Undeployed application at context path /simple

BUILD SUCCESSFUL
Total time: 0 seconds
--------------------------------------------------------------------

However, the app doesnt get properly undeployed, as it still shows as 'running' in the tomcat manager.

Any ideas?
 
Saloon Keeper
Posts: 5564
143
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you see in the log files that Tomcat is getting accessed and is trying to undeploy the app? That would be in logs/catalina.out, I think.
 
Rajeev Motha
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep tomcat does get accessed according to the log, it doesnt log anything about the completion of the task. (Not sure if it's supposed to)

Apr 6, 2012 1:45:52 AM org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/simple]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!