wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Effect of time change on web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Effect of time change on web application" Watch "Effect of time change on web application" New topic
Author

Effect of time change on web application

Ghufran Ul Haq
Greenhorn

Joined: Apr 10, 2007
Posts: 29
Hi

I have changed datetime of my RHEL server. I have also restarted my tomcat after time changing. But the new time is not being reflected in the web application's log4j log file. It seems that tomcat is not picking up the current time of the computer.

Please help

Thanks
Ghufran
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

The container uses the last-modified-date to determine which JSPs need to be recompiled. A date change on the machine can muck this up.

On a Unix/Linux box, you can run the touch command with the wild card in each directory that contains JSPs to update the date for all the JSP files.



Another approach is to delete the tomcat/work directory (or the sub directory for your application).
The work directory is where Tomcat writes the generated servlet code and the compiled classes. If your app doesn't store anything else important in that directory (and only you would know this) then you can simply delete its contents.

Either approach will cause Tomcat to treat each JSP as new and recompile it when it's first hit.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Effect of time change on web application
 
Similar Threads
unable to run webapplications in tomcat
Problem to start Tomcat Server
Need help urgently: problems compiling servlets
web sites to deploy the web services
auto redeploy web service after tomcat restart