java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/dispatcher-servlet.xml]

  1. 0

    intellij idea java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/dispatcher-servlet.xml]

    Stack Overflow | 4 months ago | Santhosh Thota
    java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/dispatcher-servlet.xml]
  2. 0

    spring boot FileNotFoundException: Could not open ServletContext resource [/WEB-INF/main-servlet.xml]

    Stack Overflow | 2 years ago | mangusbrother
    java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/main-servlet.xml]
  3. 0

    SpringMVC Maven Hibernate Project

    Stack Overflow | 5 years ago | devdar
    java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/spring-servlet.xml]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Java with Spring

    Stack Overflow | 1 year ago | SOUVIK MAJI
    java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/spring-servlet.xml]
  6. 0

    spring - SpringMVC Maven Hibernate Project - Stack Overflow

    xluat.com | 1 year ago
    java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/spring-servlet.xml]

  1. thiago.santos 1 times, last 7 months ago
  2. Kawada 8 times, last 8 months ago
10 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

    Could not open ServletContext resource [/WEB-INF/dispatcher-servlet.xml]

    at org.springframework.web.context.support.ServletContextResource.getInputStream()
  2. Spring
    ServletContextResource.getInputStream
    1. org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:141)
    1 frame
  3. Spring Beans
    AbstractBeanDefinitionReader.loadBeanDefinitions
    1. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:330)
    2. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
    3. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
    4. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
    5. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
    5 frames
  4. Spring
    XmlWebApplicationContext.loadBeanDefinitions
    1. org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
    2. org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
    2 frames
  5. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
    2. org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:612)
    3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:513)
    3 frames
  6. Spring MVC
    HttpServletBean.init
    1. org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:668)
    2. org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:634)
    3. org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:682)
    4. org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:553)
    5. org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:494)
    6. org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
    6 frames
  7. JavaServlet
    GenericServlet.init
    1. javax.servlet.GenericServlet.init(GenericServlet.java:158)
    1 frame
  8. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
    2. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
    3. org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:864)
    4. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:134)
    5. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    6. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
    7. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    8. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    9. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:957)
    10. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    11. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
    11 frames
  9. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
    3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
    3 frames
  10. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    2 frames
  11. Tomcat Util
    TaskThread$WrappingRunnable.run
    1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    1 frame
  12. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame