com.adobe.aem.spa.project.core.models.Page cannot be resolved to a type | Community
Skip to main content
Level 2
August 17, 2021
Solved

com.adobe.aem.spa.project.core.models.Page cannot be resolved to a type

  • August 17, 2021
  • 3 replies
  • 10477 views
Failed executing script /libs/cq/Page/Page.jsp: Cannot get DefaultSlingScript: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: Compilation errors in org/apache/sling/scripting/sightly/apps/projectx/components/structure/react__002d__page/customheaderlibs__002e__html.java: Line 61, column 2865 : com.adobe.aem.spa.project.core.models.Page cannot be resolved to a type

When I 'view as published' my page it's giving me that issue:

Added this to my pom.xml

<!-- SPA Project Core (includes hierarchy page model) --> <dependency> <groupId>com.adobe.aem</groupId> <artifactId>spa.project.core.ui.apps</artifactId> <type>zip</type> <version>${spa.project.core.version}</version> </dependency> <dependency> <groupId>com.adobe.aem</groupId> <artifactId>spa.project.core.core</artifactId> <version>${spa.project.core.version}</version> </dependency>

 

<aem.sdk.api>2021.7.5662.20210726T181801Z-210700</aem.sdk.api>
<spa.project.core.version>1.3.0</spa.project.core.version>

 Can you anyone to point me to direction on how can resolve this?

Thank you!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Asutosh_Jena_

Hi @iambongbox 

 

Please check in system console and ensure all the bundles are in active state.

http://localhost:4502/system/console/bundles

 

If you are using core component ensure the latest version of core component is included on the POM file and the same has been installed on AEM instance.

 

If the project is running on AEM 6.5.X instance ensure the required version of uber jar i.e., same as AEM version is added as a dependency and is installed on AEM.

 

Thanks!

3 replies

Kishore_Kumar_
Level 9
August 18, 2021

hi @iambongbox ,

 

Can you please check if your bundles all are active.

 

host:port/system/console/bundles

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
August 18, 2021

Hi @iambongbox 

 

Please check in system console and ensure all the bundles are in active state.

http://localhost:4502/system/console/bundles

 

If you are using core component ensure the latest version of core component is included on the POM file and the same has been installed on AEM instance.

 

If the project is running on AEM 6.5.X instance ensure the required version of uber jar i.e., same as AEM version is added as a dependency and is installed on AEM.

 

Thanks!

Level 2
August 18, 2021

@asutosh_jena_ how can I can check what version of core component is installed to my AEM instance?

Thank you for your help.

Asutosh_Jena_
Community Advisor
Community Advisor
August 18, 2021

Hi @iambongbox 

 

You can check in system/console using the below name:

Adobe Experience Manager Core WCM Components Core Bundle

(com.adobe.cq.core.wcm.components.core)

Adobe Employee
February 1, 2023

Hi @iambongbox / @asutosh_jena_ ,

 

I didn't see a solution for this issue in this discussion. Is it resolved, Kindly share the steps to resolve this issue. Let me explain our problem below.

 

We are performing AEM to AEM as a cloud service upgrade and found in the BPA report "spa-project-core:spa.project.core.all:1.3.16" is not compatible because it contains both mutable and immutable content which will cause problems during deployment. We could not find its AEM as a cloud service version, so what is needed or alternate option to fix this.

Level 2
March 30, 2023

I am also facing the same issue. any solution ??