Page 1 of 1

No bean named 'blMainEntityActionsExtensionManager' is defined

Posted: Wed Jun 15, 2016 10:10 am
by ananich
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?