SAP Knowledge Base Article - Preview

3284611 - Unable to extend classes from commercewebservices

Symptom

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==
build:
   [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/XyzoccController.java:5: 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/XyzoccController.java:6: error: cannot find symbol
  [yjavac] public class XyzoccController extends AddressController
  [yjavac]                    ^
  [yjavac]  symbol: class AddressController
  [yjavac] 2 errors
==============


Read more...

Product

SAP Commerce Cloud 2205

Keywords

controller, extends, API Endpoint Deactivation , KBA , CEC-COM-CPS-OTH , Other topics , 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.