Tomcat 7: expanded copy of war file

I am trying to deploy a war file on tomcat. Every time I make a modification, I create a war and deploy it to tomcat (using the tomcat manager) to check my changes. Suddenly, every time I deploy a modified war, Tomcat seems to post an old version of the file (which I suspect is a cached copy). I tried reinstalling tomcat, restarting the computer, etc. I also extracted files from the war to check if changes exist and what they do. Any help on how I could debug or work on this problem would be greatly appreciated.

+4
source share
2 answers

You tried to clear the following folders / files:

$ TOMCAT_HOME \ WebApps \ yourapplication

$ TOMCAT_HOME \ webapps \ yourapplication.war

$ TOMCAT_HOME \ work \ Catalina \ localhost \ yourapplication

$ TOMCAT_HOME \ TEMP

0
source

By default, tomcat uses a subdirectory called work to store a cached copy of the bombed war. If you have problems with old files, they are probably where they are. You can also check your tomcat log file for messages that are generated when you deploy a new version of the war regarding files that cannot be deleted during the deployment phase.

0
source

Source: https://habr.com/ru/post/1502619/


All Articles