SAP Knowledge Base Article - Preview

3284611 - Unable to extend classes from commercewebservices


When working on moving to OCC - Extension based Architecture as occaddon is deprecated - Deprecation of Accelerator UIs and Older OCC template Extensions
,when extend base controllers from commercewebservices, but unable to do it even after adding commercewebservices as dependency.

There are following errors when run ant all
==Build ERROR==
   [echo] preparing...
   [echo] building extension ‘xyzocc’...
  [yjavac] Compiling 1 source file to xxx/hybris/bin/custom/xyzocc/classes
  [yjavac] xxx/hybris/bin/custom/xyzocc/src/xyzocc/com/controllers/ error: package de.hybris.platform.commercewebservices.core.v2.controller does not exist
  [yjavac] import de.hybris.platform.commercewebservices.core.v2.controller.AddressController;
  [yjavac]                                 ^
  [yjavac] xxx/hybris/bin/custom/xyzocc/src/xyzocc/com/controllers/ error: cannot find symbol
  [yjavac] public class XyzoccController extends AddressController
  [yjavac]                    ^
  [yjavac]  symbol: class AddressController
  [yjavac] 2 errors



SAP Commerce Cloud 2205


controller, extends, API Endpoint Deactivation , KBA , CEC-SCC-PLA-PL , Platform , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.