I had a similar problem in my application.  After upgrading to 2.0
from 1.7 I got a blank page in dev mode and an error in the Firefox
Javascript console saying "external.gwtOnLoad is not a function".
After trying a bunch of stuff without much luck, I changed the name of
my module, the reference to the application js in the "launcher" html
(if you generated your project using the eclipse templates this is
"<project root>/war/<module name>.html"), and the name of the
"launcher" html page.  Everything seems to work fine now.  I had seen
hints elsewhere that this may be due to artifacts from old compiles
still hanging around, but I didn't take the time to research it
fully.  My guess is you don't really need to change the name of the
launcher html and that just renaming the module and the reference to
it in the html is enough, but I didn't go back to check since I wanted
the names in sync anyway.  Hope that helps.

On Dec 15 2009, 12:39 pm, "Zied Hamdi http://nextstreet.eu";
<zhamdi.i...@gmail.com> wrote:
> Hi,
>
> I moved my 1.6 project to the new 2.0 GWT under eclipse and since that
> moment I can't evolve anymore (since 2 days): I have javascript errors
> that doesn't even let the code reach the onModuleLoad() method. I did
> an upgrade on my eclipse so it's impossible to return back to the 1.6
> version (didn't find any link to download the older versions), I think
> I've reached the point of no return :-) so I really must get out of
> this situation but I have no clue about
> what's going wrong. In the code :
>
> 17functiongwtOnLoad(errFn, modName, modBase){
> 18 $moduleName = modName;
> 19 $moduleBase = modBase;
> 20 if (!external.gwtOnLoad(window, modName, "1.6")) {
> 21 if (errFn) {
> 22 errFn(modName);
> 23 }
> 24 }
> 25}
>
> externalexists but it doesn't contain anygwtOnLoadmethod. that's
> all I can say, to find where is the 'external' definition, I don't
> know how to do, and I'm convinced I find my self debugging the GWT
> java to js compiler that doesn't sound good at all :-).
>
> Any help is really really welcome,
> Best Regards,
> Zied

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to