Solved, although I'm not entirely sure I understand this...and the dev mode error messages are still obscure.
But the problem turns out to have been caused by building the restricted configuration, but continuing to specify the original (full) configuration when I started GWT dev mode. Running production code in that environment continued to work fine, but when I switched to dev mode, it fell over in a pile. On Jan 5, 12:07 pm, Jim Douglas <[email protected]> wrote: > You lost me, Jeff. > > The "restriction" involves inheriting the normal .gwt.xml file and > adding these lines to cause it to compile just a single locale (with a > goal of reducing the build time from 15 minutes to a couple of > minutes): > > <?xml version="1.0" encoding="UTF-8"?> > <module rename-to='gwtwebclient'> > <inherits name='com.basis.bbj.web.gwt.GWTWebClient'/> > <extend-property name="locale" values="en_US" /> > <set-property name="locale" value="en_US"/> > </module> > > That builds with no problems, and I can run in production mode with > the project compiled this way. When I run the same configuration in > dev mode, it apparently crashes and burns attempting to resolve the > client side locale. > > On Jan 5, 11:56 am, Jeff Chimene <[email protected]> wrote: > > > > > On Wed, Jan 5, 2011 at 12:43 PM, Jim Douglas <[email protected]> wrote: > > > > This is driving me around the bend. Our production configuration > > > builds for all browsers & several languages. > > > > For development / testing purposes, I'm trying to define a restricted > > > configuration that just hard codes a single locale, like this: > > > > <?xml version="1.0" encoding="UTF-8"?> > > > <module rename-to='gwtwebclient'> > > > <inherits name='com.basis.bbj.web.gwt.GWTWebClient'/> > > > <extend-property name="locale" values="en_US" /> > > > <set-property name="locale" value="en_US"/> > > > </module> > > > > That configuration seems to work fine in production mode, setting the > > > GWT client Locale to "en_US". But this line crashes and burns in > > > development mode: > > > > m_i18n = GWT.create(I18N.class); > > > > II18n is a bunch of constants: > > > > package com.basis.bbj.web.gwt.client.i18n; > > > > import com.google.gwt.i18n.client.Constants; > > > > public interface I18N extends Constants > > > { > > > �...@defaultstringvalue("Click to reload application") > > > String clickToReloadApplication(); > > > ... > > > } > > > > FWIW, I've read this several times, hoping to find some clue about > > > what I'm doing wrong: > > > >http://code.google.com/webtoolkit/doc/latest/DevGuideI18nLocale.html > > > > I can use some suggestions; maybe I'm just missing something really > > > stupid. > > > > GWT dev mode reports the following less-than-enlightening error > > > messages: > > > > 00:01:14.521 [DEBUG] Rebinding com.basis.bbj.web.gwt.client.i18n.I18N > > > > 00:01:14.521 [DEBUG] Invoking > > > com.google.gwt.dev.javac.standardgeneratorcont...@203317c5 > > > > 00:01:14.521 [ERROR] Error while executing the JavaScript provider for > > > property 'locale' > > > com.google.gwt.core.client.JavaScriptException: (TypeError): u[a] is > > > not a function fileName: > > >http://localhost:8080/gwtwebclient/gwtwebclient.nocache.js > > > Typically, this happens when you don't have a browser-specific module > > available. Check your server log for 404 errors. Since you've stipulated > > that you're compiling in a "restricted configuration", I'd start there. > > Also, clean up your server directory to remove obsolete files and redeploy. -- 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.
