on 06-27-2016 9:32 PM
Hi everyone,
I'm trying to access a bean defined in b2ccheckoutaddon-web-spring.xml but my AddOn can not see it. I already defined the in extensioninfo.xml, and I added the reference in merchandisecheckoutaddon-web-spring.xml - which is the xml for my extension.
The errro I'm getting is
Error creating bean with name 'merchandiseMultiFlowCheckoutGroup' defined in class path resource [merchandisecheckoutaddon/web/spring/merchandisecheckoutaddon-web-spring.xml]: Cannot resolve reference to bean 'multiStepCheckout' while setting bean property 'checkoutStepMap' with key [TypedStringValue: value [multi], target type [null]]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'multiStepCheckout' is defined
Any idea what can happen?
Thanks.
Hi Kyle.. Thanks for yout time on this.
I tried to copy and paste the bean definition placed in b2ccheckoutaddon, but it start to complaining for more references, so I don't think that is a good approach.
I just need to understand how to make visible one bean into the spring context, so it can be used in other addOn.
Any idea on what else can I do ?
Appreciate it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you look inside b2ccheckoutaddon-web-spring.xml to see if the multiStepCheckout bean is defined?
If it is and you are still facing issues, a temporary issue might be to copy the bean defined in b2ccheckoutaddon-web-spring.xml into your merchandiseaddon-web-spring.xml
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kyle.
Thanks for your answer.
Yes, the bean is defined, BUT, the multiStepCheckout is an alias, is not the bean id. I don´t know if that could bring any issue.
This is the bean definition:
<alias name="defaultMultiStepCheckout" alias="multiStepCheckout" />
<bean id="defaultMultiStepCheckout" parent="checkoutStep">
<property name="checkoutGroup" ref="defaultCheckoutGroup"/>
<property name="checkoutStepValidator" ref="defaultMultiStepCheckoutValidator"/>
<property name="transitions">
<map>
<entry key="previous" value-ref="REDIRECT_TO_CART"/>
<entry key="current" value-ref="REDIRECT_MULTI_STEP_CHECKOUT"/>
<entry key="next" value-ref="REDIRECT_TO_DELIVERY_ADDRESS"/>
</map>
</property>
<property name="progressBarId" value="multi"/>
</bean>
I will try to apply your workaround, and I will let you know.
Best,
Hi Kyle.. Thanks for yout time on this.
I tried to copy and paste the bean definition placed in b2ccheckoutaddon, but it start to complaining for more references, so I don't think that is a good approach.
I just need to understand how to make visible one bean into the spring context, so it can be used in other addOn.
Any idea on what else can I do ?
Appreciate it.
User | Count |
---|---|
8 | |
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.