aspose file tools*
The moose likes Tomcat and the fly likes Issue undeploying an app using an Ant target Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Issue undeploying an app using an Ant target" Watch "Issue undeploying an app using an Ant target" New topic
Author

Issue undeploying an app using an Ant target

Rajeev Motha
Greenhorn

Joined: Apr 05, 2012
Posts: 7
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?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
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

Joined: Apr 05, 2012
Posts: 7
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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue undeploying an app using an Ant target
 
Similar Threads
undeploying bean in weblogic 6
package does not exist
UnDeploy task is not working properly
Eclipse interaction with Tomcat - cannot undeploy applications
Tomcat is not finding my class