on 2021 Feb 04 3:38 PM
Hi,
I am working on 2011 version and trying to create a new controller in OCC (with the *occ method instead of the addon approach).
I generated a new extension with the yocc template and named it as testocc.
After extgen, commercewebservices is already added as a required extension in extensioninfo.xml
After that, the only change I make is to open the generated example controller TestoccController and extend the AddressController from commercewebservices. Here is the class:
package test.controllers;
import de.hybris.platform.commercewebservices.core.v2.controller.AddressController;
public class TestoccController extends AddressController
{
// implement the controller here
}
But ant all fails with the following error:
[echo] building extension 'testocc'...
[copy] Copying 1 file to C:\hyb2011\hybris\core-customize\bin\custom\testocc
[copy] Copying 1 file to C:\hyb2011\hybris\core-customize\bin\custom\testocc
[mkdir] Created dir: C:\hyb2011\hybris\core-customize\bin\custom\testocc\classes
[yjavac] Compiling 5 source files to C:\hyb2011\hybris\core-customize\bin\custom\testocc\classes
[yjavac] ----------
[yjavac] 1. ERROR in C:\hyb2011\hybris\core-customize\bin\custom\testocc\src\test\controllers\TestoccController.java (at line 6)
[yjavac] import de.hybris.platform.commercewebservices.core.v2.controller.AddressController;
[yjavac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[yjavac] The import de.hybris.platform.commercewebservices.core.v2 cannot be resolved
[yjavac] ----------
[yjavac] 2. ERROR in C:\hyb2011\hybris\core-customize\bin\custom\testocc\src\test\controllers\TestoccController.java (at line 9)
[yjavac] public class TestoccController extends AddressController
[yjavac] ^^^^^^^^^^^^^^^^^
[yjavac] AddressController cannot be resolved to a type
[yjavac] ----------
[yjavac] 2 problems (2 errors)
BUILD FAILED
C:\hyb2011\hybris\core-customize\bin\platform\build.xml:13: The following error occurred while executing this line:
C:\hyb2011\hybris\core-customize\bin\platform\resources\ant\compiling.xml:75: The following error occurred while executing this line:
C:\hyb2011\hybris\core-customize\bin\platform\resources\ant\compiling.xml:133: The following error occurred while executing this line:
C:\hyb2011\hybris\core-customize\bin\platform\resources\ant\util.xml:13: The following error occurred while executing this line:
C:\hyb2011\hybris\core-customize\bin\platform\resources\ant\compiling.xml:140: The following error occurred while executing this line:
C:\hyb2011\hybris\core-customize\bin\platform\resources\ant\compiling.xml:313: The following error occurred while executing this line:
C:\hyb2011\hybris\core-customize\bin\platform\resources\ant\compiling.xml:518: The following error occurred while executing this line:
C:\hyb2011\hybris\core-customize\bin\platform\resources\ant\compiling.xml:569: The following error occurred while executing this line:
C:\hyb2011\hybris\core-customize\bin\platform\resources\ant\util.xml:84: Compile failed; see the compiler error output for details.
I can add other extensions to extensioninfo.xml and successfully refer to their components and build successfully.
The problem seems to be specific to commercewebservices.
Does anyone have a guess about what I am missing here?
Thanks
Request clarification before answering.
| 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.