On Jun 21, 7:35 am, shawnjohnson <
shawnjohnson...@gmail.com> wrote:
> Thank for the reply. I'm only marshalling/unmarshalling on the server-side
> - so does that mean I should move those classes into a "server" package?
> That's even if the annotation is in the shared bean? Yes, still using
> GWT-RPC. Is the workaround as simple as this?
>
> My.gwt.xml (before)
> <module>
> <source path="common"/></module> <module> <source path="common">
> <exclude name="MyXmlAdapter1.java" />
> <exclude name="MyXmlAdapter1.java" />
> </source>
>
>
>
>
>
>
>
> On Wednesday, June 20, 2012 6:16:03 PM UTC-4, Andrea Boscolo wrote:
>
> > Such annotations are not GWT compatible (i.e., they are not known to the
> > GWT emulated JRE and definitely cannot be compiled in js, even providing
> > the relative sources - that I think they can be found in jaxb-api-src.jar
> > inside the jaxb distribution).
> > To allow jaxb annotations (and annotations only) to be used in
> > client/shared side, you have to tell the gwt compiler to compile those
> > classes ignoring such annotations while still allow the server side to use
> > them.