java.io.FileNotFoundException

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

Solutions on the web8728

  • via GitHub by selement
    , 1 month ago
    class path resource [src/main/webapp/WEB-INF/sitemesh.xml] cannot be resolved to URL because it does not exist
  • via Stack Overflow by Evgeny Smirnov
    , 10 months ago
    class path resource [src/main/webapp/WEB-INF/sitemesh.xml] cannot be resolved to URL because it does not exist
  • via apache.org by Unknown author, 1 year ago
    class path resource [WEB-INF/content/] cannot be resolved to URL because it does not exist
  • Stack trace

    • 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(ClassPathResource.java:187)[spring-core-4.3.1.RELEASE.jar:4.3.1.RELEASE] at org.springframework.core.io.AbstractFileResolvingResource.getFile(AbstractFileResolvingResource.java:48)[spring-core-4.3.1.RELEASE.jar:4.3.1.RELEASE] at org.springframework.mock.web.MockServletContext.getRealPath(MockServletContext.java:458)[spring-test-4.3.1.RELEASE.jar:4.3.1.RELEASE] at org.grails.web.sitemesh.Grails5535Factory.<init>(Grails5535Factory.java:78)[grails-web-sitemesh-3.2.0.M2.jar:3.2.0.M2] at org.grails.web.servlet.view.SitemeshLayoutViewResolver.loadSitemeshConfig(SitemeshLayoutViewResolver.java:105)[grails-web-gsp-3.2.0.M2.jar:3.2.0.M2] at org.grails.web.servlet.view.SitemeshLayoutViewResolver.init(SitemeshLayoutViewResolver.java:67)[grails-web-gsp-3.2.0.M2.jar:3.2.0.M2] at org.grails.web.servlet.view.SitemeshLayoutViewResolver.onApplicationEvent(SitemeshLayoutViewResolver.java:146)[grails-web-gsp-3.2.0.M2.jar:3.2.0.M2] at org.grails.web.servlet.view.SitemeshLayoutViewResolver.onApplicationEvent(SitemeshLayoutViewResolver.java:42)[grails-web-gsp-3.2.0.M2.jar:3.2.0.M2] at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)[spring-context-4.3.1.RELEASE.jar:4.3.1.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)[spring-context-4.3.1.RELEASE.jar:4.3.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:382)[spring-context-4.3.1.RELEASE.jar:4.3.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:336)[spring-context-4.3.1.RELEASE.jar:4.3.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:877)[spring-context-4.3.1.RELEASE.jar:4.3.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544)[spring-context-4.3.1.RELEASE.jar:4.3.1.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)[spring-boot-1.4.0.RC1.jar:1.4.0.RC1] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369)[spring-boot-1.4.0.RC1.jar:1.4.0.RC1] at org.springframework.boot.SpringApplication.run(SpringApplication.java:313)[spring-boot-1.4.0.RC1.jar:1.4.0.RC1] at grails.boot.GrailsApp.run(GrailsApp.groovy:55)[grails-core-3.2.0.M2.jar:3.2.0.M2] at grails.ui.command.GrailsApplicationContextCommandRunner.run(GrailsApplicationContextCommandRunner.groovy:55)[grails-console-3.2.0.M2.jar:3.2.0.M2] at grails.ui.command.GrailsApplicationContextCommandRunner.main(GrailsApplicationContextCommandRunner.groovy:102)[grails-console-3.2.0.M2.jar:3.2.0.M2]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    4 times, 2 weeks ago
    7 times, 1 month ago
    Once, 5 months ago
    23 more bugmates