Hi @nitishku5 ,
Root Cause:
When pages appear blank in AEM after generating a new project (especially with Archetype 51), it typically means:
- The template or page component is not correctly linked or missing.
- The core components version may be mismatched or incorrectly configured.
- No content is being rendered due to either a missing cq:template, cq:allowedTemplates, or missing body.html.
Try below steps:
1. Verify Template Association
- Ensure that your page has a template assigned:
Go to CRXDE Lite: http://localhost:4502/crx/de
- Navigate to:
/content/MyDemoSite/language-masters/en/jcr:content
- Check property:
cq:template — should point to something like:
/conf/mydemosite/settings/wcm/templates/your-template
If it's missing your page has no rendering base.
2. Check Template's Structure
Go to the template path (from cq:template) and verify:
- Under /conf/.../templates/your-template/structure/jcr:content, make sure:
- sling:resourceType is set properly (e.g., mydemosite/components/page/homepage)
- That component exists under /apps/mydemosite/components/page/homepage
- body.html (or html.html) exists under that path
3. Ensure Component Has html.html
The component specified in the page’s sling:resourceType must contain:
/apps/mydemosite/components/page/homepage/html.html
Or:
/apps/mydemosite/components/page/homepage/body.html
Without this file, nothing will render.
4. Confirm Core Components Dependency
In your core/pom.xml, make sure you're using the right version of Core Components:
<dependency>
<groupId>com.adobe.cq.core.components</groupId>
<artifactId>core.wcm.components.core</artifactId>
<version>2.27.0</version> <!-- Match your SDK version -->
<scope>provided</scope>
</dependency>
Match this with your SDK — don’t mix 2.28.0 and 2.27.0.
5. Rebuild and Deploy Again
After verifying above:
mvn clean install -PautoInstallSinglePackage
Then:
- Refresh page in Author
- Or, open /content/MyDemoSite/language-masters/en.html in "View as Published" mode
If it’s still blank:
Go to: /crx-quickstart/logs/error.log
Search for Could not find render, Missing resource, or 500
Regards,
Amit