Tomcat continues to show old files

2

I update the files (html, javascript), but when I access the index.html , the files are not as they should, there it shows a totally different page, older, since the file on that page no longer exists, I already tried to clean browser cache, reboot server, use Tomcat from Xampp, delete work folder and none worked, still showing the same old page.
What should I do to the server to show the new files?

    
asked by anonymous 12.07.2014 / 21:17

1 answer

2

Stop all instances of Tomcat on your computer and uninstall Tomcat (if installed). Then delete all the directories that belonged to Tomcat (Tomcat directories and applications) and reinstall Tomcat.

I advise you to download eclipse and install Tomcat from there, since you can manage your Tomcat installation by eclipse itself.

UPDATE: After a little research, my other solution is:

  • Stop Tomcat;
  • Delete the folder of your project that is in the root of the container (usually it is "webapps / YOURPROJECT");
  • Put the new .war of your project at the root of the container;
  • Start Tomcat again

Why it should work:

  

Java application servers have a technology called "publish". When you invoke "publish", the server deletes everything that has been deleted from your workbook and includes new or modified files for the container. Unfortunately I've never used tomcat without IDE, so I do not know how to publish on it without Eclipse.

    
12.07.2014 / 23:44