cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SmarteditAddon Hybris 6.3 not working?

Former Member
1,714

We are currently using Hybris 6.3. Our goal is to add Smartedit to our system. At the moment we can log in and click on one of our catalogues, but there is no content at all. Only the two catalogues. And when we add

 <requires-extension name="smarteditaddon"/>

to our customstorefront/extensioninfo.xml the following error occures. What should we do to fix this?

    [yjavac] 1. ERROR in .../custom/hoffmann/hoffmannstorefront/web/addonsrc/smarteditaddon/de/hybris/platform/smarteditaddon/interceptors/beforeview/SmarteditaddonCmsPageBeforeViewHandler.java (at line 13)
    [yjavac]     import de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController;
    [yjavac]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [yjavac] The import de.hybris.platform.acceleratorstorefrontcommons.controllers cannot be resolved
    [yjavac] ----------
    [yjavac] 2. ERROR in .../custom/hoffmann/hoffmannstorefront/web/addonsrc/smarteditaddon/de/hybris/platform/smarteditaddon/interceptors/beforeview/SmarteditaddonCmsPageBeforeViewHandler.java (at line 14)
    [yjavac]     import de.hybris.platform.acceleratorstorefrontcommons.interceptors.BeforeViewHandler;
    [yjavac]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [yjavac] The import de.hybris.platform.acceleratorstorefrontcommons.interceptors cannot be resolved
    [yjavac] ----------
    [yjavac] 3. ERROR in .../custom/hoffmann/hoffmannstorefront/web/addonsrc/smarteditaddon/de/hybris/platform/smarteditaddon/interceptors/beforeview/SmarteditaddonCmsPageBeforeViewHandler.java (at line 26)
    [yjavac]     public class SmarteditaddonCmsPageBeforeViewHandler implements BeforeViewHandler
    [yjavac]                                                                    ^^^^^^^^^^^^^^^^^
    [yjavac] BeforeViewHandler cannot be resolved to a type
    [yjavac] ----------
    [yjavac] 4. ERROR in .../custom/hoffmann/hoffmannstorefront/web/addonsrc/smarteditaddon/de/hybris/platform/smarteditaddon/interceptors/beforeview/SmarteditaddonCmsPageBeforeViewHandler.java (at line 34)
    [yjavac]     public void beforeView(final HttpServletRequest request, final HttpServletResponse response, final ModelAndView modelAndView)
    [yjavac]                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [yjavac] The method beforeView(HttpServletRequest, HttpServletResponse, ModelAndView) of type SmarteditaddonCmsPageBeforeViewHandler must override or implement a supertype method
    [yjavac] ----------
    [yjavac] 5. ERROR in .../custom/hoffmann/hoffmannstorefront/web/addonsrc/smarteditaddon/de/hybris/platform/smarteditaddon/interceptors/beforeview/SmarteditaddonCmsPageBeforeViewHandler.java (at line 37)
    [yjavac]     final AbstractPageModel page = (AbstractPageModel) modelAndView.getModel().get(AbstractPageController.CMS_PAGE_MODEL);
    [yjavac]                                                                                    ^^^^^^^^^^^^^^^^^^^^^^
    [yjavac] AbstractPageController cannot be resolved to a variable
    [yjavac] ----------
    [yjavac] 5 problems (5 errors)
 
 BUILD FAILED
 

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member

It seems that the buildcallbacks.xml in my storefront was not up to date. I compared it to the one in yacceleratorstorefront, added the missing parts and then (after additionally adding some missing files), the build was running without problems.

Former Member

Hi. Thx for your help 🙂

unfortunately this happens after

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

but removing the following line helps to get a successful build

 <requires-extension name="smarteditaddon"/>



0 Kudos

Hi Ingo,

Where you able to find a solution to this? We are facing a same issue when installing smarteditaddon on the storefront. We also tried including accelearatorstorefrontcommons to the localextensions.xml and extensioninfo.xml on storefront.

Regards, Padmaja.

former_member627008
Participant
0 Kudos

Have you found a solution to this problem?

Former Member
0 Kudos

Did anyone find a solution meanwhile? I installed the smarteditaddon properly for my storefront and now I'm facing the build errors as mentioned above. It seems that acceleratorstorefrontcommons is not on the build path, although I added it to the extensioninfo.xml of my storefront.

Former Member
0 Kudos

Have you found a solution by this problem? we are having the same issue...

Regards, JR.

r_siancassalas
Newcomer
0 Kudos

Hi. Have you already installed the addon on your custom storefront? In v. 1811 you can do it by following https://help.hybris.com/1811/hcd/0955af7dd5154a8db28dfce327d8dae5.html. For 6.3 you might find info on https://help.hybris.com/6.3.0/hcd/8adf7365866910149ceb975f778d809d.html