My Quotes


When U were born , you cried and the world rejoiced
Live U'r life in such a way that when you go
THE WORLD SHOULD CRY






Showing posts with label GWT. Show all posts
Showing posts with label GWT. Show all posts

Monday, January 30, 2012

SimpleDateFormat not available with GWT


Fix  - Add the following lines of code in your .gwt.xml

            <!--  see http://code.google.com/p/gwtx/ -->

      <inherits name="com.googlecode.gwtx.Java" />

b. Add the gwtx-1.5.3.jar to your WEB-INF/lib

Unable to start Google APP Engine java.lang.NoSuchMethodError: org.mortbay.thread.Timeout


This usual indicates problems with the classpath. Do you have multiple versions of Jetty in your classpath by any chance?

To identify duplicate classes in eclipse, hit Ctrl+Shift+T to bring the 'Open Type' dialog. Search for the class org.mortbay.thread.Timeout. Ideally it should only come in gwt-dev.jar, but I suspect in your case some other jar file would also have it.

Also open .classpath in your eclipse

GWT container comes before the APP ENGINE

<classpathentry kind="con"

path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>

<classpathentry kind="con"

path="com.google.appengine.eclipse.core.GAE_CONTAINER"/>



I had the same issue and I swapped the order of the classpath

and my errors are

gone now.