Skip to Content
author's profile photo Former Member
Former Member

No bean named 'addOnJspIncludeCMSComponentRenderer' is defined

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>
 
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2015 at 12:05 AM

    Did you add extension addonsupport in you localextensions.xml?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 10, 2016 at 06:39 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2016 at 06:19 PM

    Did you manage to fix this problem?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.