Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    via Stack Overflow by Human Being

    Use this method to gain access to the ApplicationContext:

    @Autowired
    private ApplicationContext applicationContext;
    

Solutions on the web

via Stack Overflow by aoyuan zhu
, 1 year ago
Failed to parse configuration class [com.pdd.service.poppy.api.PoppyApiApplicationContext]; nested exception is java.io.FileNotFoundException: class path resource [poppy-api-env.properties] cannot be opened because it does not exist
via GitHub by oleg-savko
, 2 years ago
Failed to parse configuration class [demo.UiApplication]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/cloud/security/oauth2/sso/OAuth2SsoConfigurerAdapter.class] cannot be opened because it does not exist
via Stack Overflow by PreetiRai
, 3 months ago
Failed to parse configuration class [com.orileo.address.addressservice.AddressServiceApplication]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/security/oauth2/config/annotation/web/configuration/ResourceServerConfigurerAdapter.class] cannot be opened because it does not exist
via Stack Overflow by brianmearns
, 1 year ago
Failed to load bean class: com.example.stc.Config; nested exception is java.io.FileNotFoundException: class path resource [stc.properties] cannot be opened because it does not exist
via GitHub by kapilkumar04
, 5 months ago
Failed to parse configuration class [com.netflix.spinnaker.halyard.Main]; nested exception is java.io.FileNotFoundException: /opt/spinnaker/hal.properties (No such file or directory)
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.pdd.service.poppy.api.PoppyApiApplicationContext]; nested exception is java.io.FileNotFoundException: class path resource [poppy-api-env.properties] cannot be opened because it does not exist at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:181)[poppy.jar:?] at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:321)[poppy.jar:?] at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:243)[poppy.jar:?] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:273)[poppy.jar:?] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:98)[poppy.jar:?] at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:678)[poppy.jar:?] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:520)[poppy.jar:?] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)[poppy.jar:?] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:764)[poppy.jar:?] at org.springframework.boot.SpringApplication.doRun(SpringApplication.java:357)[poppy.jar:?] at org.springframework.boot.SpringApplication.run(SpringApplication.java:305)[poppy.jar:?] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1124)[poppy.jar:?] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1113)[poppy.jar:?] at com.pdd.service.poppy.api.PoppyApiApplicationContext.main(PoppyApiApplicationContext.java:38)[poppy.jar:?]Caused by: java.io.FileNotFoundException: class path resource [poppy-api-env.properties] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)[poppy.jar:?] at org.springframework.core.io.support.EncodedResource.getInputStream(EncodedResource.java:153)[poppy.jar:?] at org.springframework.core.io.support.PropertiesLoaderUtils.fillProperties(PropertiesLoaderUtils.java:98)[poppy.jar:?] at org.springframework.core.io.support.PropertiesLoaderUtils.fillProperties(PropertiesLoaderUtils.java:72)[poppy.jar:?] at org.springframework.core.io.support.PropertiesLoaderUtils.loadProperties(PropertiesLoaderUtils.java:58)[poppy.jar:?] at org.springframework.core.io.support.ResourcePropertySource.<init>(ResourcePropertySource.java:84)[poppy.jar:?] at org.springframework.context.annotation.ConfigurationClassParser.processPropertySource(ConfigurationClassParser.java:360)[poppy.jar:?] at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:254)[poppy.jar:?] at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:231)[poppy.jar:?] at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:198)[poppy.jar:?] at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:167)[poppy.jar:?] ... 13 more