Does nobody have tried using Axis 2 with JAXB binding?
If so, your information would be very helpful for me.
I could then save a lot of time because I have then not to do conversion
from Webservice types to my model.
Thank you very much,
Ralph
> Hi,
>
> I want to use JAXB RI 2 as databinding for axis.
> I downloaded the last nightly build and saw a
> org.apache.axis2.jaxbri.CodeGenerationUtility class.
>
> So I think, it's now implemented?
> Then I added the axis jars (from the bin distribution) and the jaxb 2 jars
> from Sun to the Classpath of my ant file.
>
> ant snippet:
> <taskdef name="codegen"
> classname="org.apache.axis2.tool.ant.AntCodegenTask">
> <classpath>
> <fileset dir="${lib.axis}" includes="*.jar" />
> <fileset dir="${lib.jaxb}" includes="*.jar" />
> </classpath>
> </taskdef>
>
> Then I got the error message:
> "JAX-B RI binding extension not in Classpath".
>
> It seems that the above mentioned class is not in the nightly build? So I
> took additionally the one class from the source to the classpath.
>
> Now I get the error message:
> wsdl2java:
>
> BUILD FAILED
> ...
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
>
>
> Nothing else!
>
> Any help would be very appreciated!
>
> Regards,
> Ralph