Wednesday, January 6, 2010

Re: How to exclude server-side jar file from GWT compile / validation

Hi

I think there are client packages in your abc.jar. And GWT is giving
you warning about these client packages as on server there should not
be client packages.

Regards

Rohit

On Jan 6, 9:23 am, Rob Wood <rob.a.w...@gmail.com> wrote:
> In my GWT app my RemoteService implementation executes code from
> abc.jar that has server-side only Java code.  I have included abc.jar
> in my project's class path, but it does not belong to any module
> inherited by this project's module.  When I run this app in Hosted
> Mode I get tons of Error messages in the console for classes in
> abc.jar, such as: Validating newly compiled units ... No source code
> is available for type ...; did you forget to inherit a required
> module?
>
> Since these classes are server-side only the GWT compiler should not
> be considering them at all.  What is curious is that on the server
> side also I'm using some Spring jar files and GWT does not complain
> about these.  The application runs in spite of these errors, but
> writing them to the console really slows down debugging.
> My environment: GWT 2.0, Eclipse 3.5 (SpringSource Tool Suite), JDK
> 1.5
>
> Thanks for any guidance you can give me.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate