11
From the Servlet API there is no way to access the war file name. The war file name is different from the context root. And , even the ServletContext.getRealPath() is the extract location of the war file, which can be different.