ClassNotFoundException: com.google.gwt.core.client.GWTBridge

This post will explain the cause of this exception and provide an easy fix – with no need to add extra jars to your classpath or manually manipulate your jars.

I first saw this exception when I upgraded a project from GWT 2.4 to GWT 2.5.

The project also uses GXT 2 and 3 running side by side.

After the upgrade I saw this in the logs:

…………..

Caused by: java.lang.NoClassDefFoundError: com/google/gwt/core/client/GWTBridge
at com.extjs.gxt.ui.client.core.FastMap.<init>(FastMap.java:139)
at com.extjs.gxt.ui.client.data.RpcMap.<init>(RpcMap.java:69)
at com.extjs.gxt.ui.client.data.BaseModelData.set(BaseModelData.java:125)
at com.extjs.gxt.ui.client.data.BaseModel.set(BaseModel.java:143)
…………..

Continue reading