problem with development of plugin for jira 5

Hi. We write plugin for jira 5.0.6 and we get one error: MyService doesn't have any satisfiable constructors.

rather now:

SearchSoapServiceImpl doesn't have any satisfiable constructors. Unsatisfiable dependencies: [[interface com.atlassian.jira.rpc.auth.TokenManager, interface com.atlassian.jira.rpc.soap.service.ProjectService, interface com.atlassian.jira.rpc.soap.service.IssueService, interface com.atlassian.jira.rpc.soap.service.UserService, interface com.atlassian.jira.rpc.soap.service.SchemeService, interface com.atlassian.jira.rpc.soap.service.AdminService, interface com.atlassian.jira.rpc.soap.service.SearchService, interface com.atlassian.jira.rpc.soap.service.ProjectRoleService, interface com.atlassian.jira.rpc.soap.service.IssueConstantsService, interface com.atlassian.jira.rpc.soap.JiraSoapService]]

Our constructor

public SearchSoapServiceImpl(TokenManager tokenManager,

ProjectService projectService,

IssueService issueService,

UserService userService,

SchemeService schemeService,

AdminService adminService,

SearchService searchService,

ProjectRoleService projectRoleService,

IssueConstantsService issueConstantsService) {

this.tokenManager = tokenManager;

this.projectService = projectService;

this.issueService = issueService;

this.userService = userService;

this.schemeService = schemeService;

this.adminService = adminService;

this.searchService = searchService;

this.projectRoleService = projectRoleService;

this.issueConstantsService = issueConstantsService;


and atlassian-plugin.xml

<atlassian-plugin key="my_company" name="Search Soap Plugin" plugins-version="2">


<description>Search Soap Plugin</description>



<component key="component-FoobarSoapService" name="Search SOAP Service Component"

class=" net.my_company .SearchSoapServiceImpl">

<interface> net.my_company .SearchSoapService</interface>


<rpc-soap key="soap-search" name="Search SOAP Service" class="net.my_company.SearchSoapServiceImpl">

<description>Search SOAP service.</description>


<published-interface>net. my_company .SearchSoapService</published-interface>


<rpc-xmlrpc key="xmlrpc" name="System XML-RPC Services"


<description>The standard JIRA XML-RPC services.</description>




4 answers

1 accepted

I'm not convinced. Get the atlassian SDK, do an 'atlas-create-jira5-plugin'. Compare the generated pom.xml with your pom, reread my comment above and update your pom, let me know how you get on after you've added jira-api as a provided scope dependency. In a nutshell you are writing a p2 plugin, it needs to specifically import packages as its running in an OSGi container. Atlassian SDK helps IF you follow the rules :)

I think this can happen if your plugin doesnt import the necessary packages. What is your pom.xml packaging (should be atlassian-plugin), assuming also you have jira-api added in provided scope, and have the maven-jira-plugin listed in your <build><plugins>... list?

I think, that pom.xml is ok. we have got necessary dependencies

but part of our pom.xml:


















<name>Atlassian Repository</name>





<name> Repository for Maven</name>






<name> Repository for Maven</name>

















<name>Atlassian Repository</name>





0 vote

Why are you injecting com.atlassian.jira.rpc.soap.service.* classes? They are not components. Try the normal Service classes and use them in your plugin.

For example,

we used classes only form com.atlassian.jira.rpc.soap.service.* , but we had the same mistake

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

359 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you