Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to remove a page or a war file from cache 1

Status
Not open for further replies.

AnthonyGeorge

Technical User
Jun 3, 2004
46
GB
posted July 12, 2004 09:01 AM
I guess this is a very numpty question, my browser is loading a page from the cache rather than the page I have updated. I guess this is because of an error in the updated page. What I want to know is how to I force Tomcat to pick up and display the modified page or the error that is generated.

eg Page outputs version 1.3 change page to version 1.4 still picking up version 1.3

I have cleared my history, deleted the old war file, logged of and on again and it still picks up the old war file from where I have no idea.

The work around is I have renamed the war file and point my browser at it, and it picks up the new pages.

But I would love to know:

A) why did it keep loading a delted war file.
B) apart from renaming pages, war file ect is there another way round this problem

Tony
 
Its probably your browser :

Click (if IE) Tools-->Internet Options --> Delete Files

and delete all files (including offline ones).

Failing this, Tomcat does seem sometimes to get confused with the work directory.

Go to TOMCAT_HOME/work/Catalina/localhost (for tomcat 5, slightly different naming for tomcat 4) and there should be your war file in a directory, unpacked. Delete the entire directory.

--------------------------------------------------
Free Database Connection Pooling Software
 
Thanks, I have no idea what is happening with tomcat at the moment, I am getting weird errors, and to run a new war file I have to go into the Standalone\localhost and delete the old directory.

Guess I will have to download the source files build tomcat with some helpful debug output.

Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top