Expand my Community achievements bar.

We Retail Reference Implementation Installation Issues

Avatar

Employee

I am trying to install the AEM We Retail reference Implementation by following the steps described in https://docs.adobe.com/docs/en/aem/6-2/develop/best-practices/we-retail.html

I installed all the necessary packages like aem-sample-we-retail-commons-master.zip & aem-sample-we-retail-we.retail-1.0.0 along with uber.jar. All my maven build are successful.

Command: mvn clean install -PautoInstallPackage

Although when I am accessing the following url: http://localhost:4502/editor.html/content/we-retail/language-masters/en.html

I am seeing component loading errors on the page.

The errors are:

1.

Caused by: org.apache.sling.scripting.sightly.SightlyException: Identifier emptylist.html cannot be correctly instantiated by the Use API
    at org.apache.sling.scripting.sightly.impl.engine.extension.use.UseRuntimeExtension.call(UseRuntimeExtension.java:89)
    at org.apache.sling.scripting.sightly.impl.engine.runtime.RenderContextImpl.call(RenderContextImpl.java:66)
    at org.apache.sling.scripting.sightly.apps.we_retail.components.content.articles_list.SightlyJava_articles_list.render(SightlyJava_articles_list.java:47)
    at org.apache.sling.scripting.sightly.impl.engine.runtime.RenderUnit.render(RenderUnit.java:54)
    at org.apache.sling.scripting.sightly.impl.engine.SightlyScriptEngine.evaluateScript(SightlyScriptEngine.java:92)
    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)
    ... 230 common frames omitted
Caused by: org.apache.sling.scripting.sightly.SightlyException: Cannot find a a file corresponding to class org.apache.sling.scripting.sightly.libs.wcm.foundation.components.list.SightlyJava_emptylist 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.extension.use.RenderUnitProvider.provide(RenderUnitProvider.java:91)
    at org.apache.sling.scripting.sightly.impl.engine.extension.use.UseRuntimeExtension.call(UseRuntimeExtension.java:84)
    ... 236 common frames omitted

 

2.

22.07.2016 10:39:52.572 *ERROR* [0:0:0:0:0:0:0:1 [1469164192288] GET /content/we-retail/language-masters/en.html HTTP/1.1] com.day.cq.wcm.core.impl.WCMDebugFilter Exception: org.apache.sling.scripting.sightly.SightlyException: Cannot find a a file corresponding to class org.apache.sling.scripting.sightly.libs.wcm.foundation.components.list.SightlyJava_list in the repository.
org.apache.sling.api.scripting.ScriptEvaluationException: org.apache.sling.scripting.sightly.SightlyException: Cannot find a a file corresponding to class org.apache.sling.scripting.sightly.libs.wcm.foundation.components.list.SightlyJava_list in the repository.
    at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:416)
    at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:184)

 

Pls. help me to resolve the errors. I researched little bit & found some issue links like https://issues.apache.org/jira/browse/SLING-5408.

Also by adding emptylist.html from /libs/wcm/foundation/components/list/emptylist.html to /apps/we-retail/components/content/articles-list/ fixes the 1st error.

Sources:

https://docs.adobe.com/docs/en/aem/6-2/develop/best-practices/we-retail.html

https://daycare.day.com/home/products/uberjar.html

https://github.com/Adobe-Marketing-Cloud/aem-sample-we-retail-commons

0 Replies