You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Dil sewonedi <se...@gmail.com> on 2011/03/15 09:25:09 UTC
java2wsdl
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!
Re: java2wsdl
Posted by Willem Jiang <wi...@gmail.com>.
It looks like the axis2 path is in front of the CXF one.
Please make sure you setup the PATH environment rightly.
On 3/15/11 4:50 PM, 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<fr...@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
>>
>>
>
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Re: java2wsdl
Posted by Dil sewonedi <se...@gmail.com>.
hi,
C:\Documents and Settings\drajapaksha\My
Documents\Downloads\apache-cxf-2.2.10\b
in>javac -cp ./src demo.hw.server.HelloWorld
error: Class names, 'demo.hw.server.HelloWorld', are only accepted if
annotation
processing is explicitly requested
1 error
i have not used any annotations in the class, is there any way to explicitly
request annotation processing?
On Tue, Mar 15, 2011 at 3:09 PM, Freeman Fang <fr...@gmail.com>wrote:
> Hi,
>
> using java2ws -h
> you can get all usage list about this command, I believe this one is what
> you want.
> -cp <class-path> Specify the SEI and types class search path of
> directories
> and zip/jar files
>
> Freeman
>
>
> On 2011-3-15, at 下午5:33, Dil sewonedi wrote:
>
> hi,
>>
>> thank you for the quick responses, i tried again, by resetting the path
>> variable and got the following error:
>>
>> C:\Documents and Settings\drajapaksha\My
>> Documents\Downloads\apache-cxf-2.2.10\b
>> in>java2ws -o hello.wsdl demo.hw.server.HelloWorld
>> JavaToWS Error: org.apache.cxf.tools.common.ToolException: Fail to load
>> class :
>> demo.hw.server.HelloWorld
>>
>> C:\Documents and Settings\drajapaksha\My
>> Documents\Downloads\apache-cxf-2.2.10\b
>> in>
>>
>> could you please provide any advise?
>>
>> On Tue, Mar 15, 2011 at 2:24 PM, Freeman Fang <freeman.fang@gmail.com
>> >wrote:
>>
>> 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
>>>
>>>
>>>
>
> --
> 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
>
>
Re: java2wsdl
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
using java2ws -h
you can get all usage list about this command, I believe this one is
what you want.
-cp <class-path> Specify the SEI and types class search path of
directories
and zip/jar files
Freeman
On 2011-3-15, at 下午5:33, Dil sewonedi wrote:
> hi,
>
> thank you for the quick responses, i tried again, by resetting the
> path
> variable and got the following error:
>
> C:\Documents and Settings\drajapaksha\My
> Documents\Downloads\apache-cxf-2.2.10\b
> in>java2ws -o hello.wsdl demo.hw.server.HelloWorld
> JavaToWS Error: org.apache.cxf.tools.common.ToolException: Fail to
> load
> class :
> demo.hw.server.HelloWorld
>
> C:\Documents and Settings\drajapaksha\My
> Documents\Downloads\apache-cxf-2.2.10\b
> in>
>
> could you please provide any advise?
>
> On Tue, Mar 15, 2011 at 2:24 PM, Freeman Fang
> <fr...@gmail.com>wrote:
>
>> 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
>>
>>
--
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
Re: java2wsdl
Posted by Dil sewonedi <se...@gmail.com>.
hi,
thank you for the quick responses, i tried again, by resetting the path
variable and got the following error:
C:\Documents and Settings\drajapaksha\My
Documents\Downloads\apache-cxf-2.2.10\b
in>java2ws -o hello.wsdl demo.hw.server.HelloWorld
JavaToWS Error: org.apache.cxf.tools.common.ToolException: Fail to load
class :
demo.hw.server.HelloWorld
C:\Documents and Settings\drajapaksha\My
Documents\Downloads\apache-cxf-2.2.10\b
in>
could you please provide any advise?
On Tue, Mar 15, 2011 at 2:24 PM, Freeman Fang <fr...@gmail.com>wrote:
> 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
>
>
Re: java2wsdl
Posted by Freeman Fang <fr...@gmail.com>.
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
> <fr...@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
Re: java2wsdl
Posted by Dil sewonedi <se...@gmail.com>.
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 <fr...@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
>
>
Re: java2wsdl
Posted by Freeman Fang <fr...@gmail.com>.
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