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

cxf-java2ws-plugin command too long (because of -cp argument)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.2.6
    • Fix Version/s: 3.3.0
    • Component/s: Tooling
    • Environment:

      Windows 10

      JDK 9, 10 and 11

    • Estimated Complexity:
      Unknown
    • Flags:
      Important

      Description

      Using the cxf-java2ws-plugin from a Maven project using JDK 9+ (10 and 11 release candidate) on Windows 10, it fails to run because the generated command line is too long.

      In our case, the generated classpath was more than 75000 characters long – Yes, it is a big project. It used to work on JDK 8.

      [ERROR] Failed to execute goal org.apache.cxf:cxf-java2ws-plugin:3.2.6:java2ws (EXECUTIONNAME) on project PROJECTNAME: Error while executing process.: Cannot run program "cmd.exe" (in directory "C:\opt\dev\..._PROJECTNAME_\target"): CreateProcess error=206, The filename or extension is too long -> [Help 1]

       

      The current code base (3.3.0-SNAPSHOT) does not work at all with JDK 10 or 11.

      The problem is that the classpath is part of the command line and on Windows it seems to be limited to around 8000 characters.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ffang Freeman Yue Fang
                Reporter:
                fwangel Fredrik Wangel
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: