[CONJ-778] Missing import org.osgi.service.jdbc in Import-Package clause of the OSGi manifest Created: 2020-04-08  Updated: 2020-06-23  Resolved: 2020-06-23

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: 2.6.0
Fix Version/s: 2.6.1

Type: Bug Priority: Minor
Reporter: Domagoj Cosic Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
PartOf
is part of CONJ-2 MariaDB client should be made OSGI ready Closed
is part of CONJ-736 OSGI compliance Closed
Relates
relates to CONJ-703 ClassNotFoundException when trying to... Closed
relates to CONJ-748 OSGI Manifest entry Import-Package: *... Closed

 Description   

Missing org.osgi.service.jdbc prevents loading of the interface org.osgi.service.jdbc.DataSourceFactory at runtime (java.lang.ClassNotFoundException), causing the OSGi bundle activator to fail when using the driver within an OSGi container.

Although all necessary components seem now in place in order to use this driver directly in an OSGi based system, this is probably the only remaining obstacle. It would be a shame if the work already put into the feature cannot be used.



 Comments   
Comment by Diego Dupin [ 2020-06-22 ]

allright.

Could you confirm anything missing with snapshot version ?

<repositories>
    <repository>
        <id>sonatype-nexus-snapshots</id>
        <name>Sonatype Nexus Snapshots</name>
        <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </repository>
</repositories>
 
<dependencies>
    <dependency>
        <groupId>org.mariadb.jdbc</groupId>
        <artifactId>mariadb-java-client</artifactId>
        <version>2.6.1-SNAPSHOT</version>
    </dependency>
</dependencies>

Generated at Thu Feb 08 03:18:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.