No bean named 'blLoginService' is defined

Topics related to running, modifying, or working with the Broadleaf Commerce Demo application

Moderator: jocanas

pranavt
Newbie
Newbie
Posts: 1
Joined: Mon May 02, 2016 10:47 pm

No bean named 'blLoginService' is defined

Postby pranavt » Mon May 02, 2016 11:34 pm

I have been working on the demo project, every thing was running smooth until today, when I started seeing this error from no where ....

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'blLoginService' is defined
[artifact:mvn] at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:687)
[artifact:mvn] at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1168)
[artifact:mvn] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:281)
[artifact:mvn] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
[artifact:mvn] at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:461)
[artifact:mvn] at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:435)
[artifact:mvn] at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:559)
[artifact:mvn] at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:169)
[artifact:mvn] at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
[artifact:mvn] at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:305)
[artifact:mvn] ... 23 more
[artifact:mvn] May 03, 2016 9:58:35 AM org.apache.catalina.core.StandardContext listenerStart
[artifact:mvn] SEVERE: Exception sending context initialized event to listener instance of class org.broadleafcommerce.common.web.extensibility.MergeContextLoader
[artifact:mvn] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'blLoginService' is defined
[artifact:mvn] at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:308)
[artifact:mvn] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210)
[artifact:mvn] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
[artifact:mvn]

I have verified the entry in application context.

<!-- Scan Broadleaf defined web utility classes -->
<!-- context:component-scan base-package="org.broadleafcommerce.cms.web"/ -->
<context:component-scan base-package="org.broadleafcommerce.profile.web.core.service.login" />
<context:component-scan base-package="org.broadleafcommerce.common.web" />
<context:component-scan base-package="org.broadleafcommerce.profile.web.controller" />

<!-- Scan DemoSite Sample Payment Gateway Implementation -->
<context:component-scan base-package="com.jwel.sample" />

<context:component-scan base-package="com.jwel.custom.controller" />

Return to “Broadleaf Commerce Demo”

Who is online

Users browsing this forum: No registered users and 1 guest