While running schemagen I got the error
error: java.util.Currency does not have a no-arg default constructor
this problem is related to the following location:
at com.tickets.common.util.Money.getCurrency (Unknown Source)
at com.tickets.common.util.Money (Unknown Source)
While searching forums I found that there is soln to use XmlAdapter as mentioned on http://weblogs.java.net/blog/kohsuke/archive/2005/09/using_jaxb_20s.html
If I add the @XmlJavaTypeAdapter(CurrencyAdapter.class) to the culprit class it works..However I have too many classes having this description.
I am intrested in adding this annotation to the package-info.java...
this annotaion gives compile errors ...as
"The annotation @XmlJavaTypeAdapter is disallowed for this location"
I am using the latest jar of JAXB implementation