GWTBridge Not Found in GWT2.5

Just updat­ed the GWT SDK and end­ed up with a bro­ken app:

java.lang.NoClassDefFoundError: com/google/gwt/core/client/GWTBridge
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:169)
	at com.google.appengine.tools.development.agent.runtime.RuntimeHelper.checkRestricted(RuntimeHelper.java:70)
	at com.google.appengine.tools.development.agent.runtime.Runtime.checkRestricted(Runtime.java:64)

After some searching/experimenting and a cup of cof­fee it final­ly occurred to me: the pack­age name says client! So all the time I have been using a client-pack­age class in my server-side code. Kin­da sur­pris­ing that it did work nice­ly all the while.

Solu­tion: replace all com.google.gwt.core.client.GWT with com.google.gwt.core.shared.GWT in shared and server-side code.

One Reply to “GWTBridge Not Found in GWT2.5”

Leave a Reply

Your email address will not be published. Required fields are marked *