cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Freeman Fang <freeman.f...@gmail.com>
Subject Re: java2wsdl
Date Tue, 15 Mar 2011 08:54:37 GMT
Hi,

Seems AXIS2_HOME is on the PATH but before your CXF bin , you should  
try with .\java2wsdl, that indicate the one from current folder.

Freeman
On 2011-3-15, at 下午4:50, Dil sewonedi wrote:

> i have set the path of cxf bin directory. even if i run from the bin
> directory the same error is displayed:
>
> C:\apache-cxf-2.2.10\bin>java2wsdl -o hello.wsdl  
> demo.hw.server.HelloWorld
> Using AXIS2_HOME:   C:\Documents and Settings\drajapaksha\My
> Documents\Axis2-1.5
>
> Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0_16
> Exception in thread "main" java.lang.Exception: class name must be  
> present!
>        at
> org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.<init>(Java2WSDLCodege
> nEngine.java:47)
>        at org.apache.ws.java2wsdl.Java2WSDL.main(Java2WSDL.java:31)
> C:\apache-cxf-2.2.10\bin>
>
>
>
> On Tue, Mar 15, 2011 at 2:15 PM, Freeman Fang  
> <freeman.fang@gmail.com>wrote:
>
>> Hi,
>>
>> From the stacktrace,
>>
>> Using AXIS2_HOME:   C:\Documents and Settings\drajapaksha\My
>> Documents\Axis2-1.5
>> org.apache.ws.java2wsdl.Java2WSDLCodegenEngine
>>
>> you're not using cxf side java2wsdl tool.
>>
>> Check your PATH ensure cxf java2wsdl tool get invoked here.
>>
>> Freeman
>>
>> On 2011-3-15, at 下午4:25, Dil sewonedi wrote:
>>
>> hi,
>>>
>>> i tried to generate a wsdl using the java2wsdl tool and got the  
>>> following
>>> error message:
>>>
>>> C:\apache-cxf-2.2.10\bin\demo\hw\server>java2wsdl -o hello.wsdl
>>> demo.hw.server.H
>>> elloWorld
>>> Using AXIS2_HOME:   C:\Documents and Settings\drajapaksha\My
>>> Documents\Axis2-1.5
>>>
>>> Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0_16
>>> Exception in thread "main" java.lang.Exception: class name must be
>>> present!
>>>      at
>>> org 
>>> .apache.ws.java2wsdl.Java2WSDLCodegenEngine.<init>(Java2WSDLCodege
>>> nEngine.java:47)
>>>      at org.apache.ws.java2wsdl.Java2WSDL.main(Java2WSDL.java:31)
>>> C:\apache-cxf-2.2.10\bin\demo\hw\server>
>>>
>>> could any one help me to resolve this problem?
>>> Thank you in-advance!
>>>
>>
>>
>> --
>> Freeman Fang
>>
>> ------------------------
>>
>> FuseSource: http://fusesource.com
>> blog: http://freemanfang.blogspot.com
>> twitter: http://twitter.com/freemanfang
>> Apache Servicemix:http://servicemix.apache.org
>> Apache Cxf: http://cxf.apache.org
>> Apache Karaf: http://karaf.apache.org
>> Apache Felix: http://felix.apache.org
>>
>>


-- 
Freeman Fang

------------------------

FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message