AEM 6.2 restart issue | Community
Skip to main content
New Participant
July 19, 2016
Solved

AEM 6.2 restart issue

  • July 19, 2016
  • 3 replies
  • 1961 views

Hi All,

I am facing very weird issue, after I restart my AEM 6.2 server using start.bat or quickstart.bat some of my classes are not loading properly and I am getting this below error.

org.apache.sling.scripting.sightly.SightlyException: Cannot find a a file corresponding to class org.apache.sling.scripting.sightly.<component-path>.SightlyJava_page in the repository. at org.apache.sling.scripting.sightly.impl.compiler.SightlyJavaCompilerService.compileRepositoryJavaClass(SightlyJavaCompilerService.java:212) at org.apache.sling.scripting.sightly.impl.compiler.SightlyJavaCompilerService.getInstance(SightlyJavaCompilerService.java:113) at org.apache.sling.scripting.sightly.impl.engine.UnitLoader.createUnit(UnitLoader.java:103) at org.apache.sling.scripting.sightly.impl.engine.SightlyScriptEngine.evaluateScript(SightlyScriptEngine.java:91) at org.apache.sling.scripting.sightly.impl.engine.SightlyScriptEngine.eval(SightlyScriptEngine.java:78) at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:388) at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:184) at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:491) at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:546) at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:44)

But when I start my server by clicking on the AEM jar itself it works fine, any idea what could be reason for this.

Thanks,

Shehjad

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 pvr_reddy

Hi Shehjad,

I faced a similar problem,  it is resolved by setting the correct JDK version / JAVA_HOME.  the AEM 6.x version needs a minimum of Java 8 in its environment/path.

Please set those and the SIGHTLY issue should be resolved.

 

thanks

Venkat

3 replies

MC_Stuff
New Participant
May 15, 2017

Hi Shehjad,

In start up script mention the right java version to pick up.  Also retain only the latest jar at <cq_home>/crx-quickstart/app/cq-quickstart-6.x.x-standalone-quickstart.jar

Thanks,

pvr_reddyAccepted solution
New Participant
May 14, 2017

Hi Shehjad,

I faced a similar problem,  it is resolved by setting the correct JDK version / JAVA_HOME.  the AEM 6.x version needs a minimum of Java 8 in its environment/path.

Please set those and the SIGHTLY issue should be resolved.

 

thanks

Venkat

Jitendra_S_Toma
New Participant
July 19, 2016

Log does not help much, However, There are many configurations & API which are being loaded at the start of the AEM application. For instance, sling.properties file. This might be an issue in AEM 6.2

Raise a support ticket.

Regards,

Jitendra