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

smartedit addon XML not getting referred

Hi,

I tried installing the smarteditaddon in storefront(hybris 6.3) using following command

ant addoninstall -Daddonnames="smarteditaddon" -DaddonStorefront.yacceleratorstorefront=""

However, when I check beforeViewHandlerList, it doesn't seem to contain SmarteditaddonCmsPageBeforeViewHandler, I entered it manually in handler list, then, it seems to work, however, need appropriate solution so as to avoid using bean which is already present in bean of addon. Please let me know if I'm missing anything.

Thanks,

Add a comment
10|10000 characters needed characters exceeded

  • Did you find a solution? I'm having the same error on 1808.

  • Former Member Nagoor Basha Shaik

    - are you migrating from any version to 6.7? Seems like it was related to BeforeViewHandler which is moved to different location in new hybris.

  • Yes. We are upgrading from 6.3 to 6.7. I see the bean definitions are proper in smarteditaddon.xml.

         <bean id="smarteditaddonCmsPageBeforeViewHandler" class="de.hybris.platform.smarteditaddon.interceptors.beforeview.SmarteditaddonCmsPageBeforeViewHandler">
             <property name="uniqueItemIdentifierService" ref="cmsUniqueItemIdentifierService"/>
         </bean>
     
         <bean id="SmarteditaddonBeforeViewHandlerListMergeDirective" depends-on="beforeViewHandlersList" parent="listMergeDirective">
             <property name="add" ref="getSmarteditaddonBeforeViewHandler"/>
         </bean>
     
         <bean id="smarteditaddonCmsPageBeforeViewHandlerListMergeDirective" depends-on="beforeViewHandlersList" parent="listMergeDirective">
             <property name="add" ref="smarteditaddonCmsPageBeforeViewHandler"/>
         </bean>
    
    

    How did you solve the issue?

Related questions

2 Answers

  • Posted on May 17, 2019 at 01:26 AM

    Hi,

    Have you solve the problem? I am having the same issue..

    REgards.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 02, 2017 at 06:45 PM

    Hi Ankit,

    Add the following property to storefront's project.properties file.

    usb2cstorefront.additionalWebSpringConfigs.smarteditaddon=classpath\:/smarteditaddon/web/spring/smarteditaddon-web-spring.xml

    Thanks, Tarun

    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.