GWTBridge Not Found in GWT2.5

Just updated the GWT SDK and ended up with a broken 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 coffee it finally occurred to me: the package name says client! So all the time I have been using a client-package class in my server-side code. Kinda surprising that it did work nicely all the while.

Solution: 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 *