on ‎2020 Jan 03 12:40 PM
Hi,
- We have this bean that belongs to hybris extensions:
<alias alias="cockpitEventQueue" name="defaultCockpitEventQueue"/> <bean id="defaultCockpitEventQueue" scope="singleton"> <property name="cockpitUserService" ref="cockpitUserService"/> </bean>
Due to a project requirement, it had to be extended and the following bean was generated:
<bean id="pjlCockpitEventQueue" class="com.iecisa.pepejeans.pce.backoffice.events.PjlCockpitEventQueue" parent="cockpitEventQueue"></bean>
- Now, we have had to activate the promotions module by adding the following extensions:
<extension name="promotionengineservices" />
<extension name='droolsruleengineservices' />
<extension name='couponfacades' />
<extension name='promotionenginesamplesaddon' />
<extension name='rulebuilderbackoffice' />
<extension name='couponbackoffice' />
- Once activated, when creating a promotion from a template, the following error appears in the log:
Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'com.hybris.cockpitng.core.events.CockpitEventQueue' available: expected single matching bean but found 2: defaultCockpitEventQueue,pjlCockpitEventQueue
How could it be solved?
Thanks in advance
Request clarification before answering.
With this declaration of the bean the error is solved when creating promotions:
<alias alias="cockpitEventQueue" name="defaultCockpitEventQueue"/>
<bean id="defaultCockpitEventQueue" scope="singleton"> <property name="cockpitUserService" ref="cockpitUserService"/>
</bean>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.