Can you try using the xjc plugins that we have built in to make sure at least 
they work OK?

-xjc-Xdv    (default values injected)
and/or  
-xjc-Xts     (toString methods)

If they don't work, the somethings probably wrong in the code.   If they work, 
then it migh be a classpath/classloader issue.

Dan



On Friday 08 August 2008 10:51:36 am kouss wrote:
> I would like to have toString, equals and hashcode methods in the generated
> beans by wsdl2java with cxf.
> This is what I have done :
>
>         <java classname="org.apache.cxf.tools.wsdlto.WSDLToJava"
> fork="true">
>             <arg value="-client" />
>               <!--<arg value="-verbose"/>-->
>             <arg value="-d" />
>             <arg value="${userProfileService.src.generated}" />
>             <arg value="-b" />
>             <arg
> value="${userProfileService.src.resources}/${userProfileService.bindings.na
>me}" />
>             <arg
> value="-xjc-Xcommons-lang:ToStringStyle=MULTI_LINE_STYLE"/> <arg
> value="${userProfileService.wsdl.dir}/${userProfileService.wsdl.name}" />
>               <classpath>
>                 <path refid="cxfbuildpath" />
>             </classpath>
>         </java>
>
> My build path is defined as follows :
>
> <path id="cxfbuildpath">
>         <path refid="buildLibs" />
>         <fileset dir="lib/cxf">
>             <include name="**/*.jar" />
>         </fileset>
>     </path>
>
> and in my "/lib/cxf", I have cxf jars and, particularly,
> jaxb-commons-lang-plugin-2.1.3.jar and jaxb-xjc-2.1.6.jar.
>
> The problem is that no method (tostring, equals, hashcode) was generated.
>
> Have you an idea about the problem?
>
> Thank you.



-- 
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to