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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 Edited

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

<dependency>
<groupId>com.kerb4j</groupId>
<artifactId>kerb4j-client</artifactId>
<version>0.0.8</version>
<scope>compile</scope>
</dependency>

kerb4j-client  depends on  kerb4j-common  which in turn refers to  com.sun.security.auth.module.Krb5LoginModule  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  "com.sun.security.auth.module;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:

com.google.gson    version: 0, resolution: optional
Provided by System Bundle

com.sun.security.auth.module version: 0, resolution: optional

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

Understandably, when looking under System Bundle "Export Package" no  com.sun.security.auth.module  is listed.

What would be the approach to resolve this?

1 answer

0 votes

Approach, is using the last version of spring scanner

https://bitbucket.org/atlassian/atlassian-spring-scanner/src

Suggest an answer

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

2,585 views 1 9
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