In the following snippet:
ServletContext context = request.getServletContext(); String path = context.getRealPath(\"/\");
What does /
/
There is also a change between Java 7 and Java 8. Admittedly it involves the a deprecated call, but I had to add a "/" to get our program working! Here is the link discussing it Why does servletContext.getRealPath returns null on tomcat 8?