axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mauro Molinari (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-4315) wsdl2java code generator not enabled to handle wsdl and schema files provided in a directory that contains a space
Date Thu, 03 Sep 2009 09:28:51 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-4315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750934#action_12750934
] 

Mauro Molinari commented on AXIS2-4315:
---------------------------------------

The problem is still present in Axis2 1.5.
In my case, I was trying to call WSDL2Java on a WSDL that is importing an XSD. The XSD if
referenced in the WSDL with a relative URL. However, since both the WSDL and the XSD where
located in a folder whose complete path contains a space, WSDL2Java fails with an URI syntax
exception.

The solution is to remove spaces in the complete path to the WSDL and XSD in order to WSDL2Java
to work correctly.

Please note that I'm under Windows XP.

This bug is present since Axis2 1.3. Could it be fixed?

> wsdl2java code generator not enabled to handle wsdl and schema files provided in a directory
that contains a space
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4315
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4315
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.4.1
>         Environment: The bug has been identified when executing "wsdl2java" out of Apache
Axis2 release 1.4.1 on a Windows operating system (here Windows Vista Ultimate 64, using a
Sun JVM 1.6.0_12 64bit)
>            Reporter: Holger King
>
> When locating:
> - WSDL
> - corresponding XML Schema
> in a directory whose name contains a white space character (here "test 2"), "wsdl2java"
generates the following error stacktrace:
> C:\test 2>wsdl2java -o c:\temp -S source -p de.king.wsclient --noBuildXML -uri WorkItemPublishing-2.0.0.wsdl
> Using AXIS2_HOME:   C:\Program Files\axis2-1.4.1
> Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0_12
> Retrieving document at 'WorkItemPublishing-2.0.0.wsdl'.
> Retrieving schema at 'WorkItemPublishing-2.0.0.xsd', relative to 'file:/C:/test 2/WorkItemPublishing-2.0.0.wsdl'.
> Retrieving schema at 'Common-2.0.0.xsd', relative to 'file:/C:/test 2/WorkItemPublishing-2.0.0.xsd'.
> [ERROR] java.net.URISyntaxException: Illegal character in path at index 13: file:/C:/test
2/WorkItemPublishing-2.0.0.wsdl
> java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path at
index 13: file:/C:/test 2/WorkItemPublishing-2.0.0.wsdl
>         at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:63)
>         at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1814)
>         at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1863)
>         at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1581)
>         at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:186)
>         at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:412)
>         at org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLToAxisServiceBuilder.java:144)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:2320)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:414)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:403)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:347)
>         at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: java.net.URISyntaxException: Illegal character in path at index 13: file:/C:/test
2/WorkItemPublishing-2.0.0.wsdl
>         at java.net.URI$Parser.fail(URI.java:2809)
>         at java.net.URI$Parser.checkChars(URI.java:2982)
>         at java.net.URI$Parser.parseHierarchical(URI.java:3066)
>         at java.net.URI$Parser.parse(URI.java:3014)
>         at java.net.URI.<init>(URI.java:578)
>         at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:57)
>         ... 14 more
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error
parsing WSDL
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: org.apache.axis2.AxisFault: java.net.URISyntaxException: Illegal character
in path at index 13: file:/C:/test 2/WorkItemPublishing-2.0.0.wsdl
>         at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:397)
>         at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
>         ... 2 more
> Caused by: java.lang.RuntimeException: java.net.URISyntaxException: Illegal character
in path at index 13: file:/C:/test 2/WorkItemPublishing-2.0.0.wsdl
>         at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:63)
>         at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1814)
>         at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1863)
>         at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1581)
>         at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:186)
>         at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:412)
>         at org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLToAxisServiceBuilder.java:144)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:2320)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:414)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:403)
>         at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:347)
>         ... 4 more
> Caused by: java.net.URISyntaxException: Illegal character in path at index 13: file:/C:/test
2/WorkItemPublishing-2.0.0.wsdl
>         at java.net.URI$Parser.fail(URI.java:2809)
>         at java.net.URI$Parser.checkChars(URI.java:2982)
>         at java.net.URI$Parser.parseHierarchical(URI.java:3066)
>         at java.net.URI$Parser.parse(URI.java:3014)
>         at java.net.URI.<init>(URI.java:578)
>         at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:57)
>         ... 14 more
> C:\test 2>

-- 
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