Expand my Community achievements bar.

SOLVED

Core Component issue

Avatar

Level 2

When I install the project using maven command and tried to add a component in the page. It is blank 

Maven command

mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetype Version=39 -D appTitle="Modern Creator" -D appId="moderncreator" -D groupId="com.modern.creator" -D aemVersion=6.5.13 -D singleCountry=n

 

Core Component Details

Symbolic Namecom.adobe.cq.core.wcm.components.core
Version2.19.0

 

Error

In system console I could see the core bundle is in installed state.

Imported Packages

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

 

Punitha77_0-1705880252470.png

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Punitha77 ,

Please install AEM Service Package 13 or above on the author/publish instance where you are trying to build and install this code.

View solution in original post

11 Replies

Avatar

Level 8

Hi @Punitha77 

Go to localhost:4502/welcome  check the AEM version.

go to localhost:4502/system/console/bundles.  check the core.wcm version. this should be proper one. if possible, add the error.log file content here.

Avatar

Community Advisor

Hi @Punitha77 

The issues you're facing seem to be related to incompatible package versions within your AEM project. Here's a breakdown of the problem and steps to fix it:

 

Problem:

  1. Missing Dependencies: Your Core Component ("com.adobe.cq.core.wcm.components.core") version (2.19.0) requires specific versions of certain packages that are not present or incompatible with your project.
  2. Incompatible Package Versions: The error message in the System Console points out missing or incompatible versions of com.day.cq.wcm.api, org.apache.sling.api.resource, and org.apache.sling.api.servlets.

Solution:

  1. Verify Dependencies: Check the dependencies of your Core Component in the JCR repository (e.g., using CRXDE Lite) or refer to the component's documentation.
  2. Update Dependencies: Make sure your project's pom.xml file includes dependencies for the required packages with compatible versions.
  3. Use Dependency Management: Leverage Maven dependency management tools like dependencyManagement or dependencyConflictId in your pom.xml to handle conflicting versions effectively.
  4. Clean Maven Cache: Sometimes, the issue might be due to a stale Maven cache. Try running mvn clean install before deploying your project again.

I Hope this helps.

Thanks 

Avatar

Administrator

@Punitha77 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni

Avatar

Correct answer by
Community Advisor

@Punitha77 ,

Please install AEM Service Package 13 or above on the author/publish instance where you are trying to build and install this code.

Avatar

Community Advisor

Hi @Punitha77 ,

Can you please check if your uber jar version is compatible with the AEM instance version also make sure you have service pack 13 installed in your AEM.

Once the above check id one then  try to restart the lower environments - http://localhost:4502/system/console/vmstat#

Thanks
Tarun

Avatar

Level 1

I have installed service package and it helped and when try to restart the lower environments - http://localhost:4502/system/console/vmstat# it crashed

 

Thanks @TarunKumar 

 

Regards,

Punitha

Avatar

Community Advisor

Hi @Punitha_s ,

Usually it takes 5-10 min for server to start and keep running once the service pack is installed.

Avatar

Administrator

@Punitha77 Do the recommendations provided by the community members prove useful for you? Alternatively, if you've resolved this yourself, could you share the details with the community for posterity?



Kautuk Sahni