In case of Servlet, the container(Tomcat or such) is considered as root directory for the your execution. And when you give file path as you have shown, it is looking for file in the tomcat folder, where it is not present.
To solve this issue, you need to refer to the classpath resource resolver. You can use like:
This should allow you to refer to the file in your project classpath.