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.
arunpatidar
arunpatidarAccepted solution
New Participant
Sep 11, 2018 12:35 PM UTC

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

14 replies

smacdonald2008
Level 10
Sep 11, 2018 2:03 PM UTC

I also tested on AEM 6.4 --

Translate
熊先森Author
New Participant
Sep 11, 2018 12:44 PM UTC

thank you

it worked

Translate
熊先森Author
New Participant
Sep 11, 2018 12:43 PM UTC

wow thank you very much

Translate
smacdonald2008
Level 10
Sep 11, 2018 12:38 PM UTC

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.

Translate
熊先森Author
New Participant
Sep 11, 2018 12:36 PM UTC

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

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Sep 11, 2018 12:35 PM UTC

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;

Translate
Arun Patidar
熊先森Author
New Participant
Sep 11, 2018 12:28 PM UTC

yes  
because i use these Servlet can receive resolverFactory

Translate
熊先森Author
New Participant
Sep 11, 2018 12:25 PM UTC

Translate
joerghoh
Employee
Sep 11, 2018 12:17 PM UTC

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

Jörg

Translate