java.io.FileNotFoundException: class path resource [src/main/webapp/WEB-INF/sitemesh.xml] cannot be resolved to URL because it does not exist

  1. 0

    Grails 3 db migrations

    Stack Overflow | 4 months ago | Evgeny Smirnov
    java.io.FileNotFoundException: class path resource [src/main/webapp/WEB-INF/sitemesh.xml] cannot be resolved to URL because it does not exist
  2. 0

    Struts2.3.12 junit4 testcase request & session are null

    Stack Overflow | 3 years ago
    java.io.FileNotFoundException: class path resource [org/apache/struts2/dispatcher/error_en_US.ftl] cannot be resolved to URL because it does not exist
  3. 0

    Cannot resolve templates on Eureka Server startup

    GitHub | 2 years ago | wgorder
    java.io.FileNotFoundException: class path resource [templates/] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/Users/billy/Dev/Git-Repos/spring-cloud-examples/service-discovery/build/libs/service-discovery.jar!/templates/
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cannot resolve template loader path Freemarker

    Stack Overflow | 4 years ago | Rudy
    java.io.FileNotFoundException: class path resource [META-INF/templates] cannot be resolved to absolute file path because it does not reside in the file system: zip:C:/Oracle/Middleware/user_projects/domains/gppuser/servers/GPPFilesBCSIS/tmp/_WL_user/GPPFilesBCSIS/phxni8/war/WEB-INF/lib/_wl_cls_gen.jar!/META-INF/templates
  6. 0

    MockMvc: forwardedUrl is null

    Stack Overflow | 3 years ago | Rade Milovic
    java.io.FileNotFoundException: class path resource [WEB-INF/velocity/] cannot be resolved to URL because it does not exist

  1. Tahir 16 times, last 2 months ago
  2. Tahir 523 times, last 1 month ago
4 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

    class path resource [src/main/webapp/WEB-INF/sitemesh.xml] cannot be resolved to URL because it does not exist

    at org.springframework.core.io.ClassPathResource.getURL()
  2. Spring Core
    AbstractFileResolvingResource.getFile
    1. org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:187)[spring-core-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    2. org.springframework.core.io.AbstractFileResolvingResource.getFile(AbstractFileResolvingResource.java:48)[spring-core-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    2 frames
  3. Spring TestContext
    MockServletContext.getRealPath
    1. org.springframework.mock.web.MockServletContext.getRealPath(MockServletContext.java:458)[spring-test-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    1 frame
  4. org.grails.web
    SitemeshLayoutViewResolver.onApplicationEvent
    1. org.grails.web.sitemesh.Grails5535Factory.<init>(Grails5535Factory.java:78)[grails-web-sitemesh-3.2.0.M2.jar:3.2.0.M2]
    2. org.grails.web.servlet.view.SitemeshLayoutViewResolver.loadSitemeshConfig(SitemeshLayoutViewResolver.java:105)[grails-web-gsp-3.2.0.M2.jar:3.2.0.M2]
    3. org.grails.web.servlet.view.SitemeshLayoutViewResolver.init(SitemeshLayoutViewResolver.java:67)[grails-web-gsp-3.2.0.M2.jar:3.2.0.M2]
    4. org.grails.web.servlet.view.SitemeshLayoutViewResolver.onApplicationEvent(SitemeshLayoutViewResolver.java:146)[grails-web-gsp-3.2.0.M2.jar:3.2.0.M2]
    5. org.grails.web.servlet.view.SitemeshLayoutViewResolver.onApplicationEvent(SitemeshLayoutViewResolver.java:42)[grails-web-gsp-3.2.0.M2.jar:3.2.0.M2]
    5 frames
  5. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)[spring-context-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    2. org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)[spring-context-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    3. org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:382)[spring-context-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    4. org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:336)[spring-context-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    5. org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:877)[spring-context-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    6. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544)[spring-context-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    6 frames
  6. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)[spring-boot-1.4.0.RC1.jar:1.4.0.RC1]
    2. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369)[spring-boot-1.4.0.RC1.jar:1.4.0.RC1]
    3. org.springframework.boot.SpringApplication.run(SpringApplication.java:313)[spring-boot-1.4.0.RC1.jar:1.4.0.RC1]
    3 frames
  7. Grails
    GrailsApp.run
    1. grails.boot.GrailsApp.run(GrailsApp.groovy:55)[grails-core-3.2.0.M2.jar:3.2.0.M2]
    1 frame
  8. grails.ui.command
    GrailsApplicationContextCommandRunner.main
    1. grails.ui.command.GrailsApplicationContextCommandRunner.run(GrailsApplicationContextCommandRunner.groovy:55)[grails-console-3.2.0.M2.jar:3.2.0.M2]
    2. grails.ui.command.GrailsApplicationContextCommandRunner.main(GrailsApplicationContextCommandRunner.groovy:102)[grails-console-3.2.0.M2.jar:3.2.0.M2]
    2 frames