Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7859

Codegen fails when using JDK11 with maven and cxf-plugin

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.2.6
    • Fix Version/s: None
    • Component/s: Tooling
    • Labels:
    • Environment:
    • Estimated Complexity:
      Unknown

      Description

      I get this error when trying to generate code with the cxf-codegen-plugin:

       

      Running code generation in fork mode...
      The java executable is C:\Program Files\Java\jdk-11\bin\java.exe
      Building jar: C:\Users\tagliani\AppData\Local\Temp\cxf-tmp-17226604922481154635\cxf-codegen391028241029031520.jar
      Error occurred during initialization of boot layer
      java.lang.module.FindException: Module java.xml.ws not found

      Error occurred during initialization of boot layer
      java.lang.module.FindException: Module java.xml.ws not found

       

      I think it is the fact that in JDK 11 this module has been definitely removed.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              luca.tagliani Luca Tagliani
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: