how to use EventHandler | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Hi,

You are mixing osgi and Felix annotation.

Please use only osgi annotaions

remove org.apache.felix.scr.annotations.Reference and use import org.osgi.service.component.annotations.Reference;

14 replies

smacdonald2008
New Participant
September 11, 2018

I also tested on AEM 6.4 --

熊先森Author
New Participant
September 11, 2018

thank you

it worked

熊先森Author
New Participant
September 11, 2018

wow thank you very much

smacdonald2008
New Participant
September 11, 2018

See the artilce i just posted. Go through it and make it work. I will update this too include a video so you can see it working.

熊先森Author
New Participant
September 11, 2018

i have to use this EventListener
but  i  need  listener many  pages publish
so i dont know  how to use this

arunpatidar
arunpatidarAccepted solution
New Participant
September 11, 2018

Hi,

You are mixing osgi and Felix annotation.

Please use only osgi annotaions

remove org.apache.felix.scr.annotations.Reference and use import org.osgi.service.component.annotations.Reference;

Arun Patidar
熊先森Author
New Participant
September 11, 2018

yes  
because i use these Servlet can receive resolverFactory

熊先森Author
New Participant
September 11, 2018

joerghoh
Employee
September 11, 2018

Have you used the Maven Archetype to boostrap your AEM project?

Jörg