Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Help stuck on Hibernate+GWT+SmartGWT application

    Dear gurus ;)

    I've just started playing around with SmartGWT 2.4, SmartGWTEE 2.4, Hibernate 3.6.2 and GWT 2.3.0, using Eclipse.

    I am trying to program a very basic web app, where I can take out all my objects in a ListGrid. So far I am getting this error:

    Code:
    20:26:08.031 [ERROR] [hibernatesmartgwtilian] Unable to load module entry point class com.astra.challenge.hibernate.client.HibernateSmartGWTIlian (see associated exception for details)
    java.lang.NullPointerException: null
        at com.smartgwt.client.widgets.grid.ListGrid.setDataSource(ListGrid.java:12535)
        at com.astra.challenge.hibernate.client.HibernateSmartGWTIlian.onModuleLoad(HibernateSmartGWTIlian.java:24)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
        at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
        at java.lang.Thread.run(Thread.java:662)
    My files are as follows:

    HibernateSmartGWTIlian.gwt.xml
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <module rename-to='hibernatesmartgwtilian'>
      <!-- Inherit the core Web Toolkit stuff.                        -->
      <inherits name='com.google.gwt.user.User'/>
    
      <!-- Other module inherits                                      -->
      <inherits name="com.smartgwtee.SmartGwtEE"/>
      <inherits name="com.smartgwt.SmartGwt"/>
      
      <!-- Specify the app entry point class.                         -->
      <entry-point class='com.astra.challenge.hibernate.client.HibernateSmartGWTIlian'/>
    
      <!-- Specify the paths for translatable code                    -->
      <source path='client'/>
      <source path='shared'/>
    
    </module>
    HibernateSmartGWTIlian.java
    Code:
    package com.astra.challenge.hibernate.client;
    
    import com.google.gwt.core.client.EntryPoint;
    import com.smartgwt.client.data.DataSource;
    import com.smartgwt.client.widgets.IButton;
    import com.smartgwt.client.widgets.grid.ListGrid;
    import com.smartgwt.client.widgets.layout.VLayout;
    import com.smartgwt.client.types.ListGridEditEvent;
    import com.smartgwt.client.widgets.events.ClickEvent;
    import com.smartgwt.client.widgets.events.ClickHandler;  
    
    
    /**
     * Entry point classes define <code>onModuleLoad()</code>.
     */
    public class HibernateSmartGWTIlian implements EntryPoint {
    
    	public void onModuleLoad() {
    		
            final ListGrid listGrid = new ListGrid();  
            listGrid.setWidth(700);  
            listGrid.setHeight(224);  
            listGrid.setAlternateRecordStyles(true);  
            listGrid.setDataSource(DataSource.get("person"));  
            listGrid.setAutoFetchData(true);  
            listGrid.setShowFilterEditor(true);  
            listGrid.setCanEdit(true);  
            listGrid.setEditEvent(ListGridEditEvent.CLICK);  
            listGrid.setCanRemoveRecords(true);  
      
            IButton newButton = new IButton("Add New");  
            newButton.addClickHandler(new ClickHandler() {  
                public void onClick(ClickEvent event) {  
                    listGrid.startEditingNew();  
                }  
            });  
      
            VLayout layout = new VLayout(15);  
            layout.addMember(listGrid);  
            layout.addMember(newButton);  
      
            layout.draw();  
        }  
    
    }

    server.properties
    Code:
    webRoot: __AUTODETECT__  
    
    gwtModuleName=hibernatesmartgwtilian
    
    isomorphicPathRootRelative: $gwtModuleName/sc
      
      
      
    # -------------- PICK DATABASE TO USE --------------------  
    
    sql.defaultDatabase: Mysql  
    
    # -------------- SETTINGS FOR MYSQL --------------------  
    
    sql.Mysql.database.type: mysql  
    sql.Mysql.interface.type: dataSource  
    sql.Mysql.driver: com.mysql.jdbc.jdbc2.optional.MysqlDataSource  
    sql.Mysql.driver.databaseName: astrachallenge 
    sql.Mysql.driver.serverName: localhost  
    sql.Mysql.driver.portNumber: 3306
    sql.Mysql.driver.user: root  
    sql.Mysql.driver.password: password
      
    # -------------- LOADING APP AND DATASOURCE DEFINITIONS --------------------  
      
    project.datasources: $webRoot/ds  
    project.ui: $webRoot/shared/ui  
    project.apps: $webRoot/shared/app  
      
    RPCManager.enabledBuiltinMethods: *

    person.ds.xml
    Code:
    <DataSource  
        ID="person"  
        serverType="hibernate"  
        tableName="PERSON"  
    >  
        <fields>  
            <field name="id"            type="sequence"   hidden="true"         primaryKey="true"                />  
            <field name="firstName"     type="text"       title="First Name"   	length="50"    required="true"   />  
            <field name="lastName" 	    type="text"       title="Last Name"     length="50"    required="true"   />  
            <field name="age"       	type="integer"    title="Age"                                            />  
            <field name="address1"    	type="text"       title="Address 1"     length="500"      				 />  
            <field name="address2"     	type="text"       title="Address 2"     length="500" 					 />  
            <field name="city"  		type="text"       title="City"          length="100"					 />  
            <field name="country"       type="text"       title="Country"       length="100" 					 />  
            <field name="zipCode"    	type="text"       title="Zip Code"      length="20"                      />  
            <field name="gender"        type="enum"       title="Gender"                                          >  
    		            <valueMap>  
                    <value>Male</value>  
                    <value>Female</value>  
                </valueMap>  
            </field>  
            <field name="email"    		type="text"       title="E-mail"        length="200"      			 />  
        </fields>	
    </DataSource>
    web.xml
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd">
    
    <web-app>
      
      <!-- Servlets -->
      <servlet>
        <servlet-name>greetServlet</servlet-name>
        <servlet-class>com.astra.challenge.hibernate.server.GreetingServiceImpl</servlet-class>
      </servlet>
      
      <servlet-mapping>
        <servlet-name>greetServlet</servlet-name>
        <url-pattern>/hibernatesmartgwtilian/greet</url-pattern>
      </servlet-mapping>
      
      <!-- Default page to serve -->
      <welcome-file-list>
        <welcome-file>HibernateSmartGWTIlian.html</welcome-file>
      </welcome-file-list>
    
    </web-app>
    My Hibernate are correct, I've already tested them on another project.

    I can't seem to find the information that suits me and I'm quite a novice in the J2EE world. Could someone please direct me through the task and tell me where I'm messed up?

    Thank you in advance,
    Ilian

    #2
    Have you loaded the datasource using DataSourceLoader in your host html page? You are also missing some configuration in your web.xml like the DataSourceLoader servlet mapping. Have a look at the web.xml from one of the samples like the built-in-ds sample.
    Last edited by smartgwt.dev; 16 May 2011, 10:57.

    Comment


      #3
      Your DataSource isn't loading. All the different mistakes that could cause this are listed in the FAQ.

      Comment


        #4
        Originally posted by smartgwt.dev
        Have you loaded the datasource using DataSourceLoader in your host html page?
        Here is my host html page
        Code:
        <html>
          <head>
            <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        
            <link type="text/css" rel="stylesheet" href="HibernateSmartGWTIlian.css">
        
            <title>Web Application Starter Project</title>
          
            <script type="text/javascript" language="javascript" src="hibernatesmartgwtilian/hibernatesmartgwtilian.nocache.js"></script>
          </head>                   -->
          <body>
        
            <!-- OPTIONAL: include this if you want history support -->
            <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
            
            <!-- RECOMMENDED if your web app will not function without JavaScript enabled -->
            <noscript>
              <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
                Your web browser must have JavaScript enabled
                in order for this application to display correctly.
              </div>
            </noscript>
        
            <!--load datasources from server -->
        	<script src="sc/DataSourceLoader?dataSource=person"></script>
          </body>
        </html>
        I added the <!-- load datasources from server --> after your comment but it still doesn't seem to work.

        Still this error:
        Code:
        21:04:01.269 [ERROR] [hibernatesmartgwtilian] Unable to load module entry point class com.astra.challenge.hibernate.client.HibernateSmartGWTIlian (see associated exception for details)
        java.lang.NullPointerException: null
            at com.smartgwt.client.widgets.grid.ListGrid.setDataSource(ListGrid.java:12535)
            at com.astra.challenge.hibernate.client.HibernateSmartGWTIlian.onModuleLoad(HibernateSmartGWTIlian.java:24)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
            at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193)
            at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
            at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
            at java.lang.Thread.run(Thread.java:662)

        Comment


          #5
          Originally posted by Isomorphic
          Your DataSource isn't loading. All the different mistakes that could cause this are listed in the FAQ.
          Yes I just read through it I'm missing the servlet in web.xml.
          Could you please tell me/direct me to a place where it's explained how to import/create my own DataSourceLoader servlet, please?

          Thank you.

          Comment


            #6
            Originally posted by smartgwt.dev
            Have you loaded the datasource using DataSourceLoader in your host html page? You are also missing some configuration in your web.xml like the DataSourceLoader servlet mapping. Have a look at the web.xml from one of the samples like the built-in-ds sample.
            Code:
            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
                                     "http://java.sun.com/dtd/web-app_2_3.dtd">
            <web-app>
             <!-- Servlets -->
             <servlet>
              <servlet-name>greetServlet</servlet-name>
              <servlet-class>com.astra.challenge.hibernate.server.GreetingServiceImpl</servlet-class>
             </servlet>
             <servlet>
              <servlet-name>DataSourceLoader</servlet-name>
              <display-name>DataSourceLoader</display-name>
              <servlet-class>com.isomorphic.servlet.DataSourceLoader</servlet-class>
             </servlet>
             <servlet>
              <servlet-name>Init</servlet-name>
              <servlet-class>com.isomorphic.base.Init</servlet-class>
              <load-on-startup>1</load-on-startup>
             </servlet>
             <servlet-mapping>
              <servlet-name>greetServlet</servlet-name>
              <url-pattern>/hibernatesmartgwtilian/greet</url-pattern>
             </servlet-mapping>
             <servlet-mapping>
              <servlet-name>DataSourceLoader</servlet-name>
              <url-pattern>/builtinds/sc/DataSourceLoader</url-pattern>
             </servlet-mapping>
             <!-- Default page to serve -->
             <welcome-file-list>
              <welcome-file>HibernateSmartGWTIlian.html</welcome-file>
             </welcome-file-list>
            </web-app>
            just added this, taken from the build-in-ds and I get this output on the console:

            Code:
            Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
            Successfully processed C:\Users\ilian\workspace\HibernateSmartGWTIlian\war\WEB-INF/appengine-web.xml
            Successfully processed C:\Users\ilian\workspace\HibernateSmartGWTIlian\war\WEB-INF/web.xml
            [WARN] EXCEPTION 
            java.lang.ClassNotFoundException: com.isomorphic.servlet.DataSourceLoader
            	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            	at java.security.AccessController.doPrivileged(Native Method)
            	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            	at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:176)
            	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
            	at org.mortbay.util.Loader.loadClass(Loader.java:91)
            	at org.mortbay.util.Loader.loadClass(Loader.java:71)
            	at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:73)
            	at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:242)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
            	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
            	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
            	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
            	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
            	at org.mortbay.jetty.Server.doStart(Server.java:224)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:186)
            	at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:149)
            	at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:170)
            	at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:119)
            	at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500)
            	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055)
            	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804)
            	at com.google.gwt.dev.DevMode.main(DevMode.java:309)
            [ERROR] javax.servlet.ServletContext log: unavailable
            javax.servlet.UnavailableException: com.isomorphic.servlet.DataSourceLoader
            	at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:79)
            	at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:242)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
            	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
            	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
            	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
            	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
            	at org.mortbay.jetty.Server.doStart(Server.java:224)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:186)
            	at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:149)
            	at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:170)
            	at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:119)
            	at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500)
            	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055)
            	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804)
            	at com.google.gwt.dev.DevMode.main(DevMode.java:309)
            
            [WARN] failed DataSourceLoader: java.lang.NullPointerException
            [WARN] EXCEPTION 
            java.lang.ClassNotFoundException: com.isomorphic.base.Init
            	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            	at java.security.AccessController.doPrivileged(Native Method)
            	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            	at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:176)
            	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
            	at org.mortbay.util.Loader.loadClass(Loader.java:91)
            	at org.mortbay.util.Loader.loadClass(Loader.java:71)
            	at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:73)
            	at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:242)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
            	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
            	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
            	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
            	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
            	at org.mortbay.jetty.Server.doStart(Server.java:224)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:186)
            	at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:149)
            	at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:170)
            	at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:119)
            	at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500)
            	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055)
            	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804)
            	at com.google.gwt.dev.DevMode.main(DevMode.java:309)
            [ERROR] javax.servlet.ServletContext log: unavailable
            javax.servlet.UnavailableException: com.isomorphic.base.Init
            	at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:79)
            	at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:242)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
            	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
            	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
            	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
            	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
            	at org.mortbay.jetty.Server.doStart(Server.java:224)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:186)
            	at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:149)
            	at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:170)
            	at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:119)
            	at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500)
            	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055)
            	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804)
            	at com.google.gwt.dev.DevMode.main(DevMode.java:309)
            
            [WARN] failed Init: java.lang.NullPointerException
            [WARN] Failed startup of context com.google.apphosting.utils.jetty.DevAppEngineWebAppContext@4d2ceb{/,C:\Users\ilian\workspace\HibernateSmartGWTIlian\war}
            org.mortbay.util.MultiException[java.lang.NullPointerException, java.lang.NullPointerException]
            	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:656)
            	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
            	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
            	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
            	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
            	at org.mortbay.jetty.Server.doStart(Server.java:224)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:186)
            	at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:149)
            	at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:170)
            	at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:119)
            	at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500)
            	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055)
            	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804)
            	at com.google.gwt.dev.DevMode.main(DevMode.java:309)
            java.lang.NullPointerException
            	at java.lang.Class.isAssignableFrom(Native Method)
            	at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:256)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
            	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
            	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
            	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
            	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
            	at org.mortbay.jetty.Server.doStart(Server.java:224)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:186)
            	at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:149)
            	at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:170)
            	at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:119)
            	at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500)
            	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055)
            	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804)
            	at com.google.gwt.dev.DevMode.main(DevMode.java:309)
            java.lang.NullPointerException
            	at java.lang.Class.isAssignableFrom(Native Method)
            	at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:256)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
            	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
            	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
            	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
            	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
            	at org.mortbay.jetty.Server.doStart(Server.java:224)
            	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
            	at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:186)
            	at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:149)
            	at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:170)
            	at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:119)
            	at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500)
            	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055)
            	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804)
            	at com.google.gwt.dev.DevMode.main(DevMode.java:309)
            The server is running at http://localhost:8888/

            Comment


              #7
              You need to include all the Smart GWT Server jars in your project. These are located under smartgwtee-2.4\lib in the distribution.

              I'd suggest you first run one of the bundled samples like built-in-ds from Eclipse so that you understand the basic project setup. There is a README.txt file within each sample directory. Make sure you read this.

              Comment


                #8
                Originally posted by smartgwt.dev
                You need to include all the Smart GWT Server jars in your project. These are located under smartgwtee-2.4\lib in the distribution.

                I'd suggest you first run one of the bundled samples like built-in-ds from Eclipse so that you understand the basic project setup. There is a README.txt file within each sample directory. Make sure you read this.
                I've been trying to, but I can't seem to get them work :(

                This is what build-in-ds serves as errors ...

                ....
                Actually it does work now, although all these errors.
                Code:
                [DEBUG] [builtinds] - Validating newly compiled units
                	[ERROR] [builtinds] - Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928/gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/EventBus.java'
                		[ERROR] [builtinds] - Line 24: No source code is available for type com.google.web.bindery.event.shared.EventBus; did you forget to inherit a required module?
                		[ERROR] [builtinds] - Line 28: No source code is available for type com.google.web.bindery.event.shared.HandlerRegistration; did you forget to inherit a required module?
                		[ERROR] [builtinds] - Line 28: No source code is available for type com.google.web.bindery.event.shared.Event<H>.Type<H>; did you forget to inherit a required module?
                		[ERROR] [builtinds] - Line 48: No source code is available for type com.google.web.bindery.event.shared.Event<H>; did you forget to inherit a required module?
                		[ERROR] [builtinds] - Line 68: Cannot cast from GwtEvent<capture#1-of ?> to Event<?>
                		[ERROR] [builtinds] - Line 69: No source code is available for type com.google.web.bindery.event.shared.UmbrellaException; did you forget to inherit a required module?
                		[ERROR] [builtinds] - Line 76: Cannot cast from GwtEvent<capture#3-of ?> to Event<?>
                	[ERROR] [builtinds] - Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928/gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/LegacyHandlerWrapper.java'
                		[ERROR] [builtinds] - Line 19: No source code is available for type com.google.web.bindery.event.shared.HandlerRegistration; did you forget to inherit a required module?
                	[ERROR] [builtinds] - Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928/gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/ResettableEventBus.java'
                		[ERROR] [builtinds] - Line 27: No source code is available for type com.google.web.bindery.event.shared.ResettableEventBus; did you forget to inherit a required module?
                		[ERROR] [builtinds] - Line 49: Cannot cast from GwtEvent.Type<H> to Event.Type<H>
                		[ERROR] [builtinds] - Line 49: No source code is available for type com.google.web.bindery.event.shared.Event<H>.Type<H>; did you forget to inherit a required module?
                		[ERROR] [builtinds] - Line 53: No source code is available for type com.google.web.bindery.event.shared.HandlerRegistration; did you forget to inherit a required module?
                		[ERROR] [builtinds] - Line 59: Cannot cast from GwtEvent.Type<H> to Event.Type<H>
                		[ERROR] [builtinds] - Line 68: No source code is available for type com.google.web.bindery.event.shared.Event<H>; did you forget to inherit a required module?
                	[ERROR] [builtinds] - Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928/gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/SimpleEventBus.java'
                		[ERROR] [builtinds] - Line 27: No source code is available for type com.google.web.bindery.event.shared.SimpleEventBus; did you forget to inherit a required module?
                		[ERROR] [builtinds] - Line 32: Cannot cast from GwtEvent.Type<H> to Event.Type<H>
                		[ERROR] [builtinds] - Line 32: No source code is available for type com.google.web.bindery.event.shared.Event<H>.Type<H>; did you forget to inherit a required module?
                		[ERROR] [builtinds] - Line 36: No source code is available for type com.google.web.bindery.event.shared.HandlerRegistration; did you forget to inherit a required module?
                		[ERROR] [builtinds] - Line 42: Cannot cast from GwtEvent.Type<H> to Event.Type<H>
                		[ERROR] [builtinds] - Line 51: No source code is available for type com.google.web.bindery.event.shared.Event<H>; did you forget to inherit a required module?
                	[ERROR] [builtinds] - Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928/gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/UmbrellaException.java'
                		[ERROR] [builtinds] - Line 24: No source code is available for type com.google.web.bindery.event.shared.UmbrellaException; did you forget to inherit a required module?
                	[ERROR] [builtinds] - Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201104261928/gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/testing/CountingEventBus.java'
                		[ERROR] [builtinds] - Line 29: No source code is available for type com.google.web.bindery.event.shared.testing.CountingEventBus; did you forget to inherit a required module?
                		[ERROR] [builtinds] - Line 41: Cannot cast from GwtEvent.Type<H> to Event.Type<H>
                		[ERROR] [builtinds] - Line 41: No source code is available for type com.google.web.bindery.event.shared.Event<H>.Type<H>; did you forget to inherit a required module?
                		[ERROR] [builtinds] - Line 45: No source code is available for type com.google.web.bindery.event.shared.HandlerRegistration; did you forget to inherit a required module?
                		[ERROR] [builtinds] - Line 51: Cannot cast from GwtEvent.Type<H> to Event.Type<H>
                		[ERROR] [builtinds] - Line 60: No source code is available for type com.google.web.bindery.event.shared.Event<H>; did you forget to inherit a required module?
                		[ERROR] [builtinds] - Line 80: The method getCount(Event.Type<?>) in the type CountingEventBus is not applicable for the arguments (GwtEvent.Type<capture#5-of ?>)
                Last edited by immitev; 16 May 2011, 12:20.

                Comment


                  #9
                  Please use GWT 2.2 for now. GWT 2.3 support will be added in the upcoming release.

                  Comment

                  Working...
                  X