Anyone have problems with Tomcat 5.5.4 undeploy ant task?

  • Thread starter The Abrasive Sponge
  • Start date
T

The Abrasive Sponge

Hey everyone,

Anybody experience a problem with the tomcat undeploy ant task for
version Tomcat 5.5.4? The undeploy task is supposed to remove all files
under the work directory and the webapps directory and not make it
available anymore. All it seems to do is stop the webapp, but not undeploy.

Here is a copy of my ant task

<taskdef file="tomcat-tasks.properties">
<classpath>
<pathelement
path="${tomcat.home}/server/lib/catalina-ant.jar"/>
</classpath>
</taskdef>

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


tomcat-tasks.properties looks like this:

deploy=org.apache.catalina.ant.DeployTask
install=org.apache.catalina.ant.InstallTask
list=org.apache.catalina.ant.ListTask
reload=org.apache.catalina.ant.ReloadTask
remove=org.apache.catalina.ant.RemoveTask
resources=org.apache.catalina.ant.ResourcesTask
roles=org.apache.catalina.ant.RolesTask
start=org.apache.catalina.ant.StartTask
stop=org.apache.catalina.ant.StopTask
undeploy=org.apache.catalina.ant.UndeployTask

Thanks for any help.
 
T

The Abrasive Sponge

The said:
Hey everyone,

Anybody experience a problem with the tomcat undeploy ant task for
version Tomcat 5.5.4? The undeploy task is supposed to remove all files
under the work directory and the webapps directory and not make it
available anymore. All it seems to do is stop the webapp, but not
undeploy.

Here is a copy of my ant task

<taskdef file="tomcat-tasks.properties">
<classpath>
<pathelement
path="${tomcat.home}/server/lib/catalina-ant.jar"/>
</classpath>
</taskdef>

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


tomcat-tasks.properties looks like this:

deploy=org.apache.catalina.ant.DeployTask
install=org.apache.catalina.ant.InstallTask
list=org.apache.catalina.ant.ListTask
reload=org.apache.catalina.ant.ReloadTask
remove=org.apache.catalina.ant.RemoveTask
resources=org.apache.catalina.ant.ResourcesTask
roles=org.apache.catalina.ant.RolesTask
start=org.apache.catalina.ant.StartTask
stop=org.apache.catalina.ant.StopTask
undeploy=org.apache.catalina.ant.UndeployTask

Thanks for any help.


Solved it....
In your context.xml you need to add antiJARLocking="true"
antiResourceLocking="true". Deployment is a little slower but that
takes care of the situation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,832
Latest member
GlennSmall

Latest Threads

Top