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

This widget could not be displayed.

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 :)

This widget could not be displayed.

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?

This widget could not be displayed.

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>





This widget could not be displayed.

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 Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

470 views 3 17
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