Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

jira soap service extension in 5.x

Tapas Mondal September 30, 2012

I have a Jira soap service extension which is developed by 4.1.2

I need to upgrade to 5.x

How do I do that? When I am extending my class to JiraSoapService it gives error.

Please help

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 1, 2012

Create it as v2 plugin. In JIRA5, RPC plugin is v2 and hence it is not available in v1 plugin classpath. If you make your plugin v2 and use the scope as compile for the rpc plugin, it will be embedded in your plugin.

Tapas Mondal October 2, 2012

Thanks Jobin

I just change the plugin version 2 and got success.

This is really helpful to me.

Thanks again

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 30, 2012

There's far too little information for us to answer you here.

The best we can do is: To upgrade a plugin, you need to take the code for the plugin, change the target version from 4.1.2 to 5.x and recompile it. (Hint - if you've used the Atlassian SDK to create it, then there's a pom.xml which will contain the target)

Beyond that, you need to start telling us how the code is structured, what error messages you get if you compile it etc. Ideally, open the project in an IDE which can handle maven, that will tell you a lot about the errors an upgrade may cause in the code.

Tapas Mondal September 30, 2012

Thanks for your reply. In my plugin I used permissionManager and userManager. For permissionManager it did not show any error in compile time but run time it throws exception.

Also I used few rpc methods in 4.1.2 please let me know how I will handle this in 5.x

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 30, 2012

I don't know, there's still too little detail. The user stuff has changed a lot between 4.1 and 5 (in fact, the biggest change is 4.2 to 4.3 if my memory is correct).

You're going to need to examine your code and update it to use the new APIs

As for the RPC calls, I have no idea at all, because you don't say what you're doing.

Tapas Mondal September 30, 2012

My main purpose to extend Jira Soap Service. To do this I need to write a plugin. few samples are want to get custom options for select list type of fields. Want to get All groups etc.

With Regards,

Tapas

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 30, 2012

That's still not really a specific question we can help you with (although I may well be misreading it). You appear to be saying "I want a plugin that gets information from Jira and provides it to SOAP calls" and then asking for the code handed to you on a plate for you to copy and paste.

I don't have that to hand, I'd have to look through the API and work it out. I suggest that you do that and tell us if you get stuck (telling us where you're stuck with the API, what it's doing unexpectedly and what you've done with it)

Tapas Mondal September 30, 2012

I think I did not clarify you properly.

I want to extend the JiraSoapService. I did this in Jira 4.1.2 and worked successfully.

I am giving you sample and error message, so that you can realize my problem

(pom.txt) (TestJiraSoapServiceImpl.txt) atlassian-plugin.xml

====================

<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}">
    <plugin-info>
        <description>${project.description}</description>
        <version>${project.version}</version>
        <vendor name="${project.organization.name}" url="${project.organization.url}" />
    </plugin-info>
	<component key="logConfig" name="The logging configuration for this plugin"
		class="com.test.jira.util.LoggerUtils">
	</component>
		
	<rpc-soap key="TestJiraSoap" name="Test Jira SOAP Services Extension" class="com.test.jira.soap.TestJiraSoapServiceImpl">
		<description>The Test Jira SOAP services Extension.</description>
		<service-path>TestJiraService</service-path>
		<published-interface>com.test.jira.soap.TestJiraSoapService</published-interface>
	</rpc-soap>
</atlassian-plugin>

I am getting the following error during deployment

[atlassian.plugin.manager.DefaultPluginManager] There was an error loading the descriptor 'Test Jira SOAP Services Extension' of plugin 'com.test.jira.plugins.test-jira-plugin'. Disabling.
java.lang.NoClassDefFoundError: com/atlassian/jira/rpc/soap/JiraSoapService
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)

With Regards,
Tapas

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 30, 2012

Yes, Jira can't load your plugin and it's telling you exactly why.

Your code does not implement the JiraSoapService class because you appear to have renamed it by sticking Test on the front.

Tapas Mondal September 30, 2012

TestJiraSoapService is my own interface and JiraSoapServiceImpl is the jira soap service.

TestJiraSoapService is:

public interface TestJiraSoapService extends JiraSoapService {

public RemoteCustomField[] getCustomFieldList(String token, String projectName, String issueType) throws RemoteException, RemotePermissionException;

}

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 30, 2012

But you're telling it to start with a class that you haven't implemented. It can't load something that is not there.

TAGS
AUG Leaders

Atlassian Community Events