Tomcat continues to show old files

Asked

Viewed 949 times

2

I update the files (html, javascript), but when I access the index.html, the files are not as they should, there shows a totally different page, older, and the file of this page does not exist anymore, I have tried to clear the browser cache, restart the server, use Tomcat of Xampp, delete the work folder and none worked, keeps showing the same old page.
What should I do for the server to show the new files?

1 answer

2


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

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

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

  • Stop the Tomcat;
  • Delete the folder of your project that is at the root of the container (usually "webapps/SEU_PROJETO");
  • Put the new . War of your project at the root of the container;
  • To start Tomcat again

Why should it 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 never used Tomcat without IDE, so I don’t know how to do "Publish" on it without Eclipse.

  • Including those of Xampp?

  • Including those of XAMPP. Just one question, what is your operating system?

  • MS Windows 8.1.

  • I updated the answer with some new information, I hope it will be useful!

  • Argh, the only thing that worked was reinstalling Tomcat, but it’s impossible to do that every five minutes. What kills me is I don’t know why this is happening.

  • Yeah, I’ve never seen this happen before, even when I used Windows for web development. Because you don’t use Ides?

  • It’s not nice to depend on Ides, it’s almost like an addiction, when you don’t have them available the staff gets lost.

Show 2 more comments

Browser other questions tagged

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