I have the same error but when I provide an absolute linux path to the file, it throws an error like this. "java.io.FileNotFoundException: ServletContext resource [/appl/suze/cert.jks] cannot be resolved to URL because it does not exist". If I place the same file under /src/main/resource packaged with jar, its working. My use-case is to make it work with external path. Any help?