Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1942

ZooKeeper OSGi package imports: org.ietf.jgss dependency missing from manifest

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.4.6
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Tags:
      OSGI

      Description

      For OSGI applications, the zookeeper manifest file should have org.ietf.jgss in its Import-Package statement. org.apache.zookeeper.client.ZooKeeperSaslClient imports org.ietf.jgss.*.

      The following ClassDefNotFoundError occurs without it.

      java.lang.NoClassDefFoundError: org.ietf.jgss.GSSException
      at java.lang.J9VMInternals.verifyImpl(Native Method)
      at java.lang.J9VMInternals.verify(J9VMInternals.java:94)
      at java.lang.J9VMInternals.initialize(J9VMInternals.java:171)
      at org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:945)
      at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1003)
      Caused by: java.lang.ClassNotFoundException: org.ietf.jgss.GSSException
      at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:707)
      ... 5 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                misquith Kalvin Misquith
              • Votes:
                7 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: