ClassPathResource.getFile() has thrown a FileNotFoundException

java.io.FileNotFoundException
at org.springframework.core.io.ClassPathResource.getURL
(Source)
at org.springframework.core.io.ClassPathResource.getFile
(Source)

Typical Exception Messages

  1. class path resource [C:/DOCUME~1/Joseph/LOCALS~1/Temp//spring-integration-samples/output] cannot be resolved to URL because it does not exist
  2. class path resource [WEB-INF/grails-app/i18n/messages.xml] cannot be resolved to URL because it does not exist
  3. class path resource [WEB-INF/content/] cannot be resolved to URL because it does not exist
  4. class path resource [WEB-INF/content/] cannot be resolved to URL because it does not exist

Origin

Similar

Specific cases

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

  1. Unknown authorvia nabble.com1 year ago
    class path resource [WEB-INF/content/] cannot be resolved to URL because it does not exist
  2. Joe Wittvia Spring JIRA1 year ago
    Error creating bean with name 'filesOut.adapter': Cannot resolve reference to bean 'org.springframework.integration.file.config.FileWritingMessageHandlerFactoryBean#0' while setting bean property 'handler'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.integration.file.config.FileWritingMessageHandlerFactoryBean#0': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Unexpected IOException when looking for destination directory: class path resource [C:/DOCUME~1/Joseph/LOCALS~1/Temp//spring-integration-samples/output]
  3. graemerochervia GitHub2 years ago
    class path resource [WEB-INF/grails-app/i18n/messages.xml] cannot be resolved to URL because it does not exist
  4. Maurice Nicholsonvia Grails JIRA2 years ago
    class path resource [WEB-INF/grails-app/i18n/messages.xml] cannot be resolved to URL because it does not exist
  5. Joe Wittvia Spring JIRA2 years ago
    Error creating bean with name 'filesOut.adapter': Cannot resolve reference to bean 'org.springframework.integration.file.config.FileWritingMessageHandlerFactoryBean#0' while setting bean property 'handler'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.integration.file.config.FileWritingMessageHandlerFactoryBean#0': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Unexpected IOException when looking for destination directory: class path resource [C:/DOCUME~1/Joseph/LOCALS~1/Temp//spring-integration-samples/output]
  6. Unknown authorvia apache.org2 years ago
    class path resource [WEB-INF/content/] cannot be resolved to URL because it does not exist