aspose file tools*
The moose likes Tomcat and the fly likes cache problem with pages in tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "cache problem with pages in tomcat" Watch "cache problem with pages in tomcat" New topic
Author

cache problem with pages in tomcat

rudolf hitler
Ranch Hand

Joined: Feb 07, 2003
Posts: 34
Hi ppl,
I have this problem with tomcat everytime i make a change to my servlet tomcat doesnt reflect the change until i dont shut it down and start up.Is there any way i can get around this problem and not have to shut and start up the sever everytime i make a change the servlet.
Dave Jochim
Ranch Hand

Joined: Jan 08, 2003
Posts: 31
There is a 'reloadable' attribute for your context in server.xml, or have you already set that?
rudolf hitler
Ranch Hand

Joined: Feb 07, 2003
Posts: 34
david,
thts already set is there any other way out.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

There is another way. Tomcat has a manager web interface where you can go in and reload a specific context at any given time.
The reloadable attribute will work, but unless I am mistaken, it is not an immediate reload because Tomcat polls in a round robin kind of way to see if anything has changed. I don't know what the time criteria is though.
As far as the whole reloadabe issue goes, I hope you know that you should only use the reloadable attribute in testing cases rather than production, because it is a huge overhead for Tomcat and will degrade performance quite a bit.
BTW - Depending on what tomcat version you may be running, the manager app is located as a link on the default index.jsp page that Tomcat ships with.


GenRocket - A Test Data Generation Platform
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

I've also found that Tomcat is sometimes *very* slow to recognize changes.

Check here: http://www.coderanch.com/t/81662/Tomcat/servlet-not-reloading-Tomcat
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cache problem with pages in tomcat
 
Similar Threads
Is Tomcat needs to be run everytime the Servlet Changes
Auto reloading of any edited class/servlet
how to compile servelts
Using Eclipse with Tomcat and Sysdeo Plugin
JSP Help!!!!!