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

Reply via email to