I've just had exactly the same problem. Turned out that the hosted mode browser had the previous version of the hosted.html file cached. I pulled it up in the browser by entering the url directly and it showed the 1.5 version even though the app server was receiving a request for the file. Shift refresh in the browser retrieved the correct version and things are now working fine.
On May 7, 11:42 am, jsantaelena <[email protected]> wrote: > Thomas, thank you for the reply. > > Now, that you said, I checked it out and I'm using SDK 5 in all > places. And, once I'm using the same eclipse lauch configuration that > I were using before changind the command line arguments (added - > noserver and changed the -startupUrl), it couldn't be the problem. > > It's looks like some initialilzation problem, once I haven't calling > through hosted.html. If you take a look at this html, you will see > that the correct initialization is there (external.gwtOnLoad(window, > modName, "1.6")). > > On 7 maio, 12:15, Thomas Broyer <[email protected]> wrote: > > > > > On 7 mai, 15:26, jsantaelena <[email protected]> wrote: > > > > Hi All, > > > > I'm trying to execute the hosted mode with -noserver. > > > > What I did: > > > > Compile my GWT Module to target/work/webapp > > > Run jetty:run-exploded where the exploded path is target/work/webapp > > > Started HostedMode -noserver -port 8080 > > > -startupUrlhttp://localhost:8080/myapp/myapp/main.htmlcom.myapp.App > > > > And I'm getting: > > > > Invalid version number "1.5" passed to external.gwtOnLoad(), expected > > > "1.6"; your hosted mode bootstrap file may be out of date; if you are > > > using -noserver try recompiling and redeploying your app > > > > What wrong did I? > > > It looks like you compiled you app with a 1.5 SDK (HostedMode expected > > to receive 1.6 but was passed 1.5 by the selection script that is > > deployed at your server, hence the error message); the deployed app > > and the hosted mode must use the same SDK version. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
