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

            Hide
            danielbeck Daniel Beck added a comment -

            If this could be better explained

            The documentation (and usage instructions) says:

            --httpsPrivateKey this switch with --httpsCertificate can be used to run HTTPS with OpenSSL secret key file and the corresponding certificate file

            These files are the output of pretty much every OpenSSL "how to create a self-signed certificate" tutorial on the web.

            I don't think we need to write another one.

            Show
            danielbeck Daniel Beck added a comment - If this could be better explained The documentation (and usage instructions) says: --httpsPrivateKey this switch with --httpsCertificate can be used to run HTTPS with OpenSSL secret key file and the corresponding certificate file These files are the output of pretty much every OpenSSL "how to create a self-signed certificate" tutorial on the web. I don't think we need to write another one.
            Hide
            jglick Jesse Glick added a comment -

            I think in the world of letsencrypt.org there is no reason to keep this functionality undeprecated.

            Show
            jglick Jesse Glick added a comment - I think in the world of letsencrypt.org there is no reason to keep this functionality undeprecated.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            .gitignore
            Jenkinsfile
            pom.xml
            src/java/winstone/HttpsConnectorFactory.java
            src/java/winstone/LocalStrings.properties
            http://jenkins-ci.org/commit/winstone/14b69f14db22af3b4f5b1078eb63290a98082eae
            Log:
            Merge pull request #29 from jglick/self-signed-JENKINS-25333

            JENKINS-25333 Avoid hard dependency on non-Java-Platform APIs

            Compare: https://github.com/jenkinsci/winstone/compare/79bc5acdc653...14b69f14db22

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: .gitignore Jenkinsfile pom.xml src/java/winstone/HttpsConnectorFactory.java src/java/winstone/LocalStrings.properties http://jenkins-ci.org/commit/winstone/14b69f14db22af3b4f5b1078eb63290a98082eae Log: Merge pull request #29 from jglick/self-signed- JENKINS-25333 JENKINS-25333 Avoid hard dependency on non-Java-Platform APIs Compare: https://github.com/jenkinsci/winstone/compare/79bc5acdc653...14b69f14db22
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            war/pom.xml
            http://jenkins-ci.org/commit/jenkins/4f814c0a9f8e72384046015975f201f4f693abaf
            Log:
            [FIXED JENKINS-25333] Update to Winstone 3.2. (#2673)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: war/pom.xml http://jenkins-ci.org/commit/jenkins/4f814c0a9f8e72384046015975f201f4f693abaf Log: [FIXED JENKINS-25333] Update to Winstone 3.2. (#2673)
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            The issue fix has been integrated into Jenkins 2.38

            Show
            oleg_nenashev Oleg Nenashev added a comment - The issue fix has been integrated into Jenkins 2.38

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: