Java Mailing List Archive

http://www.junlu.com/

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

Context reloading

Graham Smith

2005-08-11


I'm having a problem reloading / redeploying one of my web applications using
the ant tasks.

The target I am trying to run is this and it fails on when stopping the
application.

<target name="redeploy" description="Reinstall the existing web application">
          <stop url="${url}" username="${username}"
password="${password}" path="${path}"/>
          <delete dir="${base}"/>
          <copy todir="${base}">
               <fileset dir="${content.base}"/>
          </copy>
          <start url="${url}" username="${username}"
password="${password}" path="${path}"/>
    </target>

The error message given is "removeAttribute: Session already invalidated"
which seems to be exactly the same as this bug

http://issues.apache.org/bugzilla/show_bug.cgi?id=30489

Unfortunately I don't have a test case either but I am running tomcat 5.5.9.
Three other web applications deployed in the same instance of tomcat can be
redeployed with an essentially identical ant target just fine. It is just
this one application that fails. Annoyingly when it fails it takes out the
tomcat manager as well meaning the whole of tomcat needs to be restarted. Any
ideas what might be wrong?

TIA
Graham

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

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