You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sewwandi <se...@gmail.com> on 2011/02/01 10:40:45 UTC
Re: wsdl2java tool fails when the wsdl path contain spaces
Hi all,
does anyone know why the wsdl2java tool is giving an exception when the wsdl
path contains spaces?
thanks in advance!!!
On Thu, Jan 27, 2011 at 10:24 AM, Sewwandi <se...@gmail.com> wrote:
> thanks a lot for your replys Sumedha and Deepal!
>
>
> On Thu, Jan 27, 2011 at 10:20 AM, Deepal Jayasinghe <de...@opensource.lk>wrote:
>
>> Sumedha has given you the correct solution.
>>
>> Deepal
>>
>>
>> On 1/26/2011 11:46 PM, Sewwandi wrote:
>>
>> is there a JIRA issue reported for this? I searched mail archives and JIRA
>> but couldn't find one.
>>
>> On Thu, Jan 27, 2011 at 10:07 AM, sumedha rubasinghe <sumedha.r@gmail.com
>> > wrote:
>>
>>> Remove the space from your path. (ie. 'New Folder')
>>> /sumedha
>>>
>>> On Thu, Jan 27, 2011 at 9:58 AM, Sewwandi <se...@gmail.com> wrote:
>>> > Hi
>>> >
>>> > I'm a newbie, I tried to generate java classes from a wsdl file by
>>> giving
>>> > -uri arg as 'New Folder\myService.wsdl', and got the following error,
>>> >
>>> > C:\Documents and Settings\drajapaksha\My
>>> Documents\Axis2-1.5\bin>wsdl2java
>>> > -uri
>>> > New Folder\myService.wsdl -ss
>>> > Using AXIS2_HOME: C:\Documents and Settings\drajapaksha\My
>>> > Documents\Axis2-1.5
>>> >
>>> > Using JAVA_HOME: C:\Program Files\Java\jdk1.6.0_16
>>> > Retrieving document at 'New'.
>>> > Exception in thread "main"
>>> > org.apache.axis2.wsdl.codegen.CodeGenerationException
>>> > : Error parsing WSDL
>>> > at
>>> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
>>> > ionEngine.java:156)
>>> > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>>> > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
>>> > Caused by: javax.wsdl.WSDLException: WSDLException:
>>> faultCode=OTHER_ERROR:
>>> > Unabl
>>> > e to resolve imported document at 'New'.:
>>> java.io.FileNotFoundException:
>>> > This fi
>>> > le was not found: file:/C:/Documents and Settings/drajapaksha/My
>>> > Documents/Axis2
>>> > -1.5/bin/New
>>> > 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>(CodeGenerat
>>> > ionEngine.java:111)
>>> > ... 2 more
>>> > Caused by: java.io.FileNotFoundException: This file was not found:
>>> > file:/C:/Docu
>>> > ments and Settings/drajapaksha/My Documents/Axis2-1.5/bin/New
>>> > at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown
>>> > Source)
>>> >
>>> > ... 6 more
>>> >
>>> > when I tried the same with -uri 'myService.wsdl' the classes were
>>> generated.
>>> >
>>> > could someone please see whether I have done anything wrong when giving
>>> the
>>> > command line arguments.
>>> >
>>> > Thank you.
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
>>> For additional commands, e-mail: java-user-help@axis.apache.org
>>>
>>>
>>
>