Home  >  Forum  >  Spring
Post New Query

Error creating bean with name : Bean definition is abstract



Asked on April 21, 2013
Hello, Stuck with the below error. Any clue.

Exception in thread "main" org.springframework.beans.factory.BeanIsAbstractException: Error creating bean with name : Bean definition is abstract
    at org.springframework.beans.factory.support.AbstractBeanFactory.checkMergedBeanDefinition(AbstractBeanFactory.java:1209)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:278)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1093)
   




Replied on April 21, 2013
Hi Sweta,
Error says that you have declared a bean abstract in the XML and you are trying to get that bean in your java class. Abstract bean can not be fetched but can be inherited by parent attribute of a bean.


Write Answer




©2019 concretepage.com | Privacy Policy | Contact Us