You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Venkat77 <ve...@gmail.com> on 2009/06/01 18:23:23 UTC

wsdl2java tool issue

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.


Re: wsdl2java tool issue

Posted by Daniel Kulp <dk...@apache.org>.
On Mon June 1 2009 12:23:23 pm Venkat77 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.

Slightly bizzarre as I did a grep for that error message and didn't find it in 
the CXF codebase anywhere.   Thus, I'm not sure where that message could be 
coming from.   :-(

What version of CXF are you using?


-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Re: wsdl2java tool issue

Posted by Sam R <sv...@gmail.com>.
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 <ve...@gmail.com> 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 <ve...@gmail.com> 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.
>
>

Re: wsdl2java tool issue

Posted by V77 <ve...@gmail.com>.
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 <ve...@gmail.com> 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.


Re: wsdl2java tool issue

Posted by V77 <ve...@gmail.com>.
Hi All,

The issue got resolved without any changes. all of a suden it started
working. I hope the classpath settings has not reflected properly in
eclipse.

Thnaks a lot Same & Daniel for spending your precious time in helping me
out.

Venkat


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 <ve...@gmail.com> 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-tp23817730p23844623.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: wsdl2java tool issue

Posted by Sam R <sv...@gmail.com>.
 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 <ve...@gmail.com> 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.
>
>