Thanks for raising this, hope Google fixes this soon. Meanwhile, here's a workaround that's working for me. Say you have a GWT2 module under com.allurefx.gwt2 and you're trying the sample greet app, then:
(1) Remove the rename-to attribute for the module - when you run the app, it will create a directory com.allurefx.gwt2.GWT2, with com.allurefx.gwt2.GWT2.nocache.js (2) Edit the HTML to load com.allurefx.gwt2.GWT2/ com.allurefx.gwt2.GWT2.nocache.js (rather than the default gwt2/ gwt2.nocache.js) (3) Edit war/WEB-INF/web.xml to set url as /com.allurefx.gwt2.GWT2/ greet (rather than the default /gwt2/greet) Not the prettiest way to do it, but something to get going while Google fixes it. On Nov 25, 7:36 am, Charlie M <[email protected]> wrote: > Just in case any one is intersted. I have raised an issue for this: > > http://code.google.com/p/google-web-toolkit/issues/detail?id=4274 > > Charlie M > > On Nov 25, 1:01 pm, Charlie M <[email protected]> wrote: > > > > > Hi have exactly the same experince. > > > I have followed it through with a debugger. Whats happening is for > > whatever reason its assuming themodulename includes the package > > path. This is the default unless you override it with therename-to > > attribute in themoduleconfig. Since its just using themodulename > > not the full package path, when it tries to convert it to a path > > relative to the class path it won't work.So it ends up looking for > > themodulein the default package not the one you are actually using. > > > For me removing therename toand recompiling works, but it breaks the > > RPCs since they uses themodulename as the root of their serverlets > > url. > > > Did you open an issue on this? > > > Charlie M > > > On Nov 20, 8:58 am, cromoteca <[email protected]> wrote: > > > > Hi, > > > > yesterday I installed GWT 2.0 RC1 and it seems to work randomly. > > > Before opening an issue, I'd like to know if I'm the only one to > > > experience it. I was writing an application with 1.7 and I just > > > replaced the GWT files without any change of code. > > > > When I run the new dev mode, everything starts as normal. I browse > > > tohttp://meshcms.dev:8887/meshcms/resources/host_page.mfm?mode=file_man... > > > (mfm is mapped to FreeMarker, meshcms.dev points to localhost). > > > > In the development mode window, two elements are marked in red: > > > 00:01:48,887 [INFO] Connection received from 127.0.0.1:50316 > > > 00:01:48,995 [ERROR] Failed to loadmodule'meshcms' from user agent > > > 'Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.1.5) Gecko/ > > > 20091102 Firefox/3.5.5' at 127.0.0.1:50316 > > > > In the host_page.mfm tab there is another red line: > > > 00:01:48,995 [ERROR] Unable to find 'meshcms.gwt.xml' on your > > > classpath; could be a typo, or maybe you forgot to include a classpath > > > entry for source? > > > > There is no other error, even in the IDE. > > > > My setup is: > > > Windows 7 64bit > > > NetBeans 6.7 without GWT plugin (just an Ant task that launches dev > > > mode) > > > Firefox 3.5.5 > > > IE8 > > > > I just have to restart dev mode until it works. It seems to work > > > randomly, but when it works the application runs perfectly until I > > > close dev mode. > > > > My gwt.xml file is com.cromoteca.meshcms.Client.gwt.xml and contains: > > > > <modulerename-to="meshcms"> > > > <source path="client"/> > > > > <inherits name="com.google.gwt.user.User"/> > > > <inherits name="com.google.gwt.i18n.I18N"/> > > > <inherits name="com.google.gwt.user.theme.chrome.Chrome"/> > > > <inherits name="com.allen_sauer.gwt.dnd.gwt-dnd"/> > > > > <entry-point class="com.cromoteca.meshcms.client.core.Client"/> > > > > <stylesheet src="resources/client.css"/> > > > > <set-property name="user.agent" value="ie6,gecko1_8" /> > > > </module> > > > > So why is dev mode searching for meshcms.gwt.xml? > > > > My Ant task is: > > > > <target name="hosted-mode-run" depends="compile"> > > > <webproject1:java classname="com.google.gwt.dev.DevMode"> > > > <customize> > > > <jvmarg value="-Xss16M"/> > > > <jvmarg value="-Xmx256M"/> > > > <jvmarg value="-Dfile.encoding=utf-8"/> > > > <arg value="-war"/> > > > <arg value="build/web"/> > > > <arg value="-port"/> > > > <arg value="8887"/> > > > <arg value="-portHosted"/> > > > <arg value="9997"/> > > > <arg value="-startupUrl"/> > > > <arg value="index.html"/> > > > <arg value="com.cromoteca.meshcms.Client"/> > > > </customize> > > > </webproject1:java> > > > </target> -- 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.
