title: File not found when application deployed on tomcat
body: <p>This works fine in a unit test. I get the file and can print the content. When I deploy this on a server I get a FilenotFoundExcpetion. What can be the reason for this? I am deploying on a tomcat.  </p>
  
  <pre><code>String path = "WebContent/images/image.jpeg";
  
  FileSystemResource resource = new FileSystemResource(path);
  
  File image = resource.getFile();
  </code></pre>