Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. StandardContext.listenerStart() has thrown a BeanInitializationException
    Tomcat Catalina
    1
    0
    0
  2. Unable to find properties file
    Spring Beans
    8
    0
    2

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
org.springframework.beans.factory.BeanInitializationException: [b] [color=red]Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [src/main/resources/jdbc.properties] cannot be opened because it does not exist[/color][/b]
    at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:78)
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:624)
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:599)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:398)
6 frames hidden

Solution

rahsan3 months ago

ApplicationContext could not find properties file provided in configuration XML, ensure that your properties file is in the classpath.

External results for this pattern (10)

  1. Unknown authorvia coderanch.com5 months ago
    [b] [color=red]Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [src/main/resources/jdbc.properties] cannot be opened because it does not exist[/color][/b]
    Show stack trace
  2. Unknown authorvia infoq.com5 months ago
    Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [database.properties] cannot be opened because it does not exist
    Show stack trace
  3. Unknown authorvia infoq.com5 months ago
    Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [database.properties] cannot be opened because it does not exist
    Show stack trace
  4. Unknown authorvia infoq.com5 months ago
    Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [database.properties] cannot be opened because it does not exist
    Show stack trace
  5. Unknown authorvia daniweb.com5 months ago
    Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [jdbc.properties] cannot be opened because it does not exist
    Show stack trace
  6. Unknown authorvia daniweb.com5 months ago
    Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [jdbc.properties] cannot be opened because it does not exist
    Show stack trace
  7. Unknown authorvia liferay.com5 months ago
    Could not load properties; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/E:/PoojaMahajan/CPFODR/Properties/ClientPortal/
    Show stack trace
  8. Unknown authorvia liferay.com5 months ago
    Could not load properties; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/E:/PoojaMahajan/CPFODR/Properties/ClientPortal/
    Show stack trace
  9. Unknown authorvia spring.io5 months ago
    Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [WEB-INF/jdbc.properties] cannot be opened because it does not exist
    Show stack trace
  10. Could not load properties; nested exception is java.io.FileNotFoundException: \opt\tej2\resources\config\db.properties (The system cannot find the path specified)
    Show stack trace