Do you have a context.xml in META-INF in your war?

Since 5.x, you don't really need to undeploy first, adding update="true"
into deploy task will undeploy your app before deployment..



-----Original Message-----
From: Andy Kriger [mailto:[EMAIL PROTECTED] 
Sent: January 19, 2005 10:10 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: undeploy/deploy


> Which ant task do you use to deploy/undeploy wars? What is the url in 
> task?

<target name="webapp-undeploy" depends="webapp-prepare" if="app-deployed">
                <undeploy url="${container.mgr.url}"
                        username="${container.mgr.name}"
                        password="${container.mgr.pass}"
                        path="/${webapp.name}"/>
        </target>

<target name="webapp-deploy" depends="webapp-prepare">
                <deploy url="${container.mgr.url}"
                                username="${container.mgr.name}"
                                password="${container.mgr.pass}"
                                path="/${webapp.name}"
                                war="${webapp.war}"/>
        </target>

${container.mgr.url} = http://localhost:8080/manager

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


!DSPAM:41ee7860229441382212633!

Reply via email to