Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-25333

Jenkins 1.586 not starting up using Java8

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Using Java8, Jenkins doesn't start with the following message:

      SCHWERWIEGEND: Container startup failed
      java.io.IOException: Failed to start a listener: winstone.HttpsConnectorFactory
         at winstone.Launcher.spawnListener(Launcher.java:209)
         at winstone.Launcher.<init>(Launcher.java:149)
         at winstone.Launcher.main(Launcher.java:354)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:483)
         at Main._main(Main.java:293)
         at Main.main(Main.java:98)
      Caused by: java.lang.NoClassDefFoundError: sun/security/x509/CertAndKeyGen
         at winstone.HttpsConnectorFactory.start(HttpsConnectorFactory.java:101)
         at winstone.Launcher.spawnListener(Launcher.java:207)
         ... 8 more
      Caused by: java.lang.ClassNotFoundException: sun.security.x509.CertAndKeyGen
         at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
         ... 10 more
      

      After switching back to Oracle Java 7, it works without problems.

        Attachments

          Issue Links

            Activity

            maxzilla Max Wahler created issue -
            danielbeck Daniel Beck made changes -
            Field Original Value New Value
            Labels exception jenkins exception winstone
            jglick Jesse Glick made changes -
            Labels exception winstone exception java8 winstone
            jglick Jesse Glick made changes -
            Labels exception java8 winstone exception java8 regression winstone
            jglick Jesse Glick made changes -
            Labels exception java8 regression winstone exception java8 winstone
            jglick Jesse Glick made changes -
            Component/s core [ 15593 ]
            Component/s security [ 15508 ]
            Labels exception java8 winstone java8 winstone
            jglick Jesse Glick made changes -
            Link This issue is blocking JENKINS-27624 [ JENKINS-27624 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "winstone PR 23 (Web Link)" [ 14099 ]
            aheritier Arnaud Héritier made changes -
            Link This issue is duplicated by JENKINS-34463 [ JENKINS-34463 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 159252 ] JNJira + In-Review [ 179935 ]
            schristou Steven Christou made changes -
            Description Using Java8, Jenkins doesn't start with the following message:

            SCHWERWIEGEND: Container startup failed
            java.io.IOException: Failed to start a listener: winstone.HttpsConnectorFactory
               at winstone.Launcher.spawnListener(Launcher.java:209)
               at winstone.Launcher.<init>(Launcher.java:149)
               at winstone.Launcher.main(Launcher.java:354)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
               at java.lang.reflect.Method.invoke(Method.java:483)
               at Main._main(Main.java:293)
               at Main.main(Main.java:98)
            Caused by: java.lang.NoClassDefFoundError: sun/security/x509/CertAndKeyGen
               at winstone.HttpsConnectorFactory.start(HttpsConnectorFactory.java:101)
               at winstone.Launcher.spawnListener(Launcher.java:207)
               ... 8 more
            Caused by: java.lang.ClassNotFoundException: sun.security.x509.CertAndKeyGen
               at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
               at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
               at java.security.AccessController.doPrivileged(Native Method)
               at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
               at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
               at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
               ... 10 more


            After switching back to Oracle Java 7, it works without problems.
            Using Java8, Jenkins doesn't start with the following message:

            {noformat}
            SCHWERWIEGEND: Container startup failed
            java.io.IOException: Failed to start a listener: winstone.HttpsConnectorFactory
               at winstone.Launcher.spawnListener(Launcher.java:209)
               at winstone.Launcher.<init>(Launcher.java:149)
               at winstone.Launcher.main(Launcher.java:354)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
               at java.lang.reflect.Method.invoke(Method.java:483)
               at Main._main(Main.java:293)
               at Main.main(Main.java:98)
            Caused by: java.lang.NoClassDefFoundError: sun/security/x509/CertAndKeyGen
               at winstone.HttpsConnectorFactory.start(HttpsConnectorFactory.java:101)
               at winstone.Launcher.spawnListener(Launcher.java:207)
               ... 8 more
            Caused by: java.lang.ClassNotFoundException: sun.security.x509.CertAndKeyGen
               at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
               at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
               at java.security.AccessController.doPrivileged(Native Method)
               at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
               at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
               at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
               ... 10 more
            {noformat}

            After switching back to Oracle Java 7, it works without problems.
            jglick Jesse Glick made changes -
            Assignee Jesse Glick [ jglick ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 29 (Web Link)" [ 15135 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "core PR 2673 (Web Link)" [ 15145 ]
            oleg_nenashev Oleg Nenashev made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            oleg_nenashev Oleg Nenashev made changes -
            Labels java8 winstone java8 lts-candidate winstone
            olivergondza Oliver Gondža made changes -
            Labels java8 lts-candidate winstone 2.32.2-fixed java8 winstone
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal OSS-153 (Web Link)" [ 19247 ]

              People

              Assignee:
              jglick Jesse Glick
              Reporter:
              maxzilla Max Wahler
              Votes:
              11 Vote for this issue
              Watchers:
              15 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: