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
Community moderators have prevented the ability to post new answers.
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.
Thanks Jobin
I just change the plugin version 2 and got success.
This is really helpful to me.
Thanks again
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But you're telling it to start with a class that you haven't implemented. It can't load something that is not there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.