It should not. Can you provide your ant script.

Here's one that I am using and it works fine.

Makesure you pass classpath to the <java ...wsdl2java> task.

<project name="build" basedir="../." default=
"generate-serviceprovider-source">
<property name="cxf.home" location ="C:///Apache/apache-cxf-2.1.3"/>
<path id="cxf.classpath">
<fileset dir="${cxf.home}/lib">
<include name="*.jar"/>
</fileset>
</path>

 <target name="generate-serviceprovider-source">
<java classname="org.apache.cxf.tools.wsdlto.WSDLToJava" fork="true">
<arg value="-p"/>
<arg value="com.myapps.myservice.endpoint"/>
<arg value="-d"/>
<arg value="${basedir}/src/main/java"/>
<arg value="-xjc-npa,-nv,-p,com.myapps.myservice.endpoint.binding"/>
<arg value="-wsdlLocation"/>
<arg value="/wsdl/MyService.wsdl"/>
<arg value="-verbose"/>
<arg value="${basedir}/src/main/webapp/wsdl/MyService.wsdl"/>
<classpath>
                <path refid="cxf.classpath"/>
</classpath>
</java>
</target>

</project>


On Mon, Jun 1, 2009 at 11:23 AM, Venkat77 <[email protected]> wrote:

>
> i am new to cxf. when i was trying to generate artifacts using wsdl2java
> tool, i got an error message 'JAXWS frontend API not in the classpath'. I
> have tried different ways to refer jaxws jars in the classpath while
> invoking the batch file; but unsuccessful. please help.
> --
> View this message in context:
> http://www.nabble.com/wsdl2java-tool-issue-tp23817730p23817730.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>

Reply via email to