org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load bean class: APIWebApplication; nested exception is java.io.FileNotFoundException: class path resource [ba.properties] cannot be opened because it does not exist

  1. 0

    When renaming project - FileNotFoundException: class path resource - cannot be opened because it does not exist

    Stack Overflow | 4 months ago | maythesource.com
    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load bean class: APIWebApplication; nested exception is java.io.FileNotFoundException: class path resource [ba.properties] cannot be opened because it does not exist
  2. 0

    Spring Boot profile-specific properties file not loading on OSX

    Stack Overflow | 1 year ago | samoussa.usa
    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.co.AppController]; nested exception is java.io.FileNotFoundException: class path resource [**application.properties**] cannot be opened because it does not exist
  3. 0

    how to create rtsp stream server using netty

    Stack Overflow | 1 year ago | chamara
    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load bean class: com.darkmi.server.config.ServerConfig; nested exception is java.io.FileNotFoundException: class path resource [application.properties] cannot be opened because it does not exist
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    @TestPropertySource - Is it possible to ignore non existing ressource?

    Stack Overflow | 7 months ago | jayeff
    java.lang.IllegalStateException: Failed to load ApplicationContext
  6. 0

    Issue with application.properties file in java

    Stack Overflow | 7 months ago | Vinod
    java.io.FileNotFoundException: class path resource [application.properties] cannot be opened because it does not exist

  1. serious2monkeys 3 times, last 4 months ago
  2. Kawada 2 times, last 8 months ago
2 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

    class path resource [ba.properties] cannot be opened because it does not exist

    at org.springframework.core.io.ClassPathResource.getInputStream()
  2. Spring Core
    ResourcePropertySource.<init>
    1. org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:171)
    2. org.springframework.core.io.support.EncodedResource.getInputStream(EncodedResource.java:150)
    3. org.springframework.core.io.support.PropertiesLoaderUtils.fillProperties(PropertiesLoaderUtils.java:98)
    4. org.springframework.core.io.support.PropertiesLoaderUtils.fillProperties(PropertiesLoaderUtils.java:72)
    5. org.springframework.core.io.support.PropertiesLoaderUtils.loadProperties(PropertiesLoaderUtils.java:58)
    6. org.springframework.core.io.support.ResourcePropertySource.<init>(ResourcePropertySource.java:64)
    7. org.springframework.core.io.support.ResourcePropertySource.<init>(ResourcePropertySource.java:73)
    8. org.springframework.core.io.support.ResourcePropertySource.<init>(ResourcePropertySource.java:93)
    8 frames
  3. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.annotation.ConfigurationClassParser.processPropertySource(ConfigurationClassParser.java:288)
    2. org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:182)
    3. org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:164)
    4. org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:130)
    5. org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:195)
    6. org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:164)
    7. org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:139)
    8. org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:284)
    9. org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:225)
    10. org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:635)
    11. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)
    11 frames
  4. Spring
    ContextLoaderListener.contextInitialized
    1. org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
    2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
    3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
    3 frames
  5. Glassfish Core
    HostConfig.manageApp
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
    2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528)
    3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    4. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    5. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    6. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    7. org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1779)
    7 frames
  6. 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:606)
    4 frames
  7. Embedded GlassFish Web
    BaseModelMBean.invoke
    1. org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
    1 frame
  8. Java RT
    JmxMBeanServer.invoke
    1. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
    2. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
    2 frames
  9. Embedded GlassFish Web
    MBeanFactory.createStandardContext
    1. org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:618)
    2. org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:565)
    2 frames
  10. 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:606)
    4 frames
  11. Embedded GlassFish Web
    BaseModelMBean.invoke
    1. org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
    1 frame
  12. Java RT
    Thread.run
    1. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
    2. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
    3. javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1487)
    4. javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:97)
    5. javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1328)
    6. javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1420)
    7. javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:848)
    8. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    9. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    10. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    11. java.lang.reflect.Method.invoke(Method.java:606)
    12. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
    13. sun.rmi.transport.Transport$2.run(Transport.java:202)
    14. sun.rmi.transport.Transport$2.run(Transport.java:199)
    15. java.security.AccessController.doPrivileged(Native Method)
    16. sun.rmi.transport.Transport.serviceCall(Transport.java:198)
    17. sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567)
    18. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)
    19. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.access$400(TCPTransport.java:619)
    20. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:684)
    21. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:681)
    22. java.security.AccessController.doPrivileged(Native Method)
    23. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681)
    24. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    25. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    26. java.lang.Thread.run(Thread.java:745)
    26 frames