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

Cannot run jaxws:wsimport from Maven project with Java 8 on 2.357


    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • maven-plugin
    • None
    • Jenkins 2.357 on Windows Server, using JRE11

      I switched my Jenkins installation to using Java 11 recently on Windows.  I did this by changing replacing the jre folder within my Jenkins installation.

      When I upgraded to Jenkins 2.357 this morning (using the built-in 'upgrade automatically' functionality), all seemed fine initially, but when I tried to build one of my projects later, which is built with Java 8 update 312, it failed, with a ClassCastException.

      I've attached the console output from the build.

      Confirmation of local jre as being Java 11:

      C:\Windows\system32>cd \applications\Jenkins\jre
      C:\applications\Jenkins\jre>bin\java -version
      openjdk version "11.0.12" 2021-07-20 LTS
      OpenJDK Runtime Environment Corretto- (build 11.0.12+7-LTS)
      OpenJDK 64-Bit Server VM Corretto- (build 11.0.12+7-LTS, mixed mode)C:\applications\Jenkins\jre>


            Unassigned Unassigned
            lordofthemoon Raj Bhaskar
            0 Vote for this issue
            4 Start watching this issue