on ‎2019 Jun 30 3:08 PM
Created the custom storefrontcommons and after replacing this new extensions and updating the extensions info xml , its giving build error to the existing acceleratorstorefrontcommons as below -
15:12:31 [yjavac] public class AcceleratorstorefrontcommonsConstants extends GeneratedAcceleratorstorefrontcommonsConstants 15:12:31 [yjavac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:12:31 [yjavac] GeneratedAcceleratorstorefrontcommonsConstants cannot be resolved to a type 15:12:31 [yjavac] ---------- 15:12:31 [yjavac] ---------- 15:12:31 [yjavac] 2. ERROR in /home/jenkins/build/Hybris/MAF_Hybris_Prototype_DEV4_B2B_MasterOnlyOJDB7/hybris/bin/ext-accelerator/acceleratorstorefrontcommons/src/de/hybris/platform/acceleratorstorefrontcommons/jalo/AcceleratorstorefrontcommonsManager.java (at line 18) 15:12:31 [yjavac] public class AcceleratorstorefrontcommonsManager extends GeneratedAcceleratorstorefrontcommonsManager 15:12:31 [yjavac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:12:31 [yjavac] GeneratedAcceleratorstorefrontcommonsManager cannot be resolved to a type 15:12:31 [yjavac] ---------- 15:12:31 [yjavac] 3. ERROR in /home/jenkins/build/Hybris/MAF_Hybris_Prototype_DEV4_B2B_MasterOnlyOJDB7/hybris/bin/ext-accelerator/acceleratorstorefrontcommons/src/de/hybris/platform/acceleratorstorefrontcommons/jalo/AcceleratorstorefrontcommonsManager.java (at line 26) 15:12:31 [yjavac] return (AcceleratorstorefrontcommonsManager) em.getExtension(AcceleratorstorefrontcommonsConstants.EXTENSIONNAME); 15:12:31 [yjavac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:12:31 [yjavac] Cannot cast from Extension to AcceleratorstorefrontcommonsManager 15:12:31 [yjavac] ---------- 15:12:31 [yjavac] 3 problems (3 errors) 15:12:31 15:12:31 BUILD FAILED
Request clarification before answering.
Hi - please execute ant clean all and see if it works.
If the problem persists, please mention which template did you choose to generate the extension and what changes did you make in the extensioninfo.xml.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Problem is I am not able to create the new extentions by using acceleratorstorefrontcommons as template with package name below :
de.hybris.platform.acceleratorstorefrontcommons
EXTGEN.properties
YEXTNAME_TOKEN=acceleratorstorefrontcommons YPACKAGE_TOKEN=de.hybris.platform.acceleratorstorefrontcommons YMANAGER_TOKEN=YacceleratorstorefrontcommonsManager YCLASSPREFIX_TOKEN=Acceleratorstorefrontcommons
To be precise new extensions is getting created but the package is with new extension name which I am providing and not de.hybris.platform.acceleratorstorefrontcommons
As you must be already aware, it's not a template extension. If you want to apply some patch to it, you can use ant customize feature.
If at all you want to create a new extension based on this, please use the following in the extgen.properties:
YEXTNAME_TOKEN=acceleratorstorefrontcommons
YPACKAGE_TOKEN=acceleratorstorefrontcommonspackage
YMANAGER_TOKEN=YManager
YCLASSPREFIX_TOKEN=YAcceleratorstorefrontcommons
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 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.