org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [pl.mypackage.Main]; nested exception is java.lang.IllegalArgumentException: No auto configuration classes found in META-INF/spring.factories. If you are using a custom packaging, make sure that file is correct.

Stack Overflow | Defozo | 4 months ago
  1. 0

    SpringBoot - making jar files - No auto configuration classes found in META-INF/spring.factories

    Stack Overflow | 4 months ago | Defozo
    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [pl.mypackage.Main]; nested exception is java.lang.IllegalArgumentException: No auto configuration classes found in META-INF/spring.factories. If you are using a custom packaging, make sure that file is correct.
  2. 0

    Failed to process import candidates for configuration class

    Stack Overflow | 3 months ago | bachr
    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [el.dorado.App]; nested exception is java.lang.IllegalArgumentException: No auto configuration classes found in META-INF/spring.factories. If you are using a custom packaging, make sure that file is correct.
  3. 0

    GitHub comment 134#251149340

    GitHub | 2 months ago | CraigShields
    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [ninja.eivind.hotsreplayuploader.Client]; nested exception is java.lang.IllegalArgumentException: No auto configuration classes found in META-INF/spring.factories. If you are using a custom packaging, make sure that file is correct.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    SEC-3206: Having <security:headers defaults-disabled="true" /> only gives unreadible exception

    GitHub | 10 months ago | spring-issuemaster
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChains': Cannot resolve reference to bean 'org.springframework.security.web.DefaultSecurityFilterChain#0' while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.DefaultSecurityFilterChain#0': Cannot create inner bean '(inner bean)#14d36be' of type [org.springframework.security.web.header.HeaderWriterFilter] while setting constructor argument with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#14d36be': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.web.header.HeaderWriterFilter]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: headerWriters cannot be null or empty
  6. 0

    issuehub.io

    issuehub.io | 8 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChains': Cannot resolve reference to bean 'org.springframework.security.web.DefaultSecurityFilterChain#0' while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.DefaultSecurityFilterChain#0': Cannot create inner bean '(inner bean)#14d36be' of type [org.springframework.security.web.header.HeaderWriterFilter] while setting constructor argument with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#14d36be': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.web.header.HeaderWriterFilter]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: headerWriters cannot be null or empty

    16 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.lang.IllegalArgumentException

      No auto configuration classes found in META-INF/spring.factories. If you are using a custom packaging, make sure that file is correct.

      at org.springframework.util.Assert.notEmpty()
    2. Spring Core
      Assert.notEmpty
      1. org.springframework.util.Assert.notEmpty(Assert.java:276)
      1 frame
    3. Spring Boot AutoConfigure
      EnableAutoConfigurationImportSelector.selectImports
      1. org.springframework.boot.autoconfigure.EnableAutoConfigurationImportSelector.getCandidateConfigurations(EnableAutoConfigurationImportSelector.java:145)
      2. org.springframework.boot.autoconfigure.EnableAutoConfigurationImportSelector.selectImports(EnableAutoConfigurationImportSelector.java:84)
      2 frames
    4. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportSelectors(ConfigurationClassParser.java:481)
      2. org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:191)
      3. org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:321)
      4. org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:243)
      5. org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:273)
      6. org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:98)
      7. org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:681)
      8. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:523)
      8 frames
    5. Spring Boot
      SpringApplication.run
      1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
      2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
      3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369)
      4. org.springframework.boot.SpringApplication.run(SpringApplication.java:313)
      5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)
      6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)
      6 frames
    6. pl.mypackage
      Main.main
      1. pl.mypackage.Main.main(Main.java:39)
      1 frame