Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to resolve class com.atlassian.jira.component.ComponentAccessor

Ashutosh Shrivastava October 29, 2020

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.

https://docs.atlassian.com/software/jira/docs/api/8.12.1/com/atlassian/jira/component/ComponentAccessor.html

Could you please help?

Thanks,

Ashutosh

2 answers

0 votes
Ashutosh Shrivastava October 30, 2020

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

0 votes
Nir Haimov
Community Champion
October 30, 2020

Hi @Ashutosh Shrivastava 

Please share your pom.xml

My guess you are no using the right amps version

Nir Haimov
Community Champion
October 30, 2020

Hi @Ashutosh Shrivastava 

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)

Ashutosh Shrivastava October 30, 2020

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

Nir Haimov
Community Champion
November 1, 2020

Hi @Ashutosh Shrivastava 

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

Suggest an answer

Log in or Sign up to answer