on 2019 Feb 12 4:34 PM
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
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"/>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you found a solution by this problem? we are having the same issue...
Regards, JR.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 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.