[JAVA-4274] Missing Import-Package entry in OSGI bundle Created: 11/Aug/21  Updated: 28/Oct/23  Resolved: 06/Sep/21

Status: Closed
Project: Java Driver
Component/s: Packaging
Affects Version/s: None
Fix Version/s: 4.3.2

Type: Bug Priority: Minor - P4
Reporter: Roger Masse Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: external-user
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to JAVA-3838 Investigate automating OSGI dependenc... Backlog

 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



 Comments   
Comment by Githook User [ 06/Sep/21 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Fix manifest import-package imports (#779)

JAVA-4274
Branch: 4.3.x
https://github.com/mongodb/mongo-java-driver/commit/926bd7fd69e5d20069444ffd003bf8d6bc2d10f8

Comment by Githook User [ 06/Sep/21 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Fix manifest import-package imports (#779)

JAVA-4274
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/23921b3186760575ca177186af992bd3f578f5d3

Comment by Ross Lawley [ 16/Aug/21 ]

Related PR: https://github.com/mongodb/mongo-java-driver/pull/771

Generated at Thu Feb 08 09:01:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.