Vaadin on Glasfish

I am trying to setup GlassFish Tools Bundle For Eclipse V 1.2
Eclipse 3.5.1
Java™ SE Runtime Environment (build 1.6.0_16-b01)
Vaadin 6.2.3
Windows 7

I have the following application

public class E1interopApplication extends Application {
@Override
public void init() {
Window mainWindow = new Window(“E1interop Application”);
Label label = new Label(“Hello Vaadin user”);
mainWindow.addComponent(label);
setMainWindow(mainWindow);
}

}

But I am getting the following error in the log file and the webpage shows up as blank. Does anyone know how to fix this?

[#|2010-02-11T15:12:24.417-0600|INFO|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=25;_ThreadName=Thread-1;|Warning: no superclass of givent has ClientWidget annotation. Component will not be mapped correctly on client side.|#]

[#|2010-02-11T15:12:24.489-0600|SEVERE|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=25;_ThreadName=Thread-1;|java.lang.NullPointerException
at java.io.Reader.(Reader.java:61)
at java.io.InputStreamReader.(InputStreamReader.java:55)
at com.vaadin.terminal.gwt.server.JsonPaintTarget.hasClientWidgetMapping(JsonPaintTarget.java:1080)
at com.vaadin.terminal.gwt.server.JsonPaintTarget.getTag(JsonPaintTarget.java:1038)
at com.vaadin.ui.AbstractComponent.paint(AbstractComponent.java:663)
at com.vaadin.ui.AbstractOrderedLayout.paintContent(AbstractOrderedLayout.java:146)
at com.vaadin.ui.AbstractComponent.paint(AbstractComponent.java:710)
at com.vaadin.ui.Panel.paintContent(Panel.java:240)
at com.vaadin.ui.Window.paintContent(Window.java:553)
at com.vaadin.ui.AbstractComponent.paint(AbstractComponent.java:710)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.paintAfterVariableChanges(AbstractCommunicationManager.java:779)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(AbstractCommunicationManager.java:592)
at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(CommunicationManager.java:260)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:438)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:619)
|#]

[#|2010-02-11T15:12:24.492-0600|INFO|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=25;_ThreadName=Thread-1;|Warning: no superclass of givent has ClientWidget annotation. Component will not be mapped correctly on client side.|#]

[#|2010-02-11T15:14:27.690-0600|INFO|glassfishv3.0|javax.enterprise.system.tools.admin.com.sun.enterprise.v3.admin|_ThreadID=27;_ThreadName=Thread-1;|Server shutdown initiated|#]

[#|2010-02-11T15:14:28.522-0600|INFO|glassfishv3.0|javax.enterprise.system.tools.admin.com.sun.enterprise.v3.admin|_ThreadID=28;_ThreadName=Thread-1;|Server shutdown initiated|#]

Feb 11, 2010 3:14:32 PM com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: JVM invocation command line:
D:\gfb\jre\bin\java.exe
-cp
D:/gfb/glassfishv3/glassfish/modules/glassfish.jar
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
-XX:NewRatio=2
-XX:+LogVMOutput
-XX:LogFile=D:\Program Files\JavaCode\gf-workdomain.metadata.plugins\com.sun.enterprise.jst.server.sunappsrv92\domain1/logs/jvm.log
-Xmx512m
-client
-javaagent:D:/gfb/glassfishv3/glassfish/lib/monitor/btrace-agent.jar=unsafe=true,noServer=true
-Dosgi.shell.telnet.maxconn=1
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Dfelix.fileinstall.dir=D:\gfb\glassfishv3\glassfish/modules/autostart/
-Djavax.net.ssl.keyStore=D:\Program Files\JavaCode\gf-workdomain.metadata.plugins\com.sun.enterprise.jst.server.sunappsrv92\domain1/config/keystore.jks
-Dosgi.shell.telnet.port=6666
-Djava.security.policy=D:\Program Files\JavaCode\gf-workdomain.metadata.plugins\com.sun.enterprise.jst.server.sunappsrv92\domain1/config/server.policy
-Dfelix.fileinstall.poll=5000
-Dcom.sun.aas.instanceRoot=D:\Program Files\JavaCode\gf-workdomain.metadata.plugins\com.sun.enterprise.jst.server.sunappsrv92\domain1
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dosgi.shell.telnet.ip=127.0.0.1
-Djava.endorsed.dirs=D:\gfb\glassfishv3\glassfish/modules/endorsed;D:\gfb\glassfishv3\glassfish/lib/endorsed
-Dcom.sun.aas.installRoot=D:\gfb\glassfishv3\glassfish
-Djava.ext.dirs=D:\gfb\jre/lib/ext;D:\gfb\jre/jre/lib/ext;D:\Program Files\JavaCode\gf-workdomain.metadata.plugins\com.sun.enterprise.jst.server.sunappsrv92\domain1/lib/ext
-Dfelix.fileinstall.bundles.new.start=true
-Djavax.net.ssl.trustStore=D:\Program Files\JavaCode\gf-workdomain.metadata.plugins\com.sun.enterprise.jst.server.sunappsrv92\domain1/config/cacerts.jks
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Djava.security.auth.login.config=D:\Program Files\JavaCode\gf-workdomain.metadata.plugins\com.sun.enterprise.jst.server.sunappsrv92\domain1/config/login.conf
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Dfelix.fileinstall.debug=1
-Dorg.glassfish.web.rfc2109_cookie_names_enforced=false
-Djava.library.path=D:/gfb/glassfishv3/glassfish/lib;D:/gfb/jre/bin;D:/gfb/glassfishv3/glassfish;C:/Windows/Sun/Java/bin;C:/Windows/System32;C:/Windows;D:/gfb/jre/jre/bin/client;D:/gfb/jre/jre/bin;C:/Windows/System32/wbem;C:/Windows/System32/WindowsPowerShell/v1.0;D:/Program Files/QuickTime/QTSystem;C:/Program Files/IBM/SQLLIB/BIN;C:/Program Files/IBM/SQLLIB/FUNCTION;C:/Program Files/IBM/SQLLIB/samples/repl;C:/Program Files/Microsoft SQL Server/100/Tools/Binn;C:/Program Files/Microsoft SQL Server/100/DTS/Binn;C:/Program Files/Microsoft SQL Server/100/Tools/Binn/VSShell/Common7/IDE;D:/Program Files/Notepad++;D:/Program Files/TortoiseSVN/bin;C:/Users/czupet;D:/Program Files/apache-ant-1.8.0RC1/bin
com.sun.enterprise.glassfish.bootstrap.ASMain
-domainname
domain1
-asadmin-args
start-domain,–domaindir,D:\Program Files\JavaCode\gf-workdomain.metadata.plugins\com.sun.enterprise.jst.server.sunappsrv92,–debug,–verbose=false,domain1
-instancename
server
-verbose
false
-debug
true
-asadmin-classpath
D:/gfb/glassfishv3/glassfish/modules/admin-cli.jar
-asadmin-classname
com.sun.enterprise.admin.cli.AsadminMain
-upgrade
false
-domaindir
D:/Program Files/JavaCode/gf-workdomain/.metadata/.plugins/com.sun.enterprise.jst.server.sunappsrv92/domain1
-read-stdin
true
[#|2010-02-11T15:14:37.428-0600|INFO|glassfishv3.0|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=27;_ThreadName=Thread-23;|JMXStartupService: Stopped JMXConnectorServer: service:jmx:rmi://tron:8686/jndi/rmi://tron:8686/jmxrmi|#]

[#|2010-02-11T15:14:37.430-0600|INFO|glassfishv3.0|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=27;_ThreadName=Thread-23;|JMXStartupService and JMXConnectors have been shut down.|#]

[#|2010-02-11T15:14:37.434-0600|INFO|glassfishv3.0|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=27;_ThreadName=Thread-23;|Shutdown procedure finished|#]

You have probably run into a bug in the GlassFish 3.0 classloader if that is the version being used.
See
this thread
,
this ticket
and the
corresponding Glassfish issue
.

Fixed in Glassfish 3.1, and as a workaround, you can include the gwt-user.jar in your WAR.

Thank You

including gwt-user.jar did the trick.

yup, inluding this library solves the issue, thanks Henri for workaround for the time until glassfish 3.1