tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Sudden change in Tomcat 7.0.6 behaviour
Date Fri, 25 Feb 2011 20:14:41 GMT
Hash: SHA1


On 2/25/2011 2:35 PM, McGibbney, Lewis John wrote:
> Firstly I think it is important to state that I have included an xml
> file within both tomcat dist's under the following
> CATALINA_HOME/conf/Catalina/localhost/mywebbapp.xml with the following
> contents
> <?xml version="1.0" encoding="utf-8"?>
> <Context docBase="/home/lewis/Downloads/mywebapp/mywebapp.war" debug="0" crossContext="true"
>   <Environment name="solr/home" type="java.lang.String" value="/home/lewis/Downloads/mywebbapp"
> </Context>

Okay. Exactly how do you undeploy/redeploy your webapp?

> My problem is that today when I undeployed the webapp, then
> unpackaged
> my up-to-date WAR version, any code changes which I make don't seem to
> be being reloaded, E.g. when I reload the app, the old code is shown
> instead of any changes I have made prior to reloading.

When you say "old code", do you mean that your web pages seem to be
unchanged, or that Tomcat appears to run old, outdated versions of your
compiled code?

Quick tips:

1. Shut down Tomcat, delete all
conf/Catalina/localhost/mywebbapp.xml-type things and make sure they are
the files you really intend for them to be.

2. Delete Tomcat's "work" and "temp" directories

3. Re-start Tomcat

That might help Tomcat "clear it's throat".

If the above helps, you might want to check time/datestamps on your
files, and whether or not the time and date are set properly on your server.

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message