Home  >  Forum  >  Spring
Post New Query

Error creating bean with name : Bean definition is abstract

joined on
April 07,2013
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)

joined on
March 16,2013
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

Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us