Even with cxf-xjc-ts${version}.jar, it doesn't work.
What are all the needed jars please?
I have, in addition to all cxf-${xxx}.jar, the following jars :
-cxf-xjc-ts-2.1.2-20080801.152655-5.jar
-cxf-xjc-dv-2.1.2-20080801.152655-5.jar
-jaxb-api-2.1.jar
-jaxb-commons-lang-plugin-2.1.3.jar
-jaxb-impl-2.1.6.jar
-jaxb-xjc-2.1.6.jar
-FastInfoset-1.2.2.jar
-geronimo-stax-api_1.0_spec-1.0.1.jar
-hyperjaxb3-runtime-0.1.jar
-stax-utils-20060502.jar
Thank you.
dkulp wrote:
>
>
> Are you using the big cxf bundle jar or individual jars. If individual
> jars,
> you'll need the jars:
> cxf-xjc-ts-${version}.jar
> cxf-xjc-dv-${version}.jar
>
> That said, it's strange that it's showing the -Xcommons-lang plugin there
> but
> it's not working. It's finding it. I'm not sure what to make of that.
> Hmmm.....
>
> Dan
>
>
>
> On Friday 08 August 2008 11:18:35 am kouss wrote:
>> when trying -xjc-Xdv (and the same for-xjc-Xts), I have this error :
>>
>> [java] WSDLToJava Error: XJC reported 'BadCommandLineException' for -xjc
>> argument:-extension -xjc-Xdv
>> [java]
>> [java] avaliable plugin options:
>> [java] -Xcommons-lang : generate toString(), hashCode()
>> and
>> equals() for generated code using Jakarta's common-lang
>> [java] [-Xcommons-lang:ToStringStyle=MULTI_LINE_STYLE
>> [java] | DEFAULT_STYLE
>> [java] | NO_FIELD_NAMES_STYLE
>> [java] | SHORT_PREFIX_STYLE
>> [java] | SIMPLE_STYLE
>> [java] | <Fully qualified class name of a ToStringStyle subtype>]
>> [java]
>> [java] -Xlocator : enable source location support for
>> generated code
>> [java] -Xsync-methods : generate accessor methods with the
>> 'synchronized' keyword
>> [java] -mark-generated : mark the generated code as
>> @javax.annotation.Generated
>> [java] -episode <FILE> : generate the episode file for
>> separate
>> compilation
>> [java]
>> [java]
>>
>> Is there a missing jar?
>>
>> dkulp wrote:
>> > 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
>
>
>
> --
> Daniel Kulp
> [EMAIL PROTECTED]
> http://www.dankulp.com/blog
>
>
--
View this message in context:
http://www.nabble.com/problem-to-generate-toString%2C-equals-and-hashcode-methods-with-wsdl2jav-tp18893320p18894716.html
Sent from the cxf-user mailing list archive at Nabble.com.