Skip to main content
azaquan
Level 2
July 18, 2018
Solved

WKND tutorial AEM 6.4 part 6

Hi guys,

I have been trying to find out a problem I found on part 6 on the tutorial. For some reason I'm getting this error when deploying the code (to try I actually took the master branch code from the tutorial Getting Started with AEM Sites Part 6 - Sling Models and Card Component

The Maven build goes fine but when open the page either with the editor.html or on preview I get the following errors?

org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: Compilation errors in org/apache/sling/scripting/sightly/apps/wknd/components/content/card/card_html.java: Line 28, column 1270 : Only a type can be imported. com.adobe.aem.guides.wknd.core.components.Card resolves to a package Line 46, column 2020 : Card cannot be resolved to a type

Cannot serve request to /content/wknd/en.html on this server

ApacheSling/2.6 (jetty/9.3.22.v20171030, Java HotSpot(TM) 64-Bit Server VM 1.8.0_171, Mac OS X 10.13.5 x86_64)

At first I thought I did something wrong but then I started from a brand new AEM 6.4 install and got the clean code from the repo and build and also added the content packages provided by the tutorial and still got the errors.

Please advise,

Juan

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
July 19, 2018

I am going through the artilce and all the code seems to work and compile.

13 replies

smacdonald2008
Level 10
July 19, 2018

Also - all content my team does - i post to my blog here -- Scott's Digital Community

Translate
azaquan
azaquanAuthor
Level 2
July 19, 2018

I really appreciate your great support

Translate
sau0201
January 28, 2019

hey,

I am getting the same issue. How did you resolve it?

Thanks

Translate