# Trouble using EventListener in plugin

**URL:** <https://community.developer.atlassian.com/t/trouble-using-eventlistener-in-plugin/12006>\
**Category:** Jira Server\
**Tags:** jira-server\
**Created:** [December 5, 2017, 5:43am UTC](https://community.developer.atlassian.com/t/trouble-using-eventlistener-in-plugin/12006 "2017-12-05T05:43:06Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![teddy.koker](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@teddy.koker](https://community.developer.atlassian.com/u/teddy.koker)\
**Post date:** [December 5, 2017, 6:23am UTC](https://community.developer.atlassian.com/t/trouble-using-eventlistener-in-plugin/12006/3 "2017-12-05T06:23:21Z")

</div>

Hey @acalantog,

Thanks for the help! I initially tried using that tutorial, but `atlas-run` would not work with `<component>` or `<component-import>` in the `atlassian-plugin.xml` file. The [fix](https://community.developer.atlassian.com/t/this-is-not-allowed-when-atlassian-plugin-key-is-set/3117) for this would seem to be using [Spring Scanner](https://bitbucket.org/atlassian/atlassian-spring-scanner) annotations which can be seen above using `@ComponentImport`

Thank you for you time,  
Teddy

---

_[View the full topic](https://community.developer.atlassian.com/t/trouble-using-eventlistener-in-plugin/12006)._
