java.io.FileNotFoundException: class path resource [static/templates/users/userform.html] cannot be opened because it does not exist

Stack Overflow | SandyR | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    mustache and Internalviewresolvers - Spring MVC

    Stack Overflow | 7 months ago | SandyR
    java.io.FileNotFoundException: class path resource [static/templates/users/userform.html] cannot be opened because it does not exist
  2. 0

    Combining Starter POMs in Spring Boot

    Stack Overflow | 2 years ago | Jeff Smith
    java.io.FileNotFoundException: class path resource [org/springframework/web/servlet/config/annotation/WebMvcConfigurerAdapter.class] cannot be opened because it does not exist
  3. 0

    Could not find spring-postinitialize.xsd when container starts

    GitHub | 2 years ago | ricoyu
    java.io.FileNotFoundException: class path resource [fr/zebasto/spring/post/initialize/config/spring-postinitialize.xsd] cannot be opened because it does not exist
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Upgrading to 1.1.2 breaks Classloading on Windows

    GitHub | 3 years ago | arafalov
    java.io.FileNotFoundException: class path resource [banner.txt] cannot be opened because it does not exist
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 [static/templates/users/userform.html] cannot be opened because it does not exist

    at org.springframework.core.io.ClassPathResource.getInputStream()
  2. Spring Core
    ClassPathResource.getInputStream
    1. org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
    1 frame
  3. org.springframework.web
    ScriptTemplateView.renderMergedOutputModel
    1. org.springframework.web.servlet.view.script.ScriptTemplateView.getTemplate(ScriptTemplateView.java:369)
    2. org.springframework.web.servlet.view.script.ScriptTemplateView.renderMergedOutputModel(ScriptTemplateView.java:349)
    2 frames
  4. Spring MVC
    FrameworkServlet.doGet
    1. org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303)
    2. org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1243)
    3. org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1027)
    4. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:971)
    5. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
    6. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:969)
    7. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:860)
    7 frames
  5. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
    1 frame
  6. Spring MVC
    FrameworkServlet.service
    1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:845)
    1 frame
  7. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    1 frame
  8. Jetty
    QueuedThreadPool$3.run
    1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
    2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
    3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
    4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
    5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
    6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
    7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
    8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
    10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    11. org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
    12. org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
    13. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    14. org.eclipse.jetty.server.Server.handle(Server.java:499)
    15. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
    16. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
    17. org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
    18. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
    19. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
    19 frames
  9. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame