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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Use of unexported JVM class in Bitbucket plugin


In the Bitbucket plugin project I am working on I am using  kerb4j-client  in order to establish kerberized connection to 3rd party service.


kerb4j-client  depends on  kerb4j-common  which in turn refers to  class which is the one I am getting NoClassDefFoundError when trying to run the plugin flow.

The  Krb5LoginModule  is a part of JVM and exists in both JDK/JRE's rt.jar,  at least as of the v1.8.0_181 I am using.

I checked the  MANIFEST.MF  from the plugin jar and do see  ";version=0;resolution:=optional"  there

I checked  /plugins/servlet/upm/osgi  on the server but when expanding my plugin "Import Package" section the report around it looks like this:    version: 0, resolution: optional
Provided by System Bundle version: 0, resolution: optional

javax.annotation version: 0, resolution: optional
Provided by System Bundle

Understandably, when looking under System Bundle "Export Package" no  is listed.

What would be the approach to resolve this?

1 answer

0 votes

Approach, is using the last version of spring scanner

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,826 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you