Tomcat does not update files

Asked

Viewed 634 times

2

The problem is this, every time I change a file (index for example), restart the tomcat(v7) and F5 tightening in the browser, it stays the same, does not update anything, ie end up staying in the previous version....

Does anyone know what it can be?

  • Tomcat must be caching the files. Try doing this. If it works I add an answer here.

  • It can be cached, if you are using eclipse, right click on the server and go to clear, restart the server and try again.

  • @rray I had already done it... but it didn’t work out....

  • It wasn’t @utluiz either

1 answer

1

Naldson this problem can happen for several reasons, I’ll give you some options to see if it solves your problem, come on.

1° see if your project is with Build marked as automatic, the eclipse is in Project > Buildautomatically. If you’re not dialing, it makes it a little easier.

2° When you modify something in your view, there in the Servers tab is showing Synchronized ? if you are showing republish right click and select Publish option, go to the browser and click F5, see if it worked.

3° Try pressing Ctrl + F5 to refresh, see if it worked.

If not certain, see if the terminal displays any error log.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.