axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Harrigan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-4254) axis2-wsdl2code-maven-plugin does not pass http proxy arguments to wsdl2java
Date Wed, 25 Feb 2009 11:28:02 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-4254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Harrigan updated AXIS2-4254:
-----------------------------------

          Description: 
wsdl2java provides two parameters to specify a http proxy (http-proxy-host and http-proxy-port).
It does not appear possible to set these when using axis2-wsdl2code-maven-plugin. Any WSDL
that imports an external schema from the web results in a java.net.NoRouteToHostException.
Providing the details of any proxy specified in settings.xml would be a sensible default.

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Web Services Project
[INFO] 
[INFO] Id: org.grapple-project:web-services:aar:0.02-SNAPSHOT
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [axis2-wsdl2code:wsdl2code]
Retrieving document at 'src/main/services/Simulation.wsdl'.
Retrieving schema at 'http://www.martinharrigan.ie/xmlns/common/1.0/grapple_common.xsd', relative
to 'file:/home/harrigan/workspace/grapple-web-services/src/main/services/Simulation.wsdl'.
java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.Socket.connect(Socket.java:519)
	at java.net.Socket.connect(Socket.java:469)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
	at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
	at sun.net.www.http.HttpClient.New(HttpClient.java:306)
	at sun.net.www.http.HttpClient.New(HttpClient.java:323)
	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:788)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729)
	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977)
	at java.net.URL.openStream(URL.java:1009)
	at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:288)
	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:111)
	at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:558)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
	at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
	at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
	at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
	at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
	at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:31)
[ERROR] 

The following mojo encountered an error while executing:
Group-Id: org.apache.axis2
Artifact-Id: axis2-wsdl2code-maven-plugin
Version: 1.4.1
Mojo: wsdl2code
brought in via: POM

While building project:
Group-Id: org.grapple-project
Artifact-Id: web-services
Version: 0.02-SNAPSHOT
>From file: /home/harrigan/workspace/grapple-web-services/pom.xml
Reason: Error parsing WSDL


  was:
wsdl2java provides two parameters to specify a http proxy (http-proxy-host and http-proxy-port).
It does not appear possible to set these when using axis2-wsdl2code-maven-plugin. Any WSDL
that imports an external schema from the web results in a java.net.NoRouteToHostException.
Providing the details of any proxy specified in settings.xml would be a sensible default.


    Affects Version/s:     (was: nightly)
                       1.4.1

> axis2-wsdl2code-maven-plugin does not pass http proxy arguments to wsdl2java
> ----------------------------------------------------------------------------
>
>                 Key: AXIS2-4254
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4254
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.4.1
>         Environment: Linux 2.6.25-gentoo-r7, Sun JDK 1.6.0.07
>            Reporter: Martin Harrigan
>
> wsdl2java provides two parameters to specify a http proxy (http-proxy-host and http-proxy-port).
It does not appear possible to set these when using axis2-wsdl2code-maven-plugin. Any WSDL
that imports an external schema from the web results in a java.net.NoRouteToHostException.
Providing the details of any proxy specified in settings.xml would be a sensible default.
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Web Services Project
> [INFO] 
> [INFO] Id: org.grapple-project:web-services:aar:0.02-SNAPSHOT
> [INFO] task-segment: [install]
> [INFO] ------------------------------------------------------------------------
> [INFO] [axis2-wsdl2code:wsdl2code]
> Retrieving document at 'src/main/services/Simulation.wsdl'.
> Retrieving schema at 'http://www.martinharrigan.ie/xmlns/common/1.0/grapple_common.xsd',
relative to 'file:/home/harrigan/workspace/grapple-web-services/src/main/services/Simulation.wsdl'.
> java.net.NoRouteToHostException: No route to host
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> 	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> 	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> 	at java.net.Socket.connect(Socket.java:519)
> 	at java.net.Socket.connect(Socket.java:469)
> 	at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
> 	at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
> 	at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
> 	at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
> 	at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> 	at sun.net.www.http.HttpClient.New(HttpClient.java:323)
> 	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:788)
> 	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729)
> 	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654)
> 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977)
> 	at java.net.URL.openStream(URL.java:1009)
> 	at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown Source)
> 	at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
> 	at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
> 	at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
> 	at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
> 	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> 	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> 	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> 	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> 	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> 	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:288)
> 	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:111)
> 	at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:558)
> 	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
> 	at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
> 	at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
> 	at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
> 	at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
> 	at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
> 	at org.codehaus.classworlds.Launcher.main(Launcher.java:31)
> [ERROR] 
> The following mojo encountered an error while executing:
> Group-Id: org.apache.axis2
> Artifact-Id: axis2-wsdl2code-maven-plugin
> Version: 1.4.1
> Mojo: wsdl2code
> brought in via: POM
> While building project:
> Group-Id: org.grapple-project
> Artifact-Id: web-services
> Version: 0.02-SNAPSHOT
> From file: /home/harrigan/workspace/grapple-web-services/pom.xml
> Reason: Error parsing WSDL

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message