I think from command prompt you will still need to ensure that the classpath
includes the jaxws-api and impl jars shipped with CXF (or a compatible
version). I forgot to ask are you using JDK6? JDK 6 ships with jaxws & jaxb
api+impl and maybe there is some version mismatch.



On Mon, Jun 1, 2009 at 11:15 PM, V77 <[email protected]> wrote:

>
> Hi Sam,
>
> Thanks for your help. I was trying to use the wsdl2java tool from command
> line rather than the ANT script. Anyways let me try out the ANT task to do
> this and get back to you.
>
> Best regards,
> V77
>
>
> Sam R wrote:
> >
> >  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.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/wsdl2java-tool-issue-tp23817730p23826225.html
>  Sent from the cxf-user mailing list archive at Nabble.com.
>
>

Reply via email to