yup, the plugin looks for two things, first you must be using the GWT 1.6.x libs, and second, you must have a [project]/war/WEB-INF/web.xml file.
as Isaac said: if you are missing the web.xml you'll have to add it, then disable gwt for that project, refresh the project (so the war/WEB-INF/web.xml file appears in eclipse) then re-enable gwt for that project. That should switch the launcher to using HostedMode rather than GWTShell. -jason On Apr 13, 2009, at 7:51 AM, Kelvin wrote: > > of course it works if I launch the Hosted Mode by general java > application and choose "com.google.gwt.dev.HostedMode" as Main class. > But I have to configurate source path/class path etc. So I would like > to launch with GWT eclipse plugin if possible :P > > On Apr 13, 8:03 pm, Salvador Diaz <[email protected]> wrote: >> You might want to check your launch configuration (Click on the Debug >> icon in the toolbar, then "Debug configurations..." then "Java >> application" then the name of your launcher ) and make sure that >> you're using com.google.gwt.dev.HostedMode as the main class (in the >> "Main" tab) >> >> On Apr 11, 4:15 am, Kelvin <[email protected]> wrote: >> >>> Thanks for you advice. >> >>> My orginal project is a eclipse dynamic web project(WST), I rename >>> the >>> "WebContent" folder to "war" and modify the .classpath file to make >>> sure that the WST sense the change and fit the GWT 1.6 war layout. >> >>> Then I enable the GWT nature and launch the Hosted Mode, It still >>> launched with GWT 1.5 GWTShell. >> >>> Strange... >> >>> On Apr 10, 10:36 pm, Isaac Truett <[email protected]> wrote: >> >>>> As I understand it, thepluginhas to detect that you're using the >>>> new >>>> war layout in order to use the new hosted mode. You should be >>>> able to >>>> convince it of this by adding war/web-inf/web.xml. You will also >>>> need >>>> to disable the GWT nature, refresh the project (F5) and re-enable >>>> the >>>> GWT nature. >> >>>> On Fri, Apr 10, 2009 at 10:31 AM, Kelvin <[email protected]> >>>> wrote: >> >>>>> I installed Googlepluginfor eclipse3.4 and enable gwt nature for >>>>> an >>>>> existing GWT project. >> >>>>> However, it always launch hosted mode with deprecated >>>>> 'com.google.gwt.dev.GWTShell' >> >>>>> WARNING: 'com.google.gwt.dev.GWTShell' is deprecated and will be >>>>> removed in a future release. >>>>> Use 'com.google.gwt.dev.HostedMode' instead. >>>>> (To disable this warning, pass -Dgwt.nowarn.legacy.tools as a JVM >>>>> arg.) >> >>>>> But I wonder why then I created a brand new GWT project with >>>>> Google >>>>> plugin, It can be launched with 'com.google.gwt.dev.HostedMode'. >> >>>>> Sorry for posting the question here as I cannot find a group for >>>>> Google EclipsePlugin:P > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
