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

Checkmarx v8.90.4 plugin not compatible with JDK11

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi,

      Not sure if I am the only one person having this issue, but seems the Checkmarx plugin (v8.90.4) is not compatible with JDK11 and encountering with below error when it tries to generate/parse the report on Jenkins-jdk11 v2.204.2

      [Cx-Error]: Failed to get SAST scan results: com.cx.restclient.exception.CxClientException: Failed to parse xml report: Implementation of JAXB-API has not been found on module path or classpath.

      The below option (adding below as environment variable JAVA_OPTS) also did not work

      -Djavax.xml.bind.JAXBContextFactory=com.sun.xml.bind.v2.ContextFactory

      Seems this is related to this issue https://issues.jenkins-ci.org/browse/JENKINS-59301 but for different (Crowd2) plugin.

       

      Here are my versions:

      Checkmarx Plugin - 8.90.4

      Jenkins -  2.204.2

      Jenkins-JDK - OpenJDK11

      openjdk 11.0.7 2020-04-14 LTS
      OpenJDK Runtime Environment 18.9 (build 11.0.7+10-LTS)
      OpenJDK Server VM 18.9 (build 11.0.7+10-LTS, mixed mode, sharing)

       

      Workaround Fix that works (manual):

      I've copied the JAXB-Implementation and its dependencies from JENKINS_HOME/plugins/jaxb/lib/jaxb* to JENKINS_HOME/war/WEB-INF/lib {{as }}these are the libraries of the implementation that formerly was part of the JDK8

       

       

      Thanks

      Saikiran

        Attachments

          Activity

          saikiran_dusari Saikiran Dusari created issue -
          saikiran_dusari Saikiran Dusari made changes -
          Field Original Value New Value
          Description Hi,

          Not sure if I am the only one person having this issue, but seems the Checkmarx plugin (v8.90.4) is not compatible with JDK11 and encountering with below error when it tries to generate/parse the report on Jenkins-jdk11 v2.204.2
          {code:java}
          [Cx-Error]: Failed to get SAST scan results: com.cx.restclient.exception.CxClientException: Failed to parse xml report: Implementation of JAXB-API has not been found on module path or classpath.{code}
          The below option (adding below as environment variable JAVA_OPTS) also did not work

          *-Djavax.xml.bind.JAXBContextFactory=com.sun.xml.bind.v2.ContextFactory*

          Seems this is related to this issue https://issues.jenkins-ci.org/browse/JENKINS-59301 but for different (Crowd2) plugin.


          *Workaround Fix that works (manual):*

          I've copied the JAXB-Implementation and its dependencies from {{*JENKINS_HOME/plugins/jaxb/lib/jaxb** to }}{{*JENKINS_HOME/war/WEB-INF/lib* }}{{as }}these are the libraries of the implementation that formerly was part of the JDK8

           

           

          Thanks

          Saikiran
          Hi,

          Not sure if I am the only one person having this issue, but seems the Checkmarx plugin (v8.90.4) is not compatible with JDK11 and encountering with below error when it tries to generate/parse the report on Jenkins-jdk11 v2.204.2
          {code:java}
          [Cx-Error]: Failed to get SAST scan results: com.cx.restclient.exception.CxClientException: Failed to parse xml report: Implementation of JAXB-API has not been found on module path or classpath.{code}
          The below option (adding below as environment variable JAVA_OPTS) also did not work

          *-Djavax.xml.bind.JAXBContextFactory=com.sun.xml.bind.v2.ContextFactory*

          Seems this is related to this issue https://issues.jenkins-ci.org/browse/JENKINS-59301 but for different (Crowd2) plugin.

           

          Here are my versions:

          *Checkmarx* - 8.90.4

          *Jenkins* -  2.204.2

          *Jenkins-JDK* - OpenJDK11
          {code:java}
          openjdk 11.0.7 2020-04-14 LTS
          OpenJDK Runtime Environment 18.9 (build 11.0.7+10-LTS)
          OpenJDK Server VM 18.9 (build 11.0.7+10-LTS, mixed mode, sharing){code}
           

          *Workaround Fix that works (manual):*

          I've copied the JAXB-Implementation and its dependencies from {{*JENKINS_HOME/plugins/jaxb/lib/jaxb** to }}{{*JENKINS_HOME/war/WEB-INF/lib* }}{\{as }}these are the libraries of the implementation that formerly was part of the JDK8

           

           

          Thanks

          Saikiran
          saikiran_dusari Saikiran Dusari made changes -
          Description Hi,

          Not sure if I am the only one person having this issue, but seems the Checkmarx plugin (v8.90.4) is not compatible with JDK11 and encountering with below error when it tries to generate/parse the report on Jenkins-jdk11 v2.204.2
          {code:java}
          [Cx-Error]: Failed to get SAST scan results: com.cx.restclient.exception.CxClientException: Failed to parse xml report: Implementation of JAXB-API has not been found on module path or classpath.{code}
          The below option (adding below as environment variable JAVA_OPTS) also did not work

          *-Djavax.xml.bind.JAXBContextFactory=com.sun.xml.bind.v2.ContextFactory*

          Seems this is related to this issue https://issues.jenkins-ci.org/browse/JENKINS-59301 but for different (Crowd2) plugin.

           

          Here are my versions:

          *Checkmarx* - 8.90.4

          *Jenkins* -  2.204.2

          *Jenkins-JDK* - OpenJDK11
          {code:java}
          openjdk 11.0.7 2020-04-14 LTS
          OpenJDK Runtime Environment 18.9 (build 11.0.7+10-LTS)
          OpenJDK Server VM 18.9 (build 11.0.7+10-LTS, mixed mode, sharing){code}
           

          *Workaround Fix that works (manual):*

          I've copied the JAXB-Implementation and its dependencies from {{*JENKINS_HOME/plugins/jaxb/lib/jaxb** to }}{{*JENKINS_HOME/war/WEB-INF/lib* }}{\{as }}these are the libraries of the implementation that formerly was part of the JDK8

           

           

          Thanks

          Saikiran
          Hi,

          Not sure if I am the only one person having this issue, but seems the Checkmarx plugin (v8.90.4) is not compatible with JDK11 and encountering with below error when it tries to generate/parse the report on Jenkins-jdk11 v2.204.2
          {code:java}
          [Cx-Error]: Failed to get SAST scan results: com.cx.restclient.exception.CxClientException: Failed to parse xml report: Implementation of JAXB-API has not been found on module path or classpath.{code}
          The below option (adding below as environment variable JAVA_OPTS) also did not work

          *-Djavax.xml.bind.JAXBContextFactory=com.sun.xml.bind.v2.ContextFactory*

          Seems this is related to this issue https://issues.jenkins-ci.org/browse/JENKINS-59301 but for different (Crowd2) plugin.

           

          Here are my versions:

          *Checkmarx* *Plugin* - 8.90.4

          *Jenkins* -  2.204.2

          *Jenkins-JDK* - OpenJDK11
          {code:java}
          openjdk 11.0.7 2020-04-14 LTS
          OpenJDK Runtime Environment 18.9 (build 11.0.7+10-LTS)
          OpenJDK Server VM 18.9 (build 11.0.7+10-LTS, mixed mode, sharing){code}
           

          *Workaround Fix that works (manual):*

          I've copied the JAXB-Implementation and its dependencies from {{*JENKINS_HOME/plugins/jaxb/lib/jaxb** to }}{{*JENKINS_HOME/war/WEB-INF/lib* }}{\{as }}these are the libraries of the implementation that formerly was part of the JDK8

           

           

          Thanks

          Saikiran
          oleg_nenashev Oleg Nenashev made changes -
          Labels jaxb-dependency-missing-classpath jdk11-compatibility java11-compatibility jaxb-dependency-missing-classpath
          mramonleon Ramon Leon made changes -
          Labels java11-compatibility jaxb-dependency-missing-classpath java11-compatibility jaxb-dependency-missing-classpath triaged

            People

            Assignee:
            sergeyk Sergey Kadaner
            Reporter:
            saikiran_dusari Saikiran Dusari
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: