on 07-21-2015 10:06 PM
I am creating an addon in hybris 5.1.1.7 following this tutorial: https://wiki.hybris.com/display/R5T/Creating+New+CMS+Components all steps are performed to "Add the new component".
I run ant all and ant updatesystem normally, but when I lift the hybris, I'm having the following problem:
Invalid bean definition with name 'xxxxComponentRenderer' defined in ServletContext resource [/WEB-INF/xxxxaddon-web-spring.xml]: Could not resolve parent bean definition 'addOnJspIncludeCMSComponentRenderer'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'addOnJspIncludeCMSComponentRenderer' is defined
amazonloginaddon-web-spring.xml:
<bean id="xxxxComponentRenderer" parent="addOnJspIncludeCMSComponentRenderer"/>
<bean id="xxxxComponentRendererMapping" parent="addonCmsComponentRendererMapping">
<property name="typeCode" value="xxxxComponent" />
<property name="renderer" ref="xxxxComponentRenderer" />
</bean>
xxxxaddon-items.xml
<itemtype code="xxxxComponent" autocreate="true" generate="true" extends="CMSParagraphComponent">
</itemtype>
You defined bean of rederer in wrong file xml.
I think that you have mistaken when put code to define bean.
It should be defined in file randomimageaddon-web-spring.xml
Not in file randomimageaddon-spring.xml
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you manage to fix this problem?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you add extension addonsupport in you localextensions.xml?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
2 | |
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.