Issues with activating the models.



Hello Community - I have some issues with the bundles which is causing the issues with authoring the components in the project. The bundle has several sling models and servlets in it. If I install the same bundle in my local, I am able to successfully activate the bundles, activate the models and servlets without any issues. In the case of installing in higher environments, we are having issues with the bundles. Even though the bundles are active status and also all the dependencies are resolved without any issues, I see the below errors in the logs. I have even verified the model status (/system/console/status-adapters) and the model is available. AEM version (6.5) is same in my local and higher environments.Could some please help with this issue.


Caused by: Compilation errors in org/apache/sling/scripting/sightly/apps/test/components/content/testproduct/
Line 41, column 1953 : cannot be resolved to a type


I have run Maven clean install multiple times with no luck.


mvn -B archetype:generate -D archetypeGroupId=com.adobe.granite.archetypes -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=23 -D aemVersion=6.5.0 -D appTitle="Company Components" -D appId="company components" -D groupId="" -D frontendModule=none -D includeExamples=n -D includeDispatcherConfig=n

Accepted Solutions (1)

Accepted Solutions (1)




Hi @viki1101,

Given that the problem is only with higher environments and same model class works fine in local, I suggest to restart the below bundles once and try. 

If it is reproducible in all higher environments, I suggest to try first in immediate higher environment to local/DEV

Highlighted in red are the bundles related to HTL. The ones in green are responsible for compiling HTL files and converting to Java class.

Perhaps you can try green first and then followed by rest only if it is not solvable with ones in green. 



Answers (0)