jax-ws
  1. jax-ws
  2. JAX_WS-1147

wsimport issue with symlink and file URI

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.2.4, 2.2.5, 2.2.6, 2.2.7, 2.2.8
    • Fix Version/s: None
    • Component/s: wsimport
    • Labels:
      None
    • Environment:

      macos

      Description

      wsimport fails if the binding file is behind a symlinked and the path is provided as URI to wsimport.
      The URI is used because of the wsimport ant task which detects the link and then uses URI.

      ls -ld /test-dir
      lrwxr-xr-x  1 root  wheel  22 Mar 19 16:38 /test-dir -> /Users/romano/test-dir
      
      export S1AS_HOME=/Users/romano/workspaces/glassfish/main/appserver/distributions/glassfish/target/stage/glassfish4
      $S1AS_HOME/glassfish/bin/wsimport -d test -Xendorsed -keep -b file:/test-dir/custom-server.xml /test-dir/AddNumbers.wsdl
      
      parsing WSDL...
      
      
      [ERROR]     "file:/test-dir/AddNumbers.wsdl" is not a part of this compilation. Is this a mistake for "file:/test-dir/custom-server.xml"?
        line 49 of file:/test-dir/custom-server.xml
      
          Failed to parse the WSDL. 
      

        Activity

        Hide
        Lukas Jungmann added a comment -

        see WsImport2.java#488-507 where where 'file:/' protocol is being added to the path (#503)

        Show
        Lukas Jungmann added a comment - see WsImport2.java#488-507 where where 'file:/' protocol is being added to the path (#503)

          People

          • Assignee:
            Unassigned
            Reporter:
            Romain Grécourt
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: