Solved
Java Use-API: No use provider could resolve identifier
Hi everybody,
I'm experimenting with the new Java Use-API [1] but I'm having trouble getting it to work.
- I have a component here: /apps/abc/components/modular/C03-topbanner/
- Following the instructions, I put my .java file here: /apps/abc/components/modular/C03-topbanner/C03_topbanner.java
- The package name in the java file is: apps.abc.components.modular.c03_topbanner (replacing the - with _ as described)
- The class name is C03_topbanner
- Within my sightly file (/apps/abc/components/modular/C03-topbanner/C03-topbanner.html) I'm calling it like so: data-sly-use.topbanner="c03_topbanner"
- This gets me the extension: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: No use provider could resolve identifier: c03_topbanner
- I've tried a few variation with file/package/class names but it never seems to work... The way I understand it from the docs is that just the package name has to be the same as the use class
Any ideas what I could be missing?
[1] http://docs.adobe.com/docs/en/aem/6-0/develop/sightly/use-api-in-java.html