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.
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
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.
Add a comment