Error during include of component '/apps/wknd/components/content/helloworld'

jasonj45687155 15-01-2020

Error Message: Cannot get DefaultSlingScript: Compilation errors in org/apache/sling/scripting/sightly/apps/wknd/components/content/helloworld/ Line 52, column 2348 : com.adobe.aem.guides.wknd.core.models.HelloWorldModel cannot be resolved to a type

Anyone have an idea to solve this error? 

components sling

Accepted Solutions (1)

Accepted Solutions (1)

uroa 15-01-2020

Try deleting your bundle in OSGi and install it again. Go to your core directory and run this command:


mvn -PautoInstallBundle clean install


Answers (1)

Answers (1)

arpitv27529355 15-01-2020

Hi @jasonj45687155 

Can you make sure below point:


In order for these classes to be picked up, there is a header which must be added to the bundle's manifest(pom.xml):


This header must contain all packages which contain model classes or interfaces. However, subpackages need not be listed individually, e.g. the header above will also pick up model classes in Multiple packages can be listed in a comma-separated list (any whitespace will be removed):





Arpit Varshney