Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4274

Missing Import-Package entry in OSGI bundle

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.3.2
    • Affects Version/s: None
    • Component/s: Packaging
    • Labels:

      You have a couple of imports in com.mongodb.internal.connection.SaslAuthenticator.

      import javax.security.auth.Subject;
      import javax.security.auth.login.LoginException;

      These cause a ClassNotFound exception in OSGI/karaf environments

      I suspect you need to add:

      'javax.security.auth.*', to the afterEvaluate clause in the core build.gradle in the

      jar.manifest.attributes['Import-Package'] section

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            roger.masse@bitheads.com Roger Masse
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: