My Quotes

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

Monday, January 30, 2012

SimpleDateFormat not available with GWT

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

            <!--  see -->

      <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"


<classpathentry kind="con"


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

and my errors are

gone now.

Mirroring Subversion Repository

Create a new repository to be the mirror:

·         svnadmin create MIRROR_CONTAINER

·         Create a "pre-revprop-change" action by creating a hook script by the same name.

o        Go to MIRROR_CONTAINER\hooks.

o        create a file named pre-revprop-change.bat

o        The contents will be as follows

Change the <<SVN USER>> to the user who will be performing the sync

IF "%3" == "<<SVN USER>>" (goto :label1) else (echo "Only the syncuser user may change revision properties" >&2 )

exit 1

goto :eof


exit 0

·         Save this file

·         Initialize a path within the repository to contain the mirrored data, and specify the source by

o        If the path has spaces then enlose them with the double quotes

o        For example my remote repository (MIRROR_CONTAINER) was in my shared folder so I use like the following

·         svnsync init --username <<SVN USER>> file:///"<<MIRROR_CONTAINER>>" <<BASE SVN location>> svn://

·         svnsync sync --username <<SVN USER>> file:///"<<MIRROR_CONTAINER>>"

Eclipe SVN integration after deleting a project

Once you delete a project in eclipse, the SVN sharing will automatically go OFF.

Without knowing this, I was trying to update the SVN plugin again and again.

The easy way is to right click on the Project à Share Project à Choose SVN and give your SVN location again.

Its as simple as that