Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Problem using deploy/undeploy ant tasks

andy mcneill

2007-02-13


Hi,

I'm trying to apply changes to a webapp to a running tomcat server.

I'm using an ant target like this

<target name="redeploy" description="Redeploy web application">
  <echo message="URL - ${url}"/>
  <echo message="Undeploying dashboard ..."/>
  <undeploy url="${url}" username="${username}" password="${password}"
       path="${path}"/>
  <echo message="Undeploy complete"/>
  <echo message="Redeploying dashboard ..."/>
  <deploy url="${url}" username="${username}" password="${password}"
       path="${path}" war="./rcdashboard_live.war"/>
  <echo message="Redeploy complete"/>
</target>

It all appears to work and I get a BUILD SUCCESSFUL message.

However the web application is no longer available and I get a 404.

According to the Tomcat manager the webapp is running but I noticed
there is no longer a display name.


In the webapp directory all that is present is the WEB-INF/lib
directory, so getting a 404 message is not surprising


Is there some config that I have to set in the main server/config.xml
file to get this to work ?


Many thanks

Andy

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.