Expand my Community achievements bar.

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

Avatar

Level 2

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

3 Replies

Avatar

Community Advisor

@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.

Avatar

Community Advisor

Hi @MeghaGo 

Error says - PageUtils cannot be resolved

Can you check if this Class is resolved?



Arun Patidar

Avatar

Community Advisor

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