Mojo's Axis Tools Maven Plugin
  1. Mojo's Axis Tools Maven Plugin
  2. MAXISTOOLS-15

wsdl2java does not work under unix (when useEmitter is true)

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mac OS X, java 1.5.0_06, axistools 1.1-20061007.142847-4
    • Number of attachments :
      1

      Description

      wsdl2java did not work for me under Mac OS X. I think that File.toURL() is supposedly a more portable solution than "file:///" + File.getAbsolutePath().

      The attached patch changes one line in wsdl2java/DefaultWSDL2JavaPlugin.java

      This patch has not been tested on any other platform besides Mac OS X.

      1. patch
        0.6 kB
        Peter Wyngaard

        Activity

        Hide
        Immo Huneke added a comment -

        I get the same problem when using WSDL2JAVA under Linux (RHEL3). The report is:

        ...
        about to add compile source root
        processing wsdl: /home/sh_icc_dev/tools/TeamCity/buildAgent/buildagent1/ICC_Infra/logonservice/src/main/wsdl/lws-service.wsdl
        mappings size : 2
        mapping [namespace : https://jeep-logonws.ldn.swissbank.com:2011/LogonWS/wsdl/Logon-service.wsdl, targetPackage icc.infra.base.security.axis.logonservice, namespace : http://www.logon.com/definitions/LogonRemoteInterface, targetPackage icc.infra.base.security.axis.logonservice]
        mapping [namespace : https://jeep-logonws.ldn.swissbank.com:2011/LogonWS/wsdl/Logon-service.wsdl, targetPackage icc.infra.base.security.axis.logonservice, namespace : http://www.logon.com/definitions/LogonRemoteInterface, targetPackage icc.infra.base.security.axis.logonservice]
        mappingMap size : 2
        wsdlUrl.toExternalForm() file://home/sh_icc_dev/tools/TeamCity/buildAgent/buildagent1/ICC_Infra/logonservice/src/main/wsdl/lws-service.wsdl
        ------------------------------------------------------------------------
        BUILD ERROR
        ------------------------------------------------------------------------
        error executing plugin

        Embedded error: WSDL2Java execution failed

        WSDL2Java emitter timed out (this often means the WSDL at the specified URL is inaccessible)!
        ------------------------------------------------------------------------
        Trace
        ...
        Caused by: org.codehaus.mojo.axistools.axis.AxisPluginException: error running file://home/sh_icc_dev/tools/TeamCity/buildAgent/buildagent1/ICC_Infra/logonservice/src/main/wsdl/lws-service.wsdl
        at org.codehaus.mojo.axistools.wsdl2java.DefaultWSDL2JavaPlugin.runEmitter(DefaultWSDL2JavaPlugin.java:849)
        at org.codehaus.mojo.axistools.wsdl2java.DefaultWSDL2JavaPlugin.execute(DefaultWSDL2JavaPlugin.java:297)
        ... 13 more
        Caused by: java.io.IOException: WSDL2Java emitter timed out (this often means the WSDL at the specified URL is inaccessible)!
        at org.apache.axis.wsdl.gen.Parser.run(Parser.java:320)
        at org.apache.axis.wsdl.toJava.Emitter.run(Emitter.java:599)
        at org.codehaus.mojo.axistools.wsdl2java.DefaultWSDL2JavaPlugin.runEmitter(DefaultWSDL2JavaPlugin.java:845)
        ... 14 more

        What puzzles me is how this could EVER have worked for any Linux / Unix / Mac OS user. The plugin works fine under Windows, so is that the only environment under which it is tested?!

        Show
        Immo Huneke added a comment - I get the same problem when using WSDL2JAVA under Linux (RHEL3). The report is: ... about to add compile source root processing wsdl: /home/sh_icc_dev/tools/TeamCity/buildAgent/buildagent1/ICC_Infra/logonservice/src/main/wsdl/lws-service.wsdl mappings size : 2 mapping [namespace : https://jeep-logonws.ldn.swissbank.com:2011/LogonWS/wsdl/Logon-service.wsdl, targetPackage icc.infra.base.security.axis.logonservice, namespace : http://www.logon.com/definitions/LogonRemoteInterface, targetPackage icc.infra.base.security.axis.logonservice] mapping [namespace : https://jeep-logonws.ldn.swissbank.com:2011/LogonWS/wsdl/Logon-service.wsdl, targetPackage icc.infra.base.security.axis.logonservice, namespace : http://www.logon.com/definitions/LogonRemoteInterface, targetPackage icc.infra.base.security.axis.logonservice] mappingMap size : 2 wsdlUrl.toExternalForm() file://home/sh_icc_dev/tools/TeamCity/buildAgent/buildagent1/ICC_Infra/logonservice/src/main/wsdl/lws-service.wsdl ------------------------------------------------------------------------ BUILD ERROR ------------------------------------------------------------------------ error executing plugin Embedded error: WSDL2Java execution failed WSDL2Java emitter timed out (this often means the WSDL at the specified URL is inaccessible)! ------------------------------------------------------------------------ Trace ... Caused by: org.codehaus.mojo.axistools.axis.AxisPluginException: error running file://home/sh_icc_dev/tools/TeamCity/buildAgent/buildagent1/ICC_Infra/logonservice/src/main/wsdl/lws-service.wsdl at org.codehaus.mojo.axistools.wsdl2java.DefaultWSDL2JavaPlugin.runEmitter(DefaultWSDL2JavaPlugin.java:849) at org.codehaus.mojo.axistools.wsdl2java.DefaultWSDL2JavaPlugin.execute(DefaultWSDL2JavaPlugin.java:297) ... 13 more Caused by: java.io.IOException: WSDL2Java emitter timed out (this often means the WSDL at the specified URL is inaccessible)! at org.apache.axis.wsdl.gen.Parser.run(Parser.java:320) at org.apache.axis.wsdl.toJava.Emitter.run(Emitter.java:599) at org.codehaus.mojo.axistools.wsdl2java.DefaultWSDL2JavaPlugin.runEmitter(DefaultWSDL2JavaPlugin.java:845) ... 14 more What puzzles me is how this could EVER have worked for any Linux / Unix / Mac OS user. The plugin works fine under Windows, so is that the only environment under which it is tested?!
        Hide
        Dan Tran added a comment -

        I am willing to patch it if some one can test it on windows with the patch.

        Also, this plugin does not have a lots of interest and it is a very bad form where no committer willing to
        volunteer to roll out another release.

        I used to have some interest due to some prototypes with axis1.x, but that is it.

        Show
        Dan Tran added a comment - I am willing to patch it if some one can test it on windows with the patch. Also, this plugin does not have a lots of interest and it is a very bad form where no committer willing to volunteer to roll out another release. I used to have some interest due to some prototypes with axis1.x, but that is it.
        Hide
        Jesse McConnell added a comment -

        applied, thanks

        Show
        Jesse McConnell added a comment - applied, thanks

          People

          • Assignee:
            Jesse McConnell
            Reporter:
            Peter Wyngaard
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: