As mentioned on this thread http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/f0c373180b37247a/dc9360d447816855, using JAXB generated classes works if you include the JAXB source files in your GWT compilation classpath. You have to remove some of the classes but the imports you mentioned should be included and compile fine (with warnings).
On Apr 16, 3:42 am, Paul Robinson <[email protected]> wrote: > RalfM wrote: > > I also tried to use JAXB generated classes in GWT. When i add the JAXB > > Sources to the GWT Compiler it works with a lot of errors. But when i > > tried to use some imports( import > > javax.xml.bind.annotation.XmlElement; import > > javax.xml.bind.annotation.XmlRootElement;) the compiler fails. > > > Has anyone a solution to use JAXB generated classes in GWT? > > No. JAXB uses code that's not translatable to javascript, so you can't > use it in GWT (though you can use it server-side) > > Paul --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
