GWT Developer Plugin works only sometimes

300 views
Skip to first unread message

cromoteca

unread,
Nov 20, 2009, 3:58:48 AM11/20/09
to Google Web Toolkit
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>

Yozons Support on Gmail

unread,
Nov 20, 2009, 12:01:51 PM11/20/09
to google-we...@googlegroups.com
Upgrading from 1.7 seems fraught with peril.  The docs even suggest that you install on a clean install of Eclipse, which is what I did because prior to that, my own attempt resulted in much confusion.

As the gwt.xml, it appears that there was a bug (supposedly fixed for RC 2) regarding uppercase characters in the gwt.xml file name.  I went with all lowercase letters and it seemed happy.  I also found that I had to add -Xms100m to my debug launch param for the JRE VM to avoid module load failures.  Hope this helps....

cromoteca

unread,
Nov 23, 2009, 4:02:50 AM11/23/09
to Google Web Toolkit
Truth is my application *works* with 2.0rc. It's just that most of the
times dev mode is not able to start and I need to try again until it
starts correctly.

I also forgot to mention that Firefox crashes frequently since I
installed the dev plugin. I really cannot believe that this release
has been tagged as "release candidate". It's a beta at best.

Chris Ramsdale

unread,
Nov 23, 2009, 11:49:07 AM11/23/09
to google-we...@googlegroups.com
We're tracking several FF related crashes that appear to be related to a single issue. It appears you are running FF 3.5.5 on Windows. Is this correct?

Thanks,
Chris

--

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.



Yozons Support on Gmail

unread,
Nov 23, 2009, 12:09:25 PM11/23/09
to google-we...@googlegroups.com
Not sure about others, but yes, I'm using FF 3.5.5.

Charlie M

unread,
Nov 25, 2009, 8:01:46 AM11/25/09
to Google Web Toolkit
Hi have exactly the same experince.

I have followed it through with a debugger. Whats happening is for
whatever reason its assuming the module name includes the package
path. This is the default unless you override it with the rename-to
attribute in the module config. Since its just using the module name
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 the
module in the default package not the one you are actually using.

For me removing the rename to and recompiling works, but it breaks the
RPCs since they uses the module name as the root of their serverlets
url.

Did you open an issue on this?

Charlie M

On Nov 20, 8:58 am, cromoteca <luci...@virgilio.it> 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">

Charlie M

unread,
Nov 25, 2009, 10:36:50 AM11/25/09
to Google Web Toolkit
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 <charlie....@gmail.com> 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

Riley

unread,
Nov 25, 2009, 11:58:45 AM11/25/09
to Google Web Toolkit
After performing a clean install of Eclipse, GAE 1.2.6, GWT 2 RC1,
and the new plugin, I'm getting the same issue. When I create a new
GAE+GWT project with the plugin and try to run it from dev mode in
firefox, I get the following error:

[ERROR] Failed to load module 'test' from user agent 'Mozilla/5.0
(Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316
Firefox/3.0.10 (.NET CLR 3.5.30729)' at riley_dell1:1609
com.google.gwt.core.ext.UnableToCompleteException: (see previous log
entries)
...


When I deploy the app to appspot, it works perfectly. Argh! Thanks
for posting issue 4274, Charlie. For me, removing the rename-to
attribute from test.gwt.xml doesn't seem to change any behavior.

cromoteca

unread,
Nov 25, 2009, 1:31:02 PM11/25/09
to Google Web Toolkit
Hi,

I'm happy to say that the loading issue seems to be completely solved
in RC2. I haven't seen any other crash yet, but yes, I'm using Firefox
3.5.5.

Yozons Support on Gmail

unread,
Nov 25, 2009, 1:36:57 PM11/25/09
to google-we...@googlegroups.com
RC2?  That's not yet been announced as available.  Is it now?

Sekhar

unread,
Nov 25, 2009, 11:25:54 AM11/25/09
to Google Web Toolkit
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.

Gal Dolber

unread,
Nov 25, 2009, 3:11:29 PM11/25/09
to google-we...@googlegroups.com
And you also need to update the eclipse plugin.
http://dl.google.com/eclipse/plugin/3.5/zips/gpe-e35-1.2rc1.zip :) 

2009/11/25 Gal Dolber <gal.d...@gmail.com>
Hey, GWT 2.0 rc2 just got out! :)

2009/11/25 Yozons Support on Gmail <yoz...@gmail.com>

RC2?  That's not yet been announced as available.  Is it now?

--

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Gal Dolber

unread,
Nov 25, 2009, 2:59:16 PM11/25/09
to google-we...@googlegroups.com
Hey, GWT 2.0 rc2 just got out! :)

2009/11/25 Yozons Support on Gmail <yoz...@gmail.com>
RC2?  That's not yet been announced as available.  Is it now?

Reply all
Reply to author
Forward
0 new messages