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

geronimo-user | Venkat | 5 years 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

    Problem in creating Web Service in Eclipse using 2.1.8 Geronimo

    geronimo-user | 5 years ago | Venkat
    java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/beans.xml]
  2. 0

    pkrss.com blog

    pkstate.com | 2 years ago
    java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
  3. 0

    problem with missing resources

    Google Groups | 10 years ago | huherto
    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

    mvn gwt:gwt and src/main/webapp/WEB-INF folder visibility

    Google Groups | 9 years ago | Mark
    java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/quotation-servlet.xml]
  6. 0

    JSF Spring MVC application cannot load Application context.xml

    Stack Overflow | 4 years ago | user1050619
    org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]

  1. Andreas Häber 2 times, last 1 week ago
  2. treefolk 7 times, last 4 months ago
  3. thiago.santos 1 times, last 12 months ago
  4. Kawada 8 times, last 1 year 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/beans.xml]

    at org.springframework.web.context.support.ServletContextResource.getInputStream()
  2. Spring
    ServletContextResource.getInputStream
    1. org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:117)
    1 frame
  3. Spring Beans
    AbstractBeanDefinitionReader.loadBeanDefinitions
    1. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
    2. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
    3. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
    4. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
    5. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
    5 frames
  4. Spring
    XmlWebApplicationContext.loadBeanDefinitions
    1. org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
    2. org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:93)
    2 frames
  5. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
    2. org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
    3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
    3 frames
  6. Spring
    ContextLoaderListener.contextInitialized
    1. org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
    2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
    3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
    3 frames
  7. Glassfish Core
    StandardContext.start
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4201)
    2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4694)
    2 frames
  8. org.apache.geronimo
    GeronimoStandardContext.start
    1. org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(GeronimoStandardContext.java:63)
    2. org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:398)
    3. org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
    4. org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:251)
    4 frames
  9. Glassfish Core
    StandardHost.addChild
    1. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
    2. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
    3. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
    3 frames
  10. org.apache.geronimo
    TomcatWebAppContext.doStart
    1. org.apache.geronimo.tomcat.TomcatContainer.addContext(TomcatContainer.java:369)
    2. org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppContext.java:512)
    2 frames
  11. Geronimo :: Kernel
    SimpleConfigurationManager.startConfiguration
    1. org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:998)
    2. org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268)
    3. org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
    4. org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:541)
    5. org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
    6. org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
    7. org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
    8. org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
    9. org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
    10. org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
    11. org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:294)
    12. org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
    13. org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
    14. org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:555)
    15. org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
    16. org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
    17. org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:493)
    18. org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:188)
    19. org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:563)
    20. org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:544)
    20 frames
  12. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:601)
    4 frames
  13. Geronimo :: Kernel
    KernelGBean.invoke
    1. org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
    2. org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
    3. org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
    4. org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
    5. org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342)
    5 frames
  14. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:601)
    3 frames
  15. Geronimo :: Kernel
    BasicKernel.invoke
    1. org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
    2. org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
    3. org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
    4. org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
    4 frames
  16. Geronimo :: System
    MBeanGBeanBridge.invoke
    1. org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:172)
    1 frame
  17. Java RT
    Thread.run
    1. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
    2. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:791)
    3. javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1447)
    4. javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:89)
    5. javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1292)
    6. java.security.AccessController.doPrivileged(Native Method)
    7. javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1387)
    8. javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:812)
    9. sun.reflect.GeneratedMethodAccessor135.invoke(Unknown Source)
    10. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    11. java.lang.reflect.Method.invoke(Method.java:601)
    12. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
    13. sun.rmi.transport.Transport$1.run(Transport.java:177)
    14. sun.rmi.transport.Transport$1.run(Transport.java:174)
    15. java.security.AccessController.doPrivileged(Native Method)
    16. sun.rmi.transport.Transport.serviceCall(Transport.java:173)
    17. sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
    18. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
    19. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
    20. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    21. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    22. java.lang.Thread.run(Thread.java:722)
    22 frames