cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

GeneratedAcceleratorstorefrontcommonsConstants cannot be resolved to a type

shrikant_nikam
Participant
0 Likes
894

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

View Entire Topic
arvind-kumar_avinash
Active Contributor
0 Likes

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.

shrikant_nikam
Participant
0 Likes

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

arvind-kumar_avinash
Active Contributor
0 Likes

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
shrikant_nikam
Participant
0 Likes

Perfecto !! this is what I was looking for I was using - worked

YPACKAGE_TOKEN=de.hybris.platform.acceleratorstorefrontcommons

arvind-kumar_avinash
Active Contributor
0 Likes

You are most welcome. You can accept the answer so that others can also use it confidently.