title: JCR - EventListener - activate method not found - Adobe CQ 5.6.0
body: <p>I'm trying to implement an EventListener to propagate some JCR changes (property changed, node added ...). </p>
  
  <p>This topic has been discussed in a number of posts but different implementations are available and I'm inclinded to describe the nitty gritty details on the required annotation as a very well kept secret.   </p>
  
  <p>SlingRepository is annotated without specific properties in following document: <a href="http://experiencedelivers.adobe.com/cemblog/en/experiencedelivers/2012/04/event_handling_incq.html" rel="nofollow">http://experiencedelivers.adobe.com/cemblog/en/experiencedelivers/2012/04/event_handling_incq.html</a> </p>
  
  <p>and Component annotation has been set the following way:  </p>
  
  <pre><code>@Component
  public class JCRListener implements EventListener{
  }
  </code></pre>
  
  <p>With this flavor, I'm able to install my bundle from the Adobe CQ Web Console but my Active and Deactive methods are not triggered. </p>
  
  <p>SlingRepository is annotated with specific properties (policy = ReferencePolicy.STATIC, cardinality = ReferenceCardinality.MANDATORY_UNARY) in following document: <a href="https://groups.google.com/forum/#!topicsearchin/day-communique/postEvent%7Csort:date%7Cspell:true/day-communique/BvJsgMzpsAM" rel="nofollow">https://groups.google.com/forum/#!topicsearchin/day-communique/postEvent%7Csort:date%7Cspell:true/day-communique/BvJsgMzpsAM</a> </p>
  
  <p>and Component annotation has a specific setting </p>
  
  <pre><code>@Component(immediate=true)
  @Service
  public class JCRListener implements EventListener{
      @Activate
      public void activate(ComponentContext componentContext){
        .... 
      } 
      @Deactivate
      public void deactivate(ComponentContext componentContext){
        .... 
      } 
      public void onEvent(EventIterator events) {
       .... 
      }
  } 
  </code></pre>
  
  <p>With this flavor, the deployment of my bundle fails and I'm getting the error <strong>[com.adobe.cq.JCRListener] activate method [activate] not found; Component will fail</strong></p>
  
  <p>Any help is very much appreciated. </p>
  
  <p>BTW, does someone know the status of the adobe forum site (<a href="http://help-forums.adobe.com/content/adobeforums/en.html" rel="nofollow">http://help-forums.adobe.com/content/adobeforums/en.html</a>)??? We are inclined to believe the web site is not often available .... </p>
  
  <p>Wim </p>