Friday, December 30, 2011

Deferred binding failed for ClientFactory

My app is running fine on my Linux machine with GWT 2.3. I'm now
trying to build it on a Windows box with GWT 2.4 (Eclipse 3.6 in both

When I run it in devmode from Eclipse, I get this error:

Uncaught exception: java.lang.RuntimeException: Deferred binding
failed for 'com.optix.cold.client.ClientFactory' (did you forget to
inherit a required module?)
at com.optix.cold.client.Cold.onModuleLoad2(

The line in question (#187) is:

ClientFactory clientFactory = GWT.create(ClientFactory.class);

My gwt.xml file includes:

<replace-with class="com.optix.cold.client.ClientFactoryImpl">
<when-type-is class="com.optix.cold.client.ClientFactory"/>

That's all lifted right out of the Activities and Places example

As I said, this all runs on GWT 2.3. I copied the files over in a zip
file, only changing the war/WEB-INF/lib/gwt-servlet.jar and gwt-
servlet-deps.jar to match 2.4.

I've also tried changing "new PlaceController(EventBus)" from the
deprecated (in 2.4) to

What could be going wrong?

My other apps are running fine, but I don't attempt deferred binding
in those.

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment