org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'Market1Datasource' is defined: <list of 578 bean names>

SpringSource Issue Tracker | Andreas Nyberg | 5 years ago
  1. 0

    I had enabled all Beans Validators at workspace level. Building this project caused the attached "error" error (Error Log). Disabling only @Required Property Rule allowed the build to proceed and report Spring Beans Problems including "No setter found for property" and "Overrides another alias in the same config file". I am not at liberty to share the source that caused this, but I hope this will be sufficient. -- Error Details -- Date: Tue May 15 14:57:22 BST 2012 Message: No bean named 'Market1Datasource' is defined: <list of 578 bean names> Severity: Error Product: Eclipse SDK 3.7.2.v201202080800 (org.eclipse.sdk.ide) Plugin: org.eclipse.wst.sse.ui Exception Stack Trace: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'Market1Datasource' is defined: <list of 578 bean names> at org.springframework.ide.eclipse.beans.core.DefaultBeanDefinitionRegistry.getBeanDefinition(DefaultBeanDefinitionRegistry.java:119) at org.springframework.ide.eclipse.beans.core.internal.model.validation.rules.ValidationRuleUtils.getBeanDefinitions(ValidationRuleUtils.java:98) at org.springframework.ide.eclipse.beans.core.internal.model.validation.BeansValidationContext.getRegisteredBeanDefinition(BeansValidationContext.java:130) at org.springframework.ide.eclipse.beans.core.internal.model.validation.rules.RequiredPropertyRule.getRequiredAnnotationTypes(RequiredPropertyRule.java:180) at org.springframework.ide.eclipse.beans.core.internal.model.validation.rules.RequiredPropertyRule.validatePropertyNames(RequiredPropertyRule.java:89) at org.springframework.ide.eclipse.beans.core.internal.model.validation.rules.RequiredPropertyRule.validate(RequiredPropertyRule.java:75) at com.springsource.sts.quickfix.validator.ClassAttributeValidator.validateAttributeWithConfig(ClassAttributeValidator.java:87) at com.springsource.sts.quickfix.validator.BeanValidator.validateAttributeWithConfig(BeanValidator.java:151) at com.springsource.sts.quickfix.QuickfixUtils.validateAttribute(QuickfixUtils.java:520) at com.springsource.sts.quickfix.validator.BeanValidatorVisitor.visitAttributes(BeanValidatorVisitor.java:56) at com.springsource.sts.quickfix.validator.BeanValidatorVisitor.visitNode(BeanValidatorVisitor.java:78) at com.springsource.sts.quickfix.BeansEditorValidator.validateNode(BeansEditorValidator.java:478) at com.springsource.sts.quickfix.BeansEditorValidator.validate(BeansEditorValidator.java:458) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:381) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:259) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:250) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:697)

    SpringSource Issue Tracker | 5 years ago | Andreas Nyberg
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'Market1Datasource' is defined: <list of 578 bean names>
  2. 0

    I had enabled all Beans Validators at workspace level. Building this project caused the attached "error" error (Error Log). Disabling only @Required Property Rule allowed the build to proceed and report Spring Beans Problems including "No setter found for property" and "Overrides another alias in the same config file". I am not at liberty to share the source that caused this, but I hope this will be sufficient. -- Error Details -- Date: Tue May 15 14:57:22 BST 2012 Message: No bean named 'Market1Datasource' is defined: <list of 578 bean names> Severity: Error Product: Eclipse SDK 3.7.2.v201202080800 (org.eclipse.sdk.ide) Plugin: org.eclipse.wst.sse.ui Exception Stack Trace: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'Market1Datasource' is defined: <list of 578 bean names> at org.springframework.ide.eclipse.beans.core.DefaultBeanDefinitionRegistry.getBeanDefinition(DefaultBeanDefinitionRegistry.java:119) at org.springframework.ide.eclipse.beans.core.internal.model.validation.rules.ValidationRuleUtils.getBeanDefinitions(ValidationRuleUtils.java:98) at org.springframework.ide.eclipse.beans.core.internal.model.validation.BeansValidationContext.getRegisteredBeanDefinition(BeansValidationContext.java:130) at org.springframework.ide.eclipse.beans.core.internal.model.validation.rules.RequiredPropertyRule.getRequiredAnnotationTypes(RequiredPropertyRule.java:180) at org.springframework.ide.eclipse.beans.core.internal.model.validation.rules.RequiredPropertyRule.validatePropertyNames(RequiredPropertyRule.java:89) at org.springframework.ide.eclipse.beans.core.internal.model.validation.rules.RequiredPropertyRule.validate(RequiredPropertyRule.java:75) at com.springsource.sts.quickfix.validator.ClassAttributeValidator.validateAttributeWithConfig(ClassAttributeValidator.java:87) at com.springsource.sts.quickfix.validator.BeanValidator.validateAttributeWithConfig(BeanValidator.java:151) at com.springsource.sts.quickfix.QuickfixUtils.validateAttribute(QuickfixUtils.java:520) at com.springsource.sts.quickfix.validator.BeanValidatorVisitor.visitAttributes(BeanValidatorVisitor.java:56) at com.springsource.sts.quickfix.validator.BeanValidatorVisitor.visitNode(BeanValidatorVisitor.java:78) at com.springsource.sts.quickfix.BeansEditorValidator.validateNode(BeansEditorValidator.java:478) at com.springsource.sts.quickfix.BeansEditorValidator.validate(BeansEditorValidator.java:458) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:381) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:259) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269) at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:250) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:697)

    SpringSource Issue Tracker | 5 years ago | Andreas Nyberg
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'Market1Datasource' is defined: <list of 578 bean names>
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    No bean named '' is defined (Frameworks forum at Coderanch)

    coderanch.com | 6 months ago
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '' is defined

    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 'Market1Datasource' is defined: <list of 578 bean names>

      at org.springframework.ide.eclipse.beans.core.DefaultBeanDefinitionRegistry.getBeanDefinition()
    2. org.springframework.ide
      RequiredPropertyRule.validate
      1. org.springframework.ide.eclipse.beans.core.DefaultBeanDefinitionRegistry.getBeanDefinition(DefaultBeanDefinitionRegistry.java:119)
      2. org.springframework.ide.eclipse.beans.core.internal.model.validation.rules.ValidationRuleUtils.getBeanDefinitions(ValidationRuleUtils.java:98)
      3. org.springframework.ide.eclipse.beans.core.internal.model.validation.BeansValidationContext.getRegisteredBeanDefinition(BeansValidationContext.java:130)
      4. org.springframework.ide.eclipse.beans.core.internal.model.validation.rules.RequiredPropertyRule.getRequiredAnnotationTypes(RequiredPropertyRule.java:180)
      5. org.springframework.ide.eclipse.beans.core.internal.model.validation.rules.RequiredPropertyRule.validatePropertyNames(RequiredPropertyRule.java:89)
      6. org.springframework.ide.eclipse.beans.core.internal.model.validation.rules.RequiredPropertyRule.validate(RequiredPropertyRule.java:75)
      6 frames
    3. com.springsource.sts
      BeansEditorValidator.validate
      1. com.springsource.sts.quickfix.validator.ClassAttributeValidator.validateAttributeWithConfig(ClassAttributeValidator.java:87)
      2. com.springsource.sts.quickfix.validator.BeanValidator.validateAttributeWithConfig(BeanValidator.java:151)
      3. com.springsource.sts.quickfix.QuickfixUtils.validateAttribute(QuickfixUtils.java:520)
      4. com.springsource.sts.quickfix.validator.BeanValidatorVisitor.visitAttributes(BeanValidatorVisitor.java:56)
      5. com.springsource.sts.quickfix.validator.BeanValidatorVisitor.visitNode(BeanValidatorVisitor.java:78)
      6. com.springsource.sts.quickfix.BeansEditorValidator.validateNode(BeansEditorValidator.java:478)
      7. com.springsource.sts.quickfix.BeansEditorValidator.validate(BeansEditorValidator.java:458)
      7 frames
    4. Structured Source Editor
      ReconcileStepForValidator.reconcileModel
      1. org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:381)
      2. org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:259)
      2 frames
    5. JFace Text
      AbstractReconcileStep.reconcile
      1. org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
      1 frame
    6. Structured Source Editor
      DirtyRegionProcessor$BackgroundThread.run
      1. org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
      2. org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
      3. org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:250)
      4. org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:697)
      4 frames