cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error in Backoffice when create a Promotion

former_member543529
Discoverer
0 Likes
458

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member543529
Discoverer
0 Likes

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>

Answers (0)