File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes After deploying page doesn't change Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "After deploying page doesn Watch "After deploying page doesn New topic

After deploying page doesn't change

Jonas Dimsa

Joined: Apr 02, 2007
Posts: 9
Hi. im using eclipse,java springframework and hibernate. and i noticed , that after deploying some changes doesnt take effect. i checked deployed jsp page in tomcat. it shows changes but when i want it to check with browser it shows some earlie text( wich shouldn't be shown). i restarted tomcat but it still works the same. maybe its smth with cache its strange because like i said in deploy directory(in tomcat) it shows correct page but with browser not correct.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
I have also faced this issue before with tomcat.The changes in jsp doesnot reflect after bouncing the server.I delete the translated jsp and the compiled file , then it started working.
You can find those in tomcat/work/localhost/catalina/<context name>

Rahul Bhattacharjee
LinkedIn - Blog
Jonas Dimsa

Joined: Apr 02, 2007
Posts: 9
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

One possible cause for this is a timezone difference between your machine and the server's. If the files you put up to the server have a older date than the ones that they're replacing Tomcat will not recognize them as new.

If your server is is running on Linux or Unix the touch command can update the modified date of your files.
If you cd into your JSPs directory and type:
all of your JSPs will have their modified date updated.

It could also be that your browser is caching the page.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: After deploying page doesn't change
It's not a secret anymore!