Referenced bean is not defined in bean definitions xml file

org.springframework.beans.factory.NoSuchBeanDefinitionException
Javadoc
Exception thrown when a {@code BeanFactory} is asked for a bean instance for which it cannot find a definition. This may point to a non-existing bean, a non-unique bean, or a manually registered singleton instance without an associated bean definition. @author Rod Johnson @author Juergen Hoeller @author Stephane Nicoll @see BeanFactory#getBean(String) @see BeanFactory#getBean(Class) @see NoUniqueBeanDefinitionException
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition
(source)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition
(source)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean
(source)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(source)
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource
(source)
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource
(source)
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject
(source)
at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject
(source)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject
(source)
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues
(source)
9 frames hidden

Typical Exception Messages

  1. Failed to load ApplicationContext
  2. Error creating bean with name 'blPricingExecutionManager': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blPricingService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blPricingWorkflow' defined in resource loaded from byte array: Cannot create inner bean 'org.broadleafcommerce.core.pricing.service.workflow.OfferActivity#4de67cdb' of type [org.broadleafcommerce.core.pricing.service.workflow.OfferActivity] while setting bean property 'activities' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.broadleafcommerce.core.pricing.service.workflow.OfferActivity#4de67cdb': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blOfferService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blOrderOfferProcessor': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCartService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCustomerService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'blPasswordEncoder' is defined
  3. Error creating bean with name 'blCheckoutService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCheckoutWorkflow' defined in resource loaded from byte array: Cannot create inner bean 'com.mycompany.core.email.service.ConfirmationEmailActivity#ad2816' of type [com.mycompany.core.email.service.ConfirmationEmailActivity] while setting bean property 'activities' with key [6]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.mycompany.core.email.service.ConfirmationEmailActivity#ad2816': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'myEmailService' is defined
  4. Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchAppController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: public arlua.dao.impl.ApplicationInstanceDaoImpl arlua.controller.SearchAppController.applicationInstanceDaoImpl; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationInstanceDaoImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'mySessionFactory' is defined
  5. No bean named 'securityDataSource' is defined
  6. No bean named 'beanName' is defined
  7. Error creating bean with name 'blVariableExpressionEvaluator': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'blVariableExpressions' is defined
  8. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in resource loaded from byte array: Cannot resolve reference to bean 'blPersistenceUnitManager' while setting bean property 'persistenceUnitManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blPersistenceUnitManager': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'blMergedDataSources' is defined
  9. Error creating bean with name 'myController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'blMainEntityActionsExtensionManager' is defined
  10. Error creating bean with name 'imageService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'imageReader' is defined

Specific cases

External results for this pattern (15)

  1. Error creating bean with name 'centralAuthenticationService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ticketRegistry' is defined
    Show stack trace
  2. Antoniovia Stack Overflow5 months ago
    Error creating bean with name 'myController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'blMainEntityActionsExtensionManager' is defined
    Show stack trace
  3. Unknown authorvia broadleafcommerce.org5 months ago
    Error creating bean with name 'blPricingExecutionManager': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blPricingService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blPricingWorkflow' defined in resource loaded from byte array: Cannot create inner bean 'org.broadleafcommerce.core.pricing.service.workflow.OfferActivity#4de67cdb' of type [org.broadleafcommerce.core.pricing.service.workflow.OfferActivity] while setting bean property 'activities' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.broadleafcommerce.core.pricing.service.workflow.OfferActivity#4de67cdb': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blOfferService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blOrderOfferProcessor': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCartService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCustomerService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'blPasswordEncoder' is defined
    Show stack trace
  4. Unknown authorvia broadleafcommerce.org5 months ago
    Error creating bean with name 'blPricingExecutionManager': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blPricingService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blPricingWorkflow' defined in resource loaded from byte array: Cannot create inner bean 'org.broadleafcommerce.core.pricing.service.workflow.OfferActivity#4de67cdb' of type [org.broadleafcommerce.core.pricing.service.workflow.OfferActivity] while setting bean property 'activities' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.broadleafcommerce.core.pricing.service.workflow.OfferActivity#4de67cdb': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blOfferService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blOrderOfferProcessor': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCartService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCustomerService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'blPasswordEncoder' is defined
    Show stack trace
  5. Unknown authorvia broadleafcommerce.org5 months ago
    Error creating bean with name 'blPricingExecutionManager': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blPricingService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blPricingWorkflow' defined in resource loaded from byte array: Cannot create inner bean 'org.broadleafcommerce.core.pricing.service.workflow.OfferActivity#4de67cdb' of type [org.broadleafcommerce.core.pricing.service.workflow.OfferActivity] while setting bean property 'activities' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.broadleafcommerce.core.pricing.service.workflow.OfferActivity#4de67cdb': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blOfferService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blOrderOfferProcessor': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCartService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCustomerService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'blPasswordEncoder' is defined
    Show stack trace
  6. Unknown authorvia broadleafcommerce.org5 months ago
    Error creating bean with name 'blVariableExpressionEvaluator': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'blVariableExpressions' is defined
    Show stack trace
  7. gowthamguthavia GitHub5 months ago
    Error creating bean with name 'blCheckoutService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCheckoutWorkflow' defined in resource loaded from byte array: Cannot create inner bean 'com.mycompany.core.email.service.ConfirmationEmailActivity#ad2816' of type [com.mycompany.core.email.service.ConfirmationEmailActivity] while setting bean property 'activities' with key [6]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.mycompany.core.email.service.ConfirmationEmailActivity#ad2816': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'myEmailService' is defined
    Show stack trace
  8. Curtis Lacyvia Google Groups1 year ago
    Error creating bean with name 'serviceThemeResolver': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory. NoSuchBeanDefinitionException: No bean named 'serviceThemeResolverSupportedBrowsers' is defined
    Show stack trace
  9. Curtisvia Stack Overflow1 year ago
    Error creating bean with name 'serviceThemeResolver': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'serviceThemeResolverSupportedBrowsers' is defined
    Show stack trace
  10. dlinx90via Stack Overflow1 year ago
    Error creating bean with name 'customerController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'customerService' is defined
    Show stack trace