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

Error in plugin tests UserKey not found

Aviram Gabay
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.
March 24, 2014

Hi,

I recently updated my plugin to use the new Page event handlers. I also had to adjust my tests accordingly but now I keep getting java.lang.ClassNotFoundException: com.atlassian.sal.api.user.UserKey error in my tests, I tried importing the component in my plugin-xml but that didnt help as well.

My confluence version is the pom is 5.4 same as my confluence data version

What am I missing?

Thanks

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

3 votes
Answer accepted
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 24, 2014

Do you have an explicit dependency on the sal-api artifact in your pom.xml? You may need to upgrade it to a newer version, something like this:

<dependency>
  <groupId>com.atlassian.sal</groupId>
  <artifactId>sal-api</artifactId>
  <version>2.10.10</version>
  <scope>provided</scope>
</dependency>

Aviram Gabay
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.
March 25, 2014

That hit the spot, thanks a lot!

TAGS
AUG Leaders

Atlassian Community Events