Expand my Community achievements bar.

SOLVED

AEM 6.2 restart issue

Avatar

Level 4

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

1 Accepted Solution

Avatar

Correct answer by
Level 2

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

View solution in original post

3 Replies

Avatar

Level 9

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

Avatar

Correct answer by
Level 2

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

Avatar

Level 9

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,