Hi,

we have a problem with the xjc 'ts' plugin in combination with the commons-lang 
plugin.

We have to use the commons-lang plugin in order to get equals() and hashCode() 
methods into the
generated code. So we use the wsdl2java switch "-xjc-Xcommons-lang" to enable 
this plugin.

However, if we use this switch, we get invalid code because the ts plugin is 
being executed too!
Although we did not use the switch "-xjc-Xts". So we get two toString() methods 
in the same class:
One from commons-lang and one from ts.

Here is the result of the different switches:

1. no "-xjc" at all
   --> no toString, hashCode and equals (like expected)
2. "-xjc-Xcommons-lang"
   --> toString, hashCode and equals from commons-lang plugin (like expected)
   --> a 2nd toString from the ts plugin (this is not expected, because there 
was no "-xjc-Xts")
3. "-xjc-Xts"
   --> toString from ts plugin (like expected)

We are using cxf 2.2.4 in a single jar (not the modules). So the ts plugin is 
already bundled within
the cxf.jar. But why is the ts plugin being executed if we use 
"-xjc-Xcommons-lang"?

Is there a way to explicitly disable the ts plugin?


Kind Regards,
Martin

Reply via email to