Vaadin with gwtgraphics (

Hello there

I can not track down the error for that piece of code, I have all imports and libraries.
Could you point me to my error.

package info.iniko.mycanvas.vaadin;           

import com.vaadin.Application;
import com.vaadin.ui.Window;
import org.vaadin.gwtgraphics.client.DrawingArea;
 * @author jm.iniko
 * @version 

public class CanvasApplication extends Application {

    public void init() {
	Window mainWindow = new Window("CanvasApplication");
        DrawingArea canvas = new DrawingArea(400, 400);


The exception raised is following (environment glassfish+netbeans)

java.lang.UnsupportedOperationException: ERROR: GWT.create() is only usable in client code!  It cannot be called, for example, from server code.  If you are running a unit test, check that your test case extends GWTTestCase and that GWT.create() is not called from within an initializer or constructor.

seems that the code on google code is not working properly

Thanks again for any support,



GWT Graphics is a pure GWT library, so you cannot use it in the server side code of Vaadin. To use use GWT Graphics with Vaadin, you have to create your own widget.