Home  >  Forum  >  Spring
Post New Query

Error creating bean: Bean definition is abstract

Asked on April 14, 2013
Hi All,
I am new to spring. Give me a clue to resolve the issue.

Exception in thread "main" org.springframework.beans.factory.BeanIsAbstractException: Error creating bean with name 'loginHandler': 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)
at com.concretepage.SpringTest.main(SpringTest.java:10)


Replied on April 14, 2013
The bean 'loginHandler' has been declared as abstract. And it is possible that you are directly accessing this bean in your code.

Write Answer

©2022 concretepage.com | Privacy Policy | Contact Us