cancel
Showing results for 
Search instead for 
Did you mean: 

smartedit addon XML not getting referred

Former Member

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,

Former Member
0 Kudos

just want to update yacceleratorstorefront="" contains valid storefront name and I can see files from addon in storefront as well.

0 Kudos

Are you able to resolve this issue? I'm getting this issue with hybris6.7?

Former Member
0 Kudos

- 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.

0 Kudos

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?

former_member627008
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

jrhlozano
Explorer

Hi,

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

REgards.

Former Member
0 Kudos

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

Former Member

Hi Tarun,

I already have that property in my storefront, however, it still doesn't seem to be picking Handler.