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 to
http://meshcms.dev:8887/meshcms/resources/host_page.mfm?mode=file_manager&dir=meshcms/user_profile&gwt.codesvr=127.0.0.1:9997
(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 load module '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:
<module rename-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>