org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: property_placeholder\database.properties (The system cannot find the path specified)

Stack Overflow | Andrew K. | 6 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

    Using property placeholder location

    Stack Overflow | 6 months ago | Andrew K.
    org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: property_placeholder\database.properties (The system cannot find the path specified)
  2. 0

    CentOS, Tomcat, can't deploy war because permission is denied when reading (public, 777) properties from home directory

    Server Fault | 4 months ago | zkristic
    org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: /home/user/my/property/file.properties (Permission denied)
  3. 0

    How to run two services with two different contexts on one tomcat8

    Stack Overflow | 2 years ago | Sok Pomaranczowy
    org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: /conf.properties (No such file or directory)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Can't load properties when starting use tomcat7 + eclipse (4.2)

    GitHub | 4 years ago | henryyan
    org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: /Users/henryyan/tmp/spring-mvc-showcase/src/main/webapp/WEB-INF/classes/application.properties (No such file or directory)
  6. 0

    OpenNMS - discuss - Re: Error In Deployment in Tomcat

    nabble.com | 1 year ago
    org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [daoContext], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoContext' defined in URL [jar:file:/C:/apache-tomcat-6.0.29/webapps/org.opennms.features.webapp-full-1.8.1/WEB-INF/lib/opennms-dao-1.8.1.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: ${opennms.home}\etc\model-importer.properties (The system cannot find the path specified)
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

    property_placeholder\database.properties (The system cannot find the path specified)

    at java.io.FileInputStream.open0()
  2. Java RT
    FileURLConnection.getInputStream
    1. java.io.FileInputStream.open0(Native Method)
    2. java.io.FileInputStream.open(FileInputStream.java:195)
    3. java.io.FileInputStream.<init>(FileInputStream.java:138)
    4. java.io.FileInputStream.<init>(FileInputStream.java:93)
    5. sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
    6. sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
    6 frames
  3. Spring Core
    PropertiesLoaderSupport.mergeProperties
    1. org.springframework.core.io.UrlResource.getInputStream(UrlResource.java:168)
    2. org.springframework.core.io.support.EncodedResource.getInputStream(EncodedResource.java:143)
    3. org.springframework.core.io.support.PropertiesLoaderUtils.fillProperties(PropertiesLoaderUtils.java:98)
    4. org.springframework.core.io.support.PropertiesLoaderSupport.loadProperties(PropertiesLoaderSupport.java:175)
    5. org.springframework.core.io.support.PropertiesLoaderSupport.mergeProperties(PropertiesLoaderSupport.java:156)
    5 frames
  4. Spring Context
    ClassPathXmlApplicationContext.<init>
    1. org.springframework.context.support.PropertySourcesPlaceholderConfigurer.postProcessBeanFactory(PropertySourcesPlaceholderConfigurer.java:142)
    2. org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:265)
    3. org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:162)
    4. org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:606)
    5. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:462)
    6. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    7. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
    7 frames
  5. property_placeholder
    MainSpring.main
    1. property_placeholder.MainSpring.main(MainSpring.java:9)
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  7. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
    1 frame