Expand my Community achievements bar.

Compilation errors: com.adobe.cq.forms.core.components.models.form.FormStructureParser cannot be resolved to a type

Avatar

Level 1

Hello,

 

I'm following the guide to enable form core components (https://experienceleague.adobe.com/en/docs/experience-manager-65/content/forms/adaptive-forms-core-c...

 

MVN build works ok, but when I go and create a new Adaptive Form, I get the below error:

Compilation errors in org/apache/sling/scripting/sightly/apps/myform/components/adaptiveForm/page/customheaderlibs__002e__html.java: Line 43, column 2006 : com.adobe.cq.forms.core.components.models.form.FormStructureParser cannot be resolved to a type

 

I'm using the below versions in my pom.xml:

<core.wcm.components.version>2.24.6</core.wcm.components.version>
<core.forms.components.version>1.1.66</core.forms.components.version>
<core.forms.components.af.version>1.1.66</core.forms.components.af.version>

 

Thanks,

David

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

7 Replies

Avatar

Employee

Hi David,
Since you are referring to 6.5 article, I am assuming you are on AEM 6.5.

Can you check if the forms core component bundles Adaptive Forms Core API (com.adobe.aemds.guide.aemds-guide-core) and Adaptive Forms Core Implementation (com.adobe.aemds.guide.aemds-guide-core-impl) are active?

Update:
check if the forms core component bundles are active.

  • com.adobe.aem.core-forms-components-core
  • com.adobe.aem.core-forms-components-af-core

Avatar

Moderator

@DavidNg6 , Did you get a chance to check if the forms core component bundles Adaptive Forms Core API (com.adobe.aemds.guide.aemds-guide-core) and Adaptive Forms Core Implementation (com.adobe.aemds.guide.aemds-guide-core-impl) are active?

Avatar

Level 1

Hi Sakshi,

Correct I'm using AEM 6.5 - SP 22

DavidNg6_1-1748939466385.png

 

Both bundles are active in my local AEM but still show the error 

DavidNg6_0-1748939418035.png

 

Any other idea? 

 

Thanks for the help

Avatar

Employee

@DavidNg6 Could you confirm if you have restarted the server after installing the core-components bundle. Also, please confirm if below bundles are installed and in active state:

  • com.adobe.aem.core-forms-components-core
  • com.adobe.aem.core-forms-components-af-core

Note: The class is exported by the bundle: core-forms-components-af-core

 

In case you do not have these bundles installed - please confirm - the archetype version, and if forms is enabled while creating the archetype (for existing archetype you may need to make similar changes manually).

Avatar

Level 1

Hi Sudhansh,

 

The above bundles are not active. Seems that have some imported packages issue.

 

DavidNg6_0-1749449837451.png

DavidNg6_1-1749449846602.png

 

I'm using the archetype suggested in this document: https://experienceleague.adobe.com/en/docs/experience-manager-65/content/forms/adaptive-forms-core-c...

 

Thanks,

David

 

 

Avatar

Employee

@DavidNg6 Which version of 6.5 are you on?

Core components on 6.5 is supported from 6.5.16 or later.

Just change the 

 -D aemVersion="6.5.15"

 in the archetype command to generate project for specific AEM service pack. 

Avatar

Level 1

Hi Sakshi,

 

I'm 6.5.22. Will try changing the suggested aemVersion when creating the project