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

adictosaltrabajo.com | 9 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

    Ejemplo de uso con JSF 2.0, Primefaces e Hibernate | Adictos al Trabajo

    adictosaltrabajo.com | 2 years ago
    java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/jdbc.properties]
  2. 0

    Ejemplo de uso con JSF 2.0, Primefaces e Hibernate | adictosaltrabajo

    adictosaltrabajo.com | 9 months ago
    java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/jdbc.properties]
  3. 0

    Problems with connection to sql server. Error: Context Initialization fail. - Forums | Liferay

    liferay.com | 2 years ago
    org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/jdbc.properties
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problems with connection to sql server. Error: Context Initialization fail. - Forums | Liferay

    liferay.com | 1 year ago
    org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/jdbc.properties
  6. 0

    Why can't my regular application context load my properties file?

    Stack Overflow | 6 years ago | Samo
    org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/localdevelopment_Company.properties]
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/jdbc.properties]

    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 Core
    PropertiesLoaderSupport.mergeProperties
    1. org.springframework.core.io.support.PropertiesLoaderSupport.loadProperties(PropertiesLoaderSupport.java:181)
    2. org.springframework.core.io.support.PropertiesLoaderSupport.mergeProperties(PropertiesLoaderSupport.java:161)
    2 frames
  4. Spring Beans
    PropertyResourceConfigurer.postProcessBeanFactory
    1. org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:69)
    1 frame
  5. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:663)
    2. org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:638)
    3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)
    3 frames
  6. Spring
    ContextLoaderServlet.init
    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.ContextLoaderServlet.init(ContextLoaderServlet.java:80)
    3 frames
  7. JavaServlet
    GenericServlet.init
    1. javax.servlet.GenericServlet.init(GenericServlet.java:160)
    1 frame
  8. Glassfish Core
    StandardContext$3.call
    1. org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1228)
    2. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1147)
    3. org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1043)
    4. org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4957)
    5. org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5284)
    6. org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5279)
    6 frames
  9. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    5. java.lang.Thread.run(Thread.java:722)
    5 frames