You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by an...@bt.com on 2007/02/13 18:09:46 UTC

Problem using deploy/undeploy ant tasks

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@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org