I forgot to say that I found the solution thanks to Broyer:
http://code.google.com/p/google-web-toolkit/issues/detail?id=4274

Comment 6  by t.broyer, Dec 15, 2009

@zhamdi.into: this line comes from an app compiled with GWT 1.6 or
1.7, not an app
compiled with GWT 2.0.
Compare http://bit.ly/8agy1L and http://bit.ly/7IBmZw
Check your hosted.html

Comment 7 by zhamdi.into, Dec 15, 2009

@t.broyer: infinite thanks for your explanations, you made me realize
that doing a
simple refresh on the browser doesn't suffice (on any of firefox,
chrome nor. ie),
doing a clean of the cache from the browser options menu resolves the
problem.

Many thanks for the fast reply also.

Best Regards
Zied Hamdi
http://www.larueacote.fr

On Jan 29, 2:19 am, bcsumner <[email protected]> wrote:
> 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 Hamdihttp://nextstreet.eu";
>
>
>
> <[email protected]> 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 [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