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

0 votes
Accepted answer

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 votes

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
Community showcase
Published Feb 07, 2019 in Marketplace Apps

A Timeless Love Story

It started as any story starts, on a normal, rainy day.   Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...

465 views 8 27
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