Adobe-Marketing-Cloud / aem-guides-wknd-events

Step by Step guide to creating a Single Page Application to use with AEM
48 stars 34 forks source link

Issue after finishing "Getting Started with React and AEM SPA Editor - Chapter 0" #53

Closed pankajchhatri closed 5 years ago

pankajchhatri commented 5 years ago

I am facing below issue after finishing chapter 0 (react)

org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: Compilation errors in org/apache/sling/scripting/sightly/apps/wknd002devents/components/structure/page/customheaderlibs_html.java: Line 28, column 1286 : Only a type can be imported. com.adobe.aem.guides.wkndevents.core.models.HierarchyPage resolves to a package Line 65, column 3042 : HierarchyPage cannot be resolved to a type

stlabelle commented 5 years ago

I have the same issue.

AEM: 6.4.0 Node: v10.14.1 Npm: 6.4.1 Maven: 3.6.1 Java: 1.8.0_161

godanny86 commented 5 years ago

Hi @pankajchhatri, @stlabelle you need to be on AEM 6.4 + at least Sevice Pack 2 in order to use the SPA Editor.

pankajchhatri commented 5 years ago

@godanny86 : I have aem 6.4 SP2, but still getting this error.

godanny86 commented 5 years ago

Hi @pankajchhatri if you navigate to the OSGi Console: http://localhost:4502/system/console, do you see that the WKND Events Core bundle is started and active:

image

Can you also verify that the Sling Model is properly registered by navigating to: http://localhost:4502/system/console/status-slingmodels and searching for the impl class: com.adobe.aem.guides.wkndevents.core.models.impl.HierarchyPageImpl

pankajchhatri commented 5 years ago

@godanny86 : My core bundle is active, but I found that the Sling Model is not registered properly. Any guess what can be a issue?

godanny86 commented 5 years ago

Hmm, thats strange...Can you post a screenshot of the bundle expanded? You should see something like Sling-Model-Packages: com.adobe.aem.guides.wkndevents.core under Manifest Headers...

Also can you try building and installing from some of the solution projects found here: https://github.com/Adobe-Marketing-Cloud/aem-guides-wknd-events/releases/tag/react-v1.1.0 ?

godanny86 commented 5 years ago

hi @pankajchhatri closing this issue due to inactivity, feel free to open if you have more information...