No bean named 'blMainEntityActionsExtensionManager' is defined

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

Moderator: jocanas

ananich
Newbie
Newbie
Posts: 2
Joined: Wed Jun 15, 2016 8:43 am
Contact:

No bean named 'blMainEntityActionsExtensionManager' is defined

Postby ananich » Wed Jun 15, 2016 10:10 am

I'm evaluating Broadleaf and I tried to create a custom admin controller like that:

Code: Select all

@Controller("fooController")
@RequestMapping("/foo")
public class AdminFooController extends AdminBasicEntityController {
   @Override
   protected void modifyEntityForm(EntityForm entityForm, Map<String, String> pathVars) {
      super.modifyEntityForm(entityForm, pathVars);
   }
}


And I get an exception:

Code: Select all

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'blMainEntityActionsExtensionManager' is defined
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:687)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1168)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:281)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
   at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:461)
   at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:435)
   at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:559)
   at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:169)
   at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
   at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:305)
   ... 23 more


As far as I can see, AdminCategoryController is nearly the same and it works just fine. What's wrong with my code?

Return to “Broadleaf Commerce Demo”

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests