有熟悉JWS-WS CXF开的吗?问个小问题。。。
在网站:http://fusesource.com/docs/framework/2.2/jaxws/JAXWSServiceDevJavaFirstWSDLGen.html
看到一篇文章,里头有java2wsdl的一段ANT脚本,我改改跑起来出现如下错误:
JavaToWS Error: org.apache.cxf.tools.common.ToolException: Fail to load class : service.Greeter
请问这个参数是干嘛的:<arg value="service.Greeter" />
----------------------
如果打不开网页,附下脚本:
<project name="java2ws" basedir=".">
<property name="lib.dir" location="../WebContent/WEB-INF/lib" />
<property name="build.classes.dir" location="${basedir}/build/classes" />
<path id="master-classpath">
<pathelement location="${build.classes.dir}" />
<fileset dir="${lib.dir}">
<include name="*.jar" />
</fileset>
</path>
<target name="WSDLGen">
<java classname="org.apache.cxf.tools.java2ws.JavaToWS" fork="true">
<arg value="-wsdl" />
<arg value="service.Greeter" />
<classpath>
<path refid="master-classpath" />
</classpath>
</java>
</target>
</project>