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

Spring JIRA | Antranig Basman | 10 years ago
  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
  6. 0

    grails 3.1.7 hibernate4 spring-security

    Stack Overflow | 6 months ago | Marco Di Scala
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '' is defined

  1. Luka 126 times, last 2 months ago
  2. mauritius 2 times, last 7 months ago
1 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. 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