This is a legitimate bug.  We'll include the fix in the upcoming point
release.

On Tue, Apr 14, 2009 at 9:52 AM, Gert <[email protected]> wrote:

>
> Hi,
>
> Either I'm doing something wrong, or there is something wrong with the
> way the eclipse plugin hands out classpaths to the gwt Compiler. The
> Compiler loads the Generator class from <generate-with name=""> rules
> when parsing the .gwt.xml files, but it is not passed the war/WEB-INF/
> classes (aka, eclipse output) directory on it's classpath, resulting
> in a ClassNotFoundException when you hit the compile button.
>
> Create new Web Application (using the GWT SDK 1.6), name: plugintest,
> package: plugintest
> Create (empty) interface plugintest.client.Foo
> Create (empty) class plugintest.client.FooGenerator
> Edit plugintest.Plugintest.gwt.xml, add:
>  <generate-with class="plugintest.client.FooGenerator">
>        <when-type-assignable class="plugintest.client.Foo"/>
>  </generate-with>
> When you hit the GWT Compile Project button, the error you get is:
>
> Loading module 'plugintest.Plugintest'
>   [ERROR] Unable to load class 'plugintest.client.FooGenerator'
> java.lang.ClassNotFoundException: plugintest.client.FooGenerator
>
> ... instead of the expected exception that FooGenerator doesn't extend
> the Generator base class.
> Compiling manuall with
> java -cp %GWT_HOME%/gwt-user.jar;%GWT_HOME%/gwt-dev-windws.jar;src;war
> \WEB-INF\classes com.google.gwt.dev.Compiler plugintest.plugintest
> gives the same result.
>
> Note that the gwtc target in a build.xml generated by the
> webAppCreator does include the compiled classes in the classpath of
> the Compiler.
>
> It can be circumvented by adding war/WEB-INF/classes as a source
> folder or something, but that's obviously not intended.
>
> Is this a bug in the plugin, or is there a proper solution (and why is
> that not default) ?
>
> Gert
> >
>


-- 
Miguel

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to