Unable to load wknd project and core components with latest AEM and Project Archetype | Community
Skip to main content
Level 2
July 31, 2023
Solved

Unable to load wknd project and core components with latest AEM and Project Archetype

  • July 31, 2023
  • 4 replies
  • 3743 views

Hello everyone,

I am new to the AEM ecosystem and have recently attempted to install AEM quick start with author and publish environments. Everything appears to be working fine and I am able to view the retail site.

I am currently following this link

https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-wknd-tutorial-develop/project-archetype/project-setup.html?lang=en  to set up my project. However, after generating AEM for the wknd project, I am encountering dependency issues with core components and wknd sites as indicated below:

 

com.adobe.aem.guides.wknd.core.filters,version=[1.0,2) from aem-guides-wknd.core (590) com.adobe.aem.guides.wknd.core.listeners,version=[1.0,2) from aem-guides-wknd.core (590) com.adobe.aem.guides.wknd.core.schedulers,version=[1.0,2) from aem-guides-wknd.core (590) com.adobe.aem.guides.wknd.core.servlets,version=[1.0,2) from aem-guides-wknd.core (590) com.day.cq.wcm.api,version=[1.29,2) -- Cannot be resolved javax.annotation,version=0.0.0 from org.apache.geronimo.specs.geronimo-annotation_1.3_spec (2) javax.servlet,version=[3.1,4) from org.apache.felix.http.servlet-api (52) org.apache.sling.api,version=[2.3,3) from org.apache.sling.api (77) org.apache.sling.api.request,version=[2.4,3) from org.apache.sling.api (77) org.apache.sling.api.resource,version=[2.12,3) -- Cannot be resolved org.apache.sling.api.resource.observation,version=[1.2,2) from org.apache.sling.api (77) org.apache.sling.api.servlets,version=[2.3,3) -- Cannot be resolved org.apache.sling.models.annotations,version=[1.5,2) from org.apache.sling.models.api (543) org.apache.sling.models.annotations.injectorspecific,version=[1.1,2) from org.apache.sling.models.api (543) org.slf4j,version=[1.7,2) from slf4j.api (7)

 

com.day.cq.wcm.api,version=[1.29,2) -- Cannot be resolved
org.apache.sling.api.resource,version=[2.12,3) -- Cannot be resolved
org.apache.sling.api.servlets,version=[2.3,3) -- Cannot be resolved

Java and mvn version 
java -> 

java 11.0.19 2023-04-18 LTS

Java(TM) SE Runtime Environment 18.9 (build 11.0.19+9-LTS-224)

Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.19+9-LTS-224, mixed mode)
Maven 

Apache Maven 3.9.3 (21122926829f1ead511c958d89bd2f672198ae9f)

Generated project like 

 

mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \ -D archetypeGroupId=com.adobe.aem \ -D archetypeArtifactId=aem-project-archetype \ -D archetypeVersion=43 \ -D appTitle="WKND Sites Project" \ -D appId="wknd" \ -D groupId="com.adobe.aem.guides" \ -D artifactId="aem-guides-wknd" \ -D package="com.adobe.aem.guides.wknd" \ -D version="0.0.1-SNAPSHOT" \ -D aemVersion="6.5.17"

 

I could use some assistance in getting unblocked. Any help would be greatly appreciated.

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 aanchal-sikka

hello @rohitya2 

 

Please visit Software Distribution https://experience.adobe.com/#/downloads/content/software-distribution/en/aem.html?package=/content/software-distribution/en/details.html/content/dam/aem/public/adobe/packages/cq650/servicepack/aem-service-pkg-6.5.17.0.zip 

 

Download the package and Install it Via Package manager http://localhost:4502/crx/packmgr/

 

It will take some time. Please tail error.log for activity. Once it stabilizes a bit, please validate if the dependency errors aee resolved/

4 replies

aanchal-sikka
Community Advisor
Community Advisor
July 31, 2023

Hello @rohitya2 

 

Can you please share the following details? 

- AEM version

- Service pack used

 

The errors mean that there is a mismatch in the dependency that the code is expecting and whats available in AEM.  

 

Please assure that you are on AEM 6.5 + Service Pack 17. The maven command used has "6.5.17" as aemVersion

Aanchal Sikka
rohitya2Author
Level 2
July 31, 2023

AEM version:- 

Adobe Experience Manager (6.5.0) -> coming from [http://localhost:4502/system/console/status-productinfo]

In the command, I specified version 6.5.17, but I am unsure how to install the service pack for version 17. You mentioned sharing any helpful documentation or links, which would be greatly appreciated.

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
July 31, 2023

hello @rohitya2 

 

Please visit Software Distribution https://experience.adobe.com/#/downloads/content/software-distribution/en/aem.html?package=/content/software-distribution/en/details.html/content/dam/aem/public/adobe/packages/cq650/servicepack/aem-service-pkg-6.5.17.0.zip 

 

Download the package and Install it Via Package manager http://localhost:4502/crx/packmgr/

 

It will take some time. Please tail error.log for activity. Once it stabilizes a bit, please validate if the dependency errors aee resolved/

Aanchal Sikka
Tanika02
Level 7
July 31, 2023

Hello @rohitya2  - 

 

  • I can see that you used AEM Version as "6.5.17" but do you have the service package also installed on AEM instance?
  • Also, as per the tutorial link you shared it says, this tutorial uses the Maven AEM Project Archetype 35. However, you are using AEM archetype Version as 43

Correcting these should be solving the problem.

 

 

rohitya2Author
Level 2
July 31, 2023

Hello @tanika02, I have tried using the version specified in the documentation, but unfortunately, I encountered the same error. After conducting further investigation, I discovered new releases and their compatibilities. As a result, I adjusted the script to generate the project based on versions 43 and 6.5.17.

rohitya2Author
Level 2
July 31, 2023

I did tried this & the build is going successful. Check this should help.

 

Let me know if you face further difficulties.


Hi @tanika02  I tried this and the build was successful however in the web console errors are still there 😞 and so when trying to access the wknd site it fails with same error as before 

AsifChowdhury
Community Advisor
Community Advisor
July 31, 2023

Hi @rohitya2 

Please align your environment with the Adobe recommendation for the latest archetype.

Archetype Historical Supported AEM Versions: https://github.com/adobe/aem-project-archetype/blob/develop/VERSIONS.md 

rohitya2Author
Level 2
July 31, 2023

Hi ,@asifchowdhury, You're spot on. To make sure we're in sync with 43, we're using these versions

Java -> 11.0.19
mvn -> 3.9.3
AEM -> 6.5.17 [in the script]

Sady_Rifat
Community Advisor
Community Advisor
July 31, 2023

Hello @rohitya2 ,

With the previous discussion, you have a problem with the archetype and AEM SP version.

You can get confirmation with your SP version. Based on this version you need to setup your AEM project. For this you can check this documentation: https://github.com/adobe/aem-project-archetype/blob/develop/VERSIONS.md 

However, If your SP version is not the latest one you can download it from Software Distribution. 

https://experience.adobe.com/#/downloads/content/software-distribution/en/aem.html?package=/content/software-distribution/en/details.html/content/dam/aem/public/adobe/packages/cq650/servicepack/aem-service-pkg-6.5.17.0.zip 

To access this link may be you don't have that permission, ask your PM or Lead to download this for you.

Hope this helps you.

 

rohitya2Author
Level 2
July 31, 2023

Hi @sady_rifat  Sure let me check on that as well 🙂