I have a peculiar problem with deploying a spring boot web application with Tomcat . I deploy a spring boot webapplication into tomcat 8.5.8 . The deployment steps follows as below via a pascal script in windows system:
1) Tomcat is stopped
2) A sleep time of 10 seconds is given
3) Then the deployed directory is removed
4) The war file is removed
5) Then the new war file is placed
Sometimes, in webapps directory , the old deployment folders seem to present partially [i.e. the step 3 fails]. Due to that the new war file is not getting exploded. The old deployment directories are also empty within.
I am setting antiresourcelocking to true in my war file . The i use deltree command of pascal to remove my directory