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

Missing javax.net.SocketFactory when running in OSGi

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 3.0.0
    • Affects Version/s: 3.0.0
    • Component/s: Packaging
    • Environment:
      mongo-java-driver-3.0.0-beta3.jar
      Glassfish 4.1
      Java(TM) SE Runtime Environment(build 1.8.0_31-b13)

      Error:
      java.lang.NoClassDefFoundError: javax/net/SocketFactory
      at com.mongodb.MongoClientOptions$Builder.<init>(MongoClientOptions.java:677)
      at com.mongodb.MongoClient.<init>(MongoClient.java:218)

      Partial MANIFEST.MF from 3.0.0-beta3:
      Import-Package: io.netty.bootstrap;resolution:=optional;version="[4.0,
      5)",io.netty.buffer;resolution:=optional;version="[4.0,5)",io.netty.c
      hannel;resolution:=optional;version="[4.0,5)",io.netty.channel.nio;re
      solution:=optional;version="[4.0,5)",io.netty.channel.socket;resoluti
      on:=optional;version="[4.0,5)",io.netty.channel.socket.nio;resolution
      :=optional;version="[4.0,5)",io.netty.handler.ssl;resolution:=optiona
      l;version="[4.0,5)",io.netty.handler.timeout;resolution:=optional;ver
      sion="[4.0,5)",io.netty.util.concurrent;resolution:=optional;version=
      "[4.0,5)",org.slf4j;resolution:=optional;version="[1.7,2)"

      Partial MANIFEST.MF from 2.12.3:
      Import-Package: javax.management,javax.net,javax.net.ssl,javax.securit
      y.sasl,javax.security.auth.login,javax.security.auth,org.ietf.jgss

      Conclusion:
      Dependency generation for OSGi is broken in 3.0.0.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            zmarcos Marcos Zolnowski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: