Wednesday, November 26, 2014

GWT and JAXB Basics Runtime

I am using CXF JAXB generated classes in a GWT application. I would like equals() and hashCode() to be added to the generated classes. I have successfully used the JAXB2 Basics Plugins (http://confluence.highsource.org/display/J2B/JAXB2+Basics+Plugins) and the JAXB2 Basics Runtime with CXF in the Maven POM to generate them. However, the generated classes are now incompatible with GWT. The classes have dependencies which are not emulated by GWT, e.g., java.util.ResourceBundle, java.net.URL.

I am considering using a CustomEqualsStrategy but that will still leave the org.jvnet.jaxb2_commons.locator.ObjectLocator class. Has anyone got this to work?

(I also posted this on StackOverflow.)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment