public ContactEntry createContact(String username)throws IllegalArgumentException {
// Create the entry to insert
ContactsService myService = new Contact
You can not use server side code in GWT directly.
As GWT will not be able to generate JavaScript for com.google.gdata.data.contacts.ContactEntry this is giving you above error.