I have a problem that, after a lot of reading and research, seems like tomcat is running another instance of itself and thus serving an old version of my updated app (or som
To answer the question in the title, let your code basically do the following:
System.out.println(getServletContext().getRealPath("/"));
To solve the problem described in the question, shutdown Tomcat and delete everything in its /work
directory, delete the expanded WAR in /webapps
and remove the /Catalina
subdirectory of /conf
directory (if any) and then restart.