Hudson CI start-up with IBM JDK 6 reports java.lang.NoClassDefFoundError: sun.security.x509.CertAndKeyGen

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major
    • Component/s: _unsorted
    • Environment:

      When Hudson CI is started using IBM JDK 6 via java -jar hudson.war, the following is output to the console:

      [Winstone 2010/10/25 08:21:40] - Error starting listener instance
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:44)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:516)
      at winstone.Launcher.spawnListener(Launcher.java:232)
      at winstone.Launcher.<init>(Launcher.java:205)
      at winstone.Launcher.main(Launcher.java:391)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:600)
      at Main.main(Main.java:200)
      Caused by: java.lang.NoClassDefFoundError: sun.security.x509.CertAndKeyGen
      at winstone.ssl.HttpsListener.<init>(HttpsListener.java:111)
      ... 12 more
      Caused by: java.lang.ClassNotFoundException: sun.security.x509.CertAndKeyGen
      at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:385)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:653)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:619)
      ... 13 more

      According to the Winstone website (http://winstone.sourceforge.net/), the following option can be used to set the KeyManagerFactory:

      --httpsKeyManagerType = the SSL KeyManagerFactory type (eg SunX509, IbmX509). Default is SunX509

      This option (or something similar) should be supported by the Hudson CI start up to allow IBM JDK 6 startup to complete without reporting any errors.

            Assignee:
            Unassigned
            Reporter:
            jkwuc89
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: