Ticket #30944
Question
Newly compiled applications in Development are not adding to web.xml. Restarting Tomcat does not fix the issue. Getting this error in the Tomcat logs: "ERROR UpdateWebXml:729 - Failed to save web.xml file at C:\Program Files\mrc\development\m-power\mrcjava\WEB-INF\web.xml java.io.FileNotFoundException: C:\Program Files\mrc\development\m-power\mrcjava\WEB-INF\web.xml (The process cannot access the file because it is being used by another process)"
Answer
Tried to troubleshoot potential permissions issue and stopping all Tomcat services to see what was causing the error. However, the web.xml would still not update even after these troubleshooting steps. What resolved the issue was copying the web.xml from a production instance back into development and then running the update-webxml.bat.
Asked on December 22, 2020