Skip to Content
0
Former Member
Nov 01, 2018 at 05:31 AM

EnhancedCookieGenerator class not found while executing B2c_acc_plus recipe using Modulegen

57 Views

Hi Experts

I followed the steps mentioned in the below trail to install b2c_acc_plus recipe for trainingstorefront using modulegen. https://help.hybris.com/1808/hcd/8ace75c786691014a5e9dcafa29d5410.html

While giving package name in modulegen I chose to give "com.hybris.storefront" Followed the trail as mentioned and reinstalled addons as well on trainingstorefront after removing yacceleratorstorefront extensions.Evrything runs fine till now.

When I start the server again I get the following error in b2cangularaddon-web-spring.xml nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [de.hybris.platform.yacceleratorstorefront.security.cookie.EnhancedCookieGenerator] for bean with name 'defaultAngularTokenCookieGenerator' defined in class path resource [b2cangularaddon/web/spring/b2cangularaddon-web-spring.xml]; nested exception is java.lang.ClassNotFoundException: de.hybris.platform.yacceleratorstorefront.security.cookie.EnhancedCookieGenerator

So basically , This class is not available anymore as we don't include yacceleratorstorefront extension. Instead We should have "com.hybris.training.storefront.security.cookie.EnhancedCookieGenerator" file package in this spring file to work.

Is this an OOB issue ? Ideally as per my understanding while reing addons or during the trail itself this file should have been replaced. For now I am using ant customize to replace b2cangularaddon-web-spring.xml file to work for me. Please suggest your solutions.

Thanks in advance.