Need Help is there anyone find this Error Failed to load Metadata in WAR version 2.31.5

Should use this solution if anyone is encountering the error. This happens when you are running tomcat 8+. Then if you are using dhis2 tools, please make the edits on /var/lib/dhis2/instance/conf/server.xml