You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I am using Jira 8.12.1 server version. My SSO code already using ComponentAccessor and it was working fine with previous version of Jira 7.
But when we upgraded to 8.12.1 version, getting below error.
it tells me unable to resolve class com.atlassian.jira.component.ComponentAccessor?
However, import com.atlassian.jira.component.ComponentAccessor was working fine with Jira 7.
Even in Jira API document same package is mentioned.
Could you please help?
Thanks,
Ashutosh
Please keep posting to me as under my answer and as new answer (to keep the order of things :) )
Now about your pom.xml files, I'm not sure which one of them, but your plugin should have only 1 pom.xml file, (unless this code is extracted from a jar plugin and the original code is not yours)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Nir Haimov for your reply.
When I added old Jira 7 jar, its able to get ComponentAccessor and no error in import.
But I am still getting error on package, which is present for both old and new version of Jira.
I have ask question in Atlassian Community for package error.
Here is the link - https://community.atlassian.com/t5/Jira-questions/The-type-com-atlassian-jira-entity-WithId-cannot-be-resolved/qaq-p/1520656
Could you please let me know, if you have any idea about resolving package issue?
Thanks,
Ashutosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, but i can't help you that way, you need to access the original code (and not the package from the JAR).
There you should have only 1 pom.xml, main folder with all classes, resources folder with all resources (js, css, etc...)
You are trying to work on the wrong files.
That is why everything breaks for you when you try to change something
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Nir for your reply.
I see three pom.xml at different locations mentioned below.
1> C:\Program Files\Atlassian\Jira\atlassian-jira\META-INF\maven\com.atlassian.jira\jira-webapp-dist
2> C:\Program Files\Atlassian\Jira\atlassian-jira\META-INF\maven\com.atlassian.jira\atlassian-jira-webapp
3> C:\Program Files\Atlassian\Jira\atlassian-jira\WEB-INF\classes\META-INF\maven\com.atlassian.jira\jira-core
I have never updated any pom.xml manually for new version of Jira, or before for old versions as well.
I am not able to attach those files here, please let me know which file content you need, so I can provide to you.
Thanks again for your help,
Ashutosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.