Description
I was unable to run WSDL2JAVA using the classpath below, until I placed because XercesImpl.jar in the lib directory. I think it is important to add XercesImpl.jar there, so there can be a standardized way to activate the WSDL2Java class. See[1] for more info.
<path id="ws-stack.classpath">
<pathelement location="${build.classes.dir}"/>
<fileset dir="${env.CXF_HOME}/lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="generateClientCode">
<java classname="org.apache.cxf.tools.wsdlto.WSDLToJava">
<arg value="-client"/>
<arg value="-d"/>
<arg value="src"/>
<arg value="ShoppingService.wsdl"/>
<classpath>
<path refid="ws-stack.classpath"/>
</classpath>
</java>
</target>
[1] http://www.nabble.com/Problem-generating-CXF-client-for-eBay-Shopping-API-WSDL-tf4291138.html