org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [config-#{environment['config.environment'] ? environment['config.environment'] : 'config'}.properties] cannot be opened because it does not exist

Spring JIRA | sibidiba | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Using Properties in spring config

    Stack Overflow | 6 years ago | echox
    org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [properties/database.${my.env}.properties] cannot be opened because it does not exist
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    how can i resolve this problm of notfound class exception

    Stack Overflow | 3 years ago | Housseminfo
    org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [classpath*:META-INF/db.properties] cannot be opened because it does not exist
  4. 0

    How to resolve this error? i am getting repeatedly this error in my project when i start apache tomcat server 6

    Stack Overflow | 2 years ago | Venkata Seshadri
    org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/${GyreFxConfigFile}]

    1 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. org.springframework.beans.factory.BeanInitializationException

      Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [config-#{environment['config.environment'] ? environment['config.environment'] : 'config'}.properties] cannot be opened because it does not exist

      at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory()
    2. Spring Beans
      PropertyResourceConfigurer.postProcessBeanFactory
      1. org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:87)
      1 frame