adobe / aem-component-generator

AEM Component Generator is a java project that enables developers to generate the base structure of an AEM component using a JSON configuration file specifying component and dialog properties and other configuration options.
Apache License 2.0
113 stars 46 forks source link

No use provider could resolve identifier #59

Open meghapatil0312 opened 1 year ago

meghapatil0312 commented 1 year ago

i am taking data from json using js,servlet and htl in AEM but i am getting below error

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.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: No use provider could resolve identifier content/dam/employee/employees.json

i think there is issue with bundles ( but i have active bundles)in that i cant see my core files and also in target folder there is no data comping from backend only frontend data it there. Can you help me with this?

HitmanInWis commented 1 year ago

Hi @meghapatil0312. Is your project using the default AEM project archetype? Do yo have other sling models deployed, or is this your first attempt at deploying sling models?

I don't believe your issue would be related to the generator itself, but happy to help if I or one of my colleagues can.

meghapatil0312 commented 1 year ago

Yes we are using the default AEM project archetype. And in this project i deployed the first sling model.

HitmanInWis commented 1 year ago

If you're not seeing the core files in your target folder, it sounds like it might have to do with the build command you're using or maybe even an issue in pom.xml files. At any rate, if you're unable to figure out the problem, perhaps a quick screen share could help get this sorted. Feel free to reach out to me on LinkedIn - https://www.linkedin.com/in/brettbirschbach/