Solved
AntonioFarAnswer
12-Amethyst
I solved it by deleting the webapps folder in Tomcat 9.0. Restarting the server automatically regenerates the folder, which solves the problem. The problem was related to a corrupt file in the webapps folder, the post api services were already working correctly before restarting the server and restoring the files.

