tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeroen Breedveld" <jero...@x-hive.com>
Subject Remove anttask context problem
Date Mon, 30 Jun 2003 14:22:32 GMT
Hi all, 

I use the catalina anttasks to deploy my webapp like this:
 
  <target name="deploy" depends="build">
    <delete file="${demo.name}.war"/>
    <war destfile="${demo.name}.war" webxml="web.xml">
      <classes dir="../build"/>
      <lib dir="../lib"/>
      <fileset dir="../web"/>
    </war>
    <deploy url="http://${host}/manager" 
       username="${tomcat.admin}" 
       password="${tomcat.password}" 
           path="/${demo.name}" 
            war="file:./${demo.name}.war"/>
  </target>

 <target name="remove" depends="build">
    <remove url="http://${host}/manager" username="${tomcat.admin}"
password="${tomcat.password}" path="/${demo.name}"/>
  </target>

However when after I call "ant remove" the server.xml still contains a
context for the deployed webapp. After I restart the tomcat server this
context fails to start because the docbase is gone. 
Can someone tell me why the remove task doesn't also remove the context?
I tried the undeploy but that doesn't work at all because it says it can
remove the document base for my webapp.

Thanks and regards,

Jeroen

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message