I had this problem before. Some guy helped me find the root of this problem, so here is the solution I got:
In the Java EE 7 DOC, you can see that the “Interface part” was added to it with the getSubmittedFileName method from servlet 3.1, and from the tomcat website you can see that Tomcat 7 implemented Servlet 3.0, so I had to switch from Tomcat 7 - Tomcat 8.0.x.
Literature: