Pages are appearing white while migrating code from on-premise to cloud | Community
Skip to main content
Level 2
December 20, 2024
Solved

Pages are appearing white while migrating code from on-premise to cloud

  • December 20, 2024
  • 4 replies
  • 805 views

Hi,

I am performing migration from AEM 6.5 on premise to AEM cloud. I have added required dependencies and the build is successful. But after deploying the code in my local, the site pages are appearing white and below error is getting caught in error.log:

GET /content/myProject/pageabc.html org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException
org.apache.sling.scripting.jsp.jasper.JasperException: Unable to compile class for JSP: __An error occurred at line: 6 in the jsp file: /apps/myproject/components/page/basepage/basepage.jsp_PageUtils cannot be resolved_3: <%_4: // read the redirect target from the 'page properties' and perform the_5: // redirect if WCM is disabled._6: String location = PageUtils.getResolvedPath(properties.get(PageUtils.STR_REDIRECT_TARGET, ""), "", slingRequest, pageContext);_7: boolean isRedirectPage = false;_8: _9: if (location.length() > 0) { ___An error occurred at line: 6 in the jsp file: /apps/myproject/components/page/basepage/basepage.jsp_PageUtils.STR_REDIRECT_TARGET cannot be resolved to a type_3: <%_4: // read the redirect target from the 'page properties' and perform the_5: // redirect if WCM is disabled._6: String location = PageUtils.getResolvedPath(properties.get(PageUtils.STR_REDIRECT_TARGET, ""), "", slingRequest, pageContext);_7: boolean isRedirectPage = false;_8: _9: if (location.length() > 0) { ___An error occurred at line: 21 in the jsp file: /apps/myproject/components/page/basepage/basepage.jsp_PageUtils cannot be resolved_18

Best answer by Kamal_Kishor

@meghago : Please check if all of your OSGi bundle are in active state.
Next, check your logs and it should tell where is the issue coming from, one of the issue is - PageUtils cannot be resolved.
thanks.

4 replies

Kamal_Kishor
Community Advisor
Kamal_KishorCommunity AdvisorAccepted solution
Community Advisor
December 20, 2024

@meghago : Please check if all of your OSGi bundle are in active state.
Next, check your logs and it should tell where is the issue coming from, one of the issue is - PageUtils cannot be resolved.
thanks.

arunpatidar
Community Advisor
Community Advisor
December 20, 2024

Hi @meghago 

Error says - PageUtils cannot be resolved

Can you check if this Class is resolved?

Arun Patidar
Nupur_Jain
Adobe Employee
Adobe Employee
December 20, 2024

Hi @meghago 

 

The error you have pasted is incomplete. Could you please attach the full error log.

 

Moreover, look like there is some exception in one of the java files  which is turn leads to unable to compile error.

 

Thanks,

Nupur

kautuk_sahni
Community Manager
Community Manager
January 7, 2025

@meghago Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni