axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sewwandi <sew...@gmail.com>
Subject Re: wsdl2java tool fails when the wsdl path contain spaces
Date Tue, 01 Feb 2011 09:40:45 GMT
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 <sewdil@gmail.com> wrote:

> thanks a lot for your replys Sumedha and Deepal!
>
>
> On Thu, Jan 27, 2011 at 10:20 AM, Deepal Jayasinghe <deepal@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 <sewdil@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
>>>
>>>
>>
>

Mime
View raw message