# Error with org.springframework dependency in my plugin

**URL:** <https://community.developer.atlassian.com/t/error-with-org-springframework-dependency-in-my-plugin/34179>\
**Category:** Jira Server\
**Created:** [December 10, 2019, 6:25pm UTC](https://community.developer.atlassian.com/t/error-with-org-springframework-dependency-in-my-plugin/34179 "2019-12-10T18:25:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdamDing](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@AdamDing](https://community.developer.atlassian.com/u/AdamDing)\
**Post date:** [December 10, 2019, 6:25pm UTC](https://community.developer.atlassian.com/t/error-with-org-springframework-dependency-in-my-plugin/34179/1 "2019-12-10T18:25:44Z")

</div>

What’s poppin’ guys.

I am trying to create a listener for a comment event for a plugin following [this tutorial](https://developer.atlassian.com/server/jira/platform/writing-jira-event-listeners-with-the-atlassian-event-library/)

But I get the following error:

[ERROR] Found a type [org.springframework.stereotype.Repository] annotated as a component, but the type is not a concrete class. NOT adding to index file!!  
[ERROR] Found a type [org.springframework.stereotype.Service] annotated as a component, but the type is not a concrete class. NOT adding to index file!!  
[ERROR] Found a type [org.springframework.stereotype.Controller] annotated as a component, but the type is not a concrete class. NOT adding to index file!!  
[ERROR] Found a type [org.springframework.context.annotation.Configuration] annotated as a component, but the type is not a concrete class. NOT adding to index file!!

I tried to solve the issue by adding

\<includeExclude\>-org.springframework.\*\</includeExclude\>

which solved the same error but for com.atlassian.plugin.spring.scanner.annotation, but it did not work.

Thanks in advance!
