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

Add support of JAXB unpackaging for Java 9+ in WAR Exploder

    Details

    • Similar Issues:

      Description

      As discussed in JENKINS-51821, Jenkins won't work on Java 11 due to removed JAXB modules. I propose the following approach:

      • Package 3 JAXB libs (jaxb-api-2.3.0.jar, jaxb-core-2.3.0.1.jar, jaxb-impl-2.3.0.1.jar) to a WAR resource which does not get classloaded by default. E.g. "WEB-INF/platform-compat/java11" (or 9 ?)
      • When Jenkins starts up on Java 9+, Jenkins WAR exploder copies the libraries to "war/WEB-INF/lib" so that they get picked by classloader automatically

      It will allow to have a transparent support of Java 9..11 within the WAR file (without adding modules, etc.)

      A better way forward would be Multi-Version JAR, but we need a massive tooling update to support it

        Attachments

          Issue Links

            Activity

            oleg_nenashev Oleg Nenashev created issue -
            oleg_nenashev Oleg Nenashev made changes -
            Field Original Value New Value
            Epic Link JENKINS-51805 [ 191255 ]
            oleg_nenashev Oleg Nenashev made changes -
            Labels java10_hackathon
            oleg_nenashev Oleg Nenashev made changes -
            Issue Type Bug [ 1 ] New Feature [ 2 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue relates to JENKINS-51821 [ JENKINS-51821 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue relates to JENKINS-46600 [ JENKINS-46600 ]
            danielbeck Daniel Beck made changes -
            Description As discussed in JANNKINS-51821, Jenkins won't work on Java 11 due to removed JAXB modules. I propose the following approach:

            * Package 3 JAXB libs (jaxb-api-2.3.0.jar, jaxb-core-2.3.0.1.jar, jaxb-impl-2.3.0.1.jar) to a WAR resource which does not get classloaded by default. E.g. "WEB-INF/platform-compat/java11" (or 9 ?)
            * When Jenkins starts up on Java 9+, Jenkins WAR exploder copies the libraries to "war/WEB-INF/lib" so that they get picked by classloader automatically

            It will allow to have a transparent support of Java 9..11 within the WAR file (without adding modules, etc.)

            A better way forward would be Multi-Version JAR, but we need a massive tooling update to support it
            As discussed in JENKINS-51821, Jenkins won't work on Java 11 due to removed JAXB modules. I propose the following approach:
             * Package 3 JAXB libs (jaxb-api-2.3.0.jar, jaxb-core-2.3.0.1.jar, jaxb-impl-2.3.0.1.jar) to a WAR resource which does not get classloaded by default. E.g. "WEB-INF/platform-compat/java11" (or 9 ?)
             * When Jenkins starts up on Java 9+, Jenkins WAR exploder copies the libraries to "war/WEB-INF/lib" so that they get picked by classloader automatically

            It will allow to have a transparent support of Java 9..11 within the WAR file (without adding modules, etc.)

            A better way forward would be Multi-Version JAR, but we need a massive tooling update to support it
            oleg_nenashev Oleg Nenashev made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            oleg_nenashev Oleg Nenashev made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Kohsuke Kawaguchi [ kohsuke ]
            oleg_nenashev Oleg Nenashev made changes -
            Remote Link This issue links to "https://github.com/jenkinsci/jenkins/pull/3510 (Web Link)" [ 20945 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue relates to JENKINS-52004 [ JENKINS-52004 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue blocks JENKINS-52186 [ JENKINS-52186 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue relates to JENKINS-53938 [ JENKINS-53938 ]
            batmat Baptiste Mathus made changes -
            Labels java10_hackathon fosdem2019 java10_hackathon
            batmat Baptiste Mathus made changes -
            Link This issue relates to JENKINS-55620 [ JENKINS-55620 ]
            batmat Baptiste Mathus made changes -
            Link This issue relates to JENKINS-55572 [ JENKINS-55572 ]
            batmat Baptiste Mathus made changes -
            Link This issue relates to JENKINS-55681 [ JENKINS-55681 ]
            batmat Baptiste Mathus made changes -
            Link This issue relates to JENKINS-55202 [ JENKINS-55202 ]
            batmat Baptiste Mathus made changes -
            Link This issue causes JENKINS-55944 [ JENKINS-55944 ]
            batmat Baptiste Mathus made changes -
            Link This issue relates to JENKINS-55704 [ JENKINS-55704 ]
            batmat Baptiste Mathus made changes -
            Status In Review [ 10005 ] Closed [ 6 ]
            Resolution Won't Fix [ 2 ]

              People

              • Assignee:
                kohsuke Kohsuke Kawaguchi
                Reporter:
                oleg_nenashev Oleg Nenashev
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: