Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
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 :
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.
Activity
Jesse McConnell
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Resolution | Fixed [ 1 ] | |
| Assignee | Jesse McConnell [ jesse ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |
Dennis Lundberg
made changes -
| Key | MOJO-600 |
|
| Component/s | axistools [ 12076 ] | |
| Project | Mojo [ 11062 ] | Maven 2.x Axis Tools Plugin [ 11697 ] |
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?!