I am trying to integrate a portlet with broadleaf commerce. I have a portlet working in Spring and I added broadleaf-framework jar I built from 1.5 sources using maven per instructions on the BC site. I included all of the dependent jars as well in the lib folder of the portlet. I am trying to call a catalog service, so I am trying to inject it in the portlet like this:
@Resource(name="blCatalogService")
protected CatalogService catalogService;
and I included this to make it visible to Spring in portlet's application-config.xml:
<context:component-scan base-package="org.broadleafcommerce"/>
Here is the error I am getting:
Error creating bean with name 'bookingService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCatalogService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCategoryDao': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'blPU' is defined
but I see blPU bean in persistence-framework.xml in broadleaf-framwork jar:
<persistence-unit name="blPU" transaction-type="RESOURCE_LOCAL">
<mapping-file>config/bc/jpa/domain/Category.orm.xml</mapping-file>
This forum is in readonly mode and serves as an archive of old information. All posting, registration and commenting abilities have been turned off. To get help, the Broadleaf team reguarly monitors the broadleaf-commerce tag on Stack Overflow so please ask your questions there.