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

Missing Import-Package entry in OSGI bundle

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 4.3.2
    • None
    • Packaging

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: