ResourceUtils.getFile() has thrown a FileNotFoundException

java.io.FileNotFoundException
at org.springframework.util.ResourceUtils.getFile
(Source)

Typical Exception Messages

  1. URL [zip:D:/ZilliantWorkspace/userbranches/virtusa-zpm5.3/main/engine/work/_shared/weblogic/config/ut/applications/.wlnotdelete/wlap58889/zpm_engine.jar!/spring] cannot be resolved to absolute file path because it does not reside in the file system: zip:D:/ZilliantWorkspace/userbranches/virtusa-zpm5.3/main/engine/work/_shared/weblogic/config/ut/applications/.wlnotdelete/wlap58889/zpm_engine.jar!/spring
  2. class path resource [ems-init.properties] cannot be resolved to absolute file path because it does not reside in the file system: vfs:/home/tanmoy/JBoss/jboss-as-distribution-6.0.0.Final/server/default/deploy/EMS.war/WEB-INF/classes/ems-init.properties
  3. URL [bundle://304.0:1/com/unveiled/politics/] cannot be resolved to absolute file path because it does not reside in the file system: bundle://304.0:1/com/unveiled/politics/
  4. class path resource [goldstandards/semeval-2012/train/STS.gs.MSRpar.txt] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/home/.m2/repository/dkpro/similarity/dkpro.similarity.uima.data-asl/2.1.0/dkpro.similarity.uima.data-asl-2.1.0.jar!/goldstandards/semeval-2012/train/STS.gs.MSRpar.txt
  5. URL [bundleresource://95.fwk1553324600/] > cannot be resolved to absolute file path because it does not reside in the > file system: bundleresource://95.fwk1553324600/
  6. URL [rsrc:tests/] cannot be resolved to absolute file path because it does not reside in the file system: rsrc:tests/
  7. URL [bundleresource://220.fwk530654357:125/] cannot be resolved to absolute file path because it does not reside in the file system: bundleresource://220.fwk530654357:125/
  8. URL [ftp://user:password@host//'MAINVIEW.DATASET'] cannot be resolved to absolute file path because it does not reside in the file system: ftp://user:password@host//'MAINVIEW.DATASET'
  9. class path resource [com/my/data] cannot be re solved to absolute file path because it does not reside in the file system: jar:file:/C:/jboss-4.0.1 sp1/server/default/tmp/deploy/tmp13967my.ear-contents/my-server.jar!/com/my/data
  10. class path resource [org/apache/struts2/dispatcher/error.ftl] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/C:/Users/hp/.m2/repository/org/apache/struts/struts2-core/2.3.12/struts2-core-2.3.12.jar!/org/apache/struts2/dispatcher/error.ftl

Specific cases

We have seen this error pattern in the following webpages (70)

  1. ravibelivia Stack Overflow1 month ago
    class path resource [`FnmaUtils-3.2-fieldMapping.csv`] cannot be resolved to absolute file path because it does not reside in the file system: `jar:file:/home/ravibeli/.m2/repository/com/xxx/mismo/util/fnma-parser32/2018.1.0.0-SNAPSHOT/fnma-parser32-2018.1.0.0-SNAPSHOT.jar!/FnmaUtils-3.2-fieldMapping.csv`
  2. class path resource [one/resource/path/resource] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/home/user/dev/project/build_output/splice_links/da39a3ee5e6b4b0d3255bfef95601890afd80709/resources/resource.jar!one/resource/path/resource
  3. URL [rsrc:one/demo/] cannot be resolved to absolute file path because it does not reside in the file system: rsrc:one/demo/
  4. URL [war:file:/C:/Users/user123/apache-tomcat-8.0.41/webapps/project.war*/WEB-INF/classes/package-path/] cannot be resolved to absolute file path because it does not reside in the file system: war:file:/C:/Users/user123/apache-tomcat-8.0.41/webapps/project.war*/WEB-INF/classes/package-path/
  5. syamsathyanvia GitHub5 months ago
    class path resource [templates/] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/Users/sathyans/.m2/repository/com/shopizer/sm-core/2.0.5-SNAPSHOT/sm-core-2.0.5-SNAPSHOT.jar!/templates/
  6. wangayvia GitHub5 months ago
    class path resource [templates/] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/Users/wangany/Documents/git/shopizer/sm-shop/target/sm-shop-2.0.5-SNAPSHOT.jar!/lib/sm-core-2.0.5-SNAPSHOT.jar!/templates/
  7. Unknown authorvia Google Groups6 months ago
    class path resource [templates/] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/E:/Tomcat-8.0.21/webapps/sm-shop205/WEB-INF/ lib/sm-core-2.0.5-SNAPSHOT.jar!/templates/
  8. zyro23via GitHub7 months ago
    Jar URL cannot be resolved to absolute file path because it does not reside in the file system: war:file:/app/app.war*/assets/application-5b03a8ffbc33a9d0a6338728ac19c718.css
  9. Jrogervia Stack Overflow8 months ago
    org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'userLoginListener' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'logService' while setting bean property 'logService'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'logService' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/classes/###light-service.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: ERR creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/###light-data-source.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [bus/valueobjects/] cannot be resolved to absolute file path because it does not reside in the file system: vfs:#/EAP-7.0.0/standalone/deployments/###.war/WEB-INF/classes/bus/valueobjects/
  10. Unknown authorvia Google Groups9 months ago
    class path resource [templates/] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/C:/Users/<username>/.m2/repository/com/shopizer/sm-core/2.0.5-SNAPSHOT/sm-core-2.0.5-SNAPSHOT.jar!/templates/