org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'RSACBeanLocator' is defined

Spring JIRA | Antranig Basman | 10 years 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

    Code in isFactoryBean (invoked via requiresEagerInitForType) makes the assumption that that the definition for a bean referenced using factory-bean lies within the current context (code from AbstractBeanFactory.java, 2.0.5 Spring release, line 1291) RootBeanDefinition bd = getMergedBeanDefinition(beanName, false); The argument "false" implies that parent contexts will not be searched. For example, this bean definition <bean id="requestBeanLocator" factory-bean="RSACBeanLocator" factory-method="getBeanLocator" /> where RSACBeanLocator lies in a parent context, causes a failure on context startup with the following trace: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'RSACBeanLocator' is defined at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:353) at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:916) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1291) at org.springframework.beans.factory.support.DefaultListableBeanFactory.requiresEagerInitForType(DefaultListableBeanFactory.java:231) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:173) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:786) at uk.org.ponder.springutil.TLABPostProcessor.setApplicationContext(TLABPostProcessor.java:48) This bug introduced in 2.0.5 release, 2.0.4 was fine - possibly as a part of the resolution to issue SJC-3

    Spring JIRA | 10 years ago | Antranig Basman
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'RSACBeanLocator' is defined
  2. 0

    Code in isFactoryBean (invoked via requiresEagerInitForType) makes the assumption that that the definition for a bean referenced using factory-bean lies within the current context (code from AbstractBeanFactory.java, 2.0.5 Spring release, line 1291) RootBeanDefinition bd = getMergedBeanDefinition(beanName, false); The argument "false" implies that parent contexts will not be searched. For example, this bean definition <bean id="requestBeanLocator" factory-bean="RSACBeanLocator" factory-method="getBeanLocator" /> where RSACBeanLocator lies in a parent context, causes a failure on context startup with the following trace: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'RSACBeanLocator' is defined at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:353) at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:916) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1291) at org.springframework.beans.factory.support.DefaultListableBeanFactory.requiresEagerInitForType(DefaultListableBeanFactory.java:231) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:173) at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:786) at uk.org.ponder.springutil.TLABPostProcessor.setApplicationContext(TLABPostProcessor.java:48) This bug introduced in 2.0.5 release, 2.0.4 was fine - possibly as a part of the resolution to issue SJC-3

    Spring JIRA | 10 years ago | Antranig Basman
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'RSACBeanLocator' is defined
  3. 0

    Spring Boot and @ComponentScan Configuration is giving No bean named MessageSourceAutoConfiguration

    Stack Overflow | 3 years ago | Muhi Masoud
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.springframework.boot.autoconfigure.MessageSourceAutoConfiguration' is defined
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NoSuchBeanDefinitionException : 'o.s.b.a.MessageSourceAutoConfiguration' is defined when started spring boot

    Stack Overflow | 3 years ago | andolsi zied
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.springframework.boot.autoconfigure.MessageSourceAutoConfiguration' is defined

  1. Andreas Häber 2 times, last 2 months ago
  2. Luka 126 times, last 7 months ago
  3. mauritius 2 times, last 11 months ago
1 unregistered visitors

Root Cause Analysis

  1. org.springframework.beans.factory.NoSuchBeanDefinitionException

    No bean named 'RSACBeanLocator' is defined

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition()
  2. Spring Beans
    DefaultListableBeanFactory.getBeanNamesForType
    1. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:353)
    2. org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:916)
    3. org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1291)
    4. org.springframework.beans.factory.support.DefaultListableBeanFactory.requiresEagerInitForType(DefaultListableBeanFactory.java:231)
    5. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:173)
    5 frames
  3. Spring Context
    AbstractApplicationContext.getBeanNamesForType
    1. org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:786)
    1 frame
  4. uk.org.ponder
    TLABPostProcessor.setApplicationContext
    1. uk.org.ponder.springutil.TLABPostProcessor.setApplicationContext(TLABPostProcessor.java:48)
    1 frame