Announcement

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

    SmartGWT EE 2.5 GAEDS sample

    I would love to get the GAE sample working from the new 2.5 release but there is something wrong I can't seem to troubleshoot.

    Importing the project to Eclipse seemed to go well. I added some datanucleus jars to the path (3.0), copied all of the smartgwtee jars to war/WEB-INF/lib, and added the Appe Engine SDK (1.5.2). Those steps seemed to solve all of Eclipe's complaints about the project.

    When I launch the project it appears to compile alright and when I load the client in Firefox it looks like it should, except that the Country table is stuck "Loading data..." and I get this:

    Code:
    [ERROR] [GAEDS_js] - 16:14:44.159:XRP6:WARN:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):Bad data returned, ignoring: "<BR>com.isomorphic.servlet.IDACall top-level exception<BR>
    <PRE>
    java.lang.NoClassDefFoundError: Could not initialize class com.isomorphic.jpa.EMF
    	at com.isomorphic.jpa.JPADataSource.execute(JPADataSource.java:340)
    	at com.isomorphic.application.AppBase.executeDefaultDSOperation(AppBase.java:721)
    	at com.isomorphic.application.AppBase.executeAppOperation(AppBase.java:658)
    	at com.isomorphic.application.AppBase.execute(AppBase.java:491)
    	at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:1714)
    	at com.isomorphic.servlet.IDACall.handleDSRequest(IDACall.java:199)
    	at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:156)
    	at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:121)
    	at com.isomorphic.servlet.IDACall.doPost(IDACall.java:73)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    	at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
    	at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    	at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    	at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    	at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    	at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    	at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    	at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:351)
    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    	at org.mortbay.jetty.Server.handle(Server.java:326)
    	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
    	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
    	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
    	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
    </PRE>
    "
    Clicking the "Add some data" button yields this complaint:

    Code:
    [ERROR] [GAEDS_js] - 16:14:54.531:XRP2:WARN:RPCManager:Transport error - HTTP code: 500 for URL: /fillData, response: {operationId: "custom",
    clientContext: undef,
    context: Obj,
    transactionNum: 1,
    httpResponseCode: 500,
    httpResponseText: "<html>\n<head>\n<meta http-equiv="Content-..."[4379],
    xmlHttpRequest: [object XMLHttpRequest],
    transport: "xmlHttpRequest",
    status: -90,
    clientOnly: undef,
    httpHeaders: Obj,
    isStructured: true,
    callbackArgs: null,
    results: Obj,
    data: "Transport error - HTTP code: 500 for URL..."[51]}
    This same behavior occurs both locally and when I deploy the project to GAE

    And here's the Console view that goes with launching the application and opening it in the browser:

    Code:
    Initializing AppEngine server
    Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
    Successfully processed C:\eclipse\workspace\GAEDS\war\WEB-INF/appengine-web.xml
    Successfully processed C:\eclipse\workspace\GAEDS\war\WEB-INF/web.xml
    jetty-6.1.x
    ISC: Configuring log4j from: file:/C:/eclipse/workspace/GAEDS/war/WEB-INF/classes/log4j.isc.config.xml
    === 2011-08-08 21:47:09,141 [main] INFO  ISCInit - Isomorphic SmartClient Framework - Initializing
    === 2011-08-08 21:47:09,169 [main] INFO  ConfigLoader - Attempting to load framework.properties from CLASSPATH
    === 2011-08-08 21:47:09,343 [main] INFO  ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/C:/eclipse/workspace/GAEDS/war/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties
    === 2011-08-08 21:47:09,343 [main] INFO  ConfigLoader - Attempting to load project.properties from CLASSPATH
    === 2011-08-08 21:47:09,344 [main] INFO  ConfigLoader - Unable to locate project.properties in CLASSPATH
    === 2011-08-08 21:47:09,347 [main] INFO  ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/C:/eclipse/workspace/GAEDS/war/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
    === 2011-08-08 21:47:09,347 [main] INFO  ConfigLoader - Attempting to load server.properties from CLASSPATH
    === 2011-08-08 21:47:09,349 [main] INFO  ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/C:/eclipse/workspace/GAEDS/war/WEB-INF/classes/server.properties
    === 2011-08-08 21:47:09,359 [main] INFO  Logger - Logging system started.
    === 2011-08-08 21:47:09,359 [main] INFO  ISCInit - Isomorphic SmartClient Framework (SC_SNAPSHOT-2011-08-02/EVAL Deployment 2011-08-02) - Initialization Complete
    === 2011-08-08 21:47:09,361 [main] INFO  ISCInit - Auto-detected webRoot - using: C:\eclipse\workspace\GAEDS\war
    Started SelectChannelConnector@0.0.0.0:8888
    The server is running at http://localhost:8888/
    === 2011-08-08 21:47:17,327 [53-1] INFO  PoolManager - SmartClient pooling disabled for 'country_DataSource' objects
    === 2011-08-08 21:47:17,516 [53-1] DEBUG XML - Parsed XML from C:\eclipse\workspace\GAEDS\war\GAEDS_js\sc\system\schema\builtinTypes.xml: 8ms
    === 2011-08-08 21:47:17,789 [53-1] DEBUG XML - Parsed XML from C:\eclipse\workspace\GAEDS\war\ds\country_DataSource.ds.xml: 2ms
    === 2011-08-08 21:47:17,829 [53-1] DEBUG XML - Parsed XML from C:\eclipse\workspace\GAEDS\war\GAEDS_js\sc\system\schema\DataSource.ds.xml: 39ms
    === 2011-08-08 21:47:17,956 [53-1] DEBUG XML - Parsed XML from C:\eclipse\workspace\GAEDS\war\GAEDS_js\sc\system\schema\DataSourceField.ds.xml: 4ms
    === 2011-08-08 21:47:18,026 [53-1] DEBUG XML - Parsed XML from C:\eclipse\workspace\GAEDS\war\ds\city_DataSource.ds.xml: 2ms
    === 2011-08-08 21:48:11,987 [53-1] INFO  RequestContext - URL: '/GAEDS_js/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18': Moz (Gecko) with Accept-Encoding header
    === 2011-08-08 21:48:12,010 [53-1] DEBUG XML - Parsed XML from (in memory stream): 3ms
    === 2011-08-08 21:48:12,013 [53-1] DEBUG XML - Parsed XML from C:\eclipse\workspace\GAEDS\war\GAEDS_js\sc\system\schema\List.ds.xml: 1ms
    === 2011-08-08 21:48:12,070 [53-1] DEBUG RPCManager - Processing 1 requests.
    === 2011-08-08 21:48:12,084 [53-1] DEBUG RPCManager - Request #1 (DSRequest) payload: {
        criteria:{
        },
        operationConfig:{
            dataSource:"country_DataSource",
            operationType:"fetch",
            textMatchStyle:"substring"
        },
        startRow:0,
        endRow:75,
        componentId:"isc_ListGrid_0",
        appID:"builtinApplication",
        operation:"country_DataSource_fetch",
        oldValues:{
        }
    }
    === 2011-08-08 21:48:12,091 [53-1] INFO  IDACall - Performing 1 operation(s)
    === 2011-08-08 21:48:12,106 [53-1] DEBUG AppBase - [builtinApplication.country_DataSource_fetch] No userTypes defined, allowing anyone access to all operations for this application
    === 2011-08-08 21:48:12,135 [53-1] DEBUG AppBase - [builtinApplication.country_DataSource_fetch] No public zero-argument method named '_country_DataSource_fetch' found, performing generic datasource operation
    === 2011-08-08 21:48:12,136 [53-1] DEBUG JPADataSource - [builtinApplication.country_DataSource_fetch] Creating EntityManager and starting transaction.
    === 2011-08-08 21:48:12,140 [53-1] DEBUG EMF - [builtinApplication.country_DataSource_fetch] Initializing EMF provider
    === 2011-08-08 21:48:12,221 [53-1] ERROR IDACall - Top-level servlet error: 
    java.lang.NoSuchFieldError: NUCLEUS_CONTEXT_LOADER
    	at org.datanucleus.NucleusContext.<clinit>(NucleusContext.java:70)
    	at org.datanucleus.api.jpa.JPAEntityManagerFactory.<init>(JPAEntityManagerFactory.java:362)
    	at org.datanucleus.api.jpa.PersistenceProviderImpl.createEntityManagerFactory(PersistenceProviderImpl.java:91)
    	at javax.persistence.Persistence.createFactory(Persistence.java:172)
    	at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:112)
    	at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:66)
    	at com.isomorphic.jpa.EMFProviderLMT.<init>(EMFProviderLMT.java:71)
    	at com.isomorphic.jpa.EMFProviderLMT.<init>(EMFProviderLMT.java:60)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    	at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance_(Runtime.java:112)
    	at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance(Runtime.java:132)
    	at com.isomorphic.jpa.EMF.<clinit>(EMF.java:65)
    	at com.isomorphic.jpa.JPADataSource.execute(JPADataSource.java:340)
    	at com.isomorphic.application.AppBase.executeDefaultDSOperation(AppBase.java:721)
    	at com.isomorphic.application.AppBase.executeAppOperation(AppBase.java:658)
    	at com.isomorphic.application.AppBase.execute(AppBase.java:491)
    	at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:1714)
    	at com.isomorphic.servlet.IDACall.handleDSRequest(IDACall.java:199)
    	at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:156)
    	at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:121)
    	at com.isomorphic.servlet.IDACall.doPost(IDACall.java:73)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    	at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
    	at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    	at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    	at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    	at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    	at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    	at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    	at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:351)
    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    	at org.mortbay.jetty.Server.handle(Server.java:326)
    	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
    	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
    	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
    	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
    Any ideas?
    Last edited by RevMen; 8 Aug 2011, 13:48.

    #2
    Hi,

    For testing purposes try to run in command line `ant hosted` from `smartgwtee-2.5/samples/ds-gae`.

    If it does not work - post complete output here.

    Otherwise check if compiled project in eclipse (working `war` directory) contains file `WEB-INF/classes/META-INF/persistence.xml` (you can find this file in `ds-gae/src/META-INF/persistence.xml`). Can you post complete server side output when running in eclipse?

    Best regards,
    Alius

    Comment


      #3
      I was kind of curious about why the GAEDS sample was removed. Any comments?

      RevMen - I ditched the SmartGWT GAE JPA connectors after quite a bit of pain. Instead I now use Objectify and my own DataSource implementation. (this is not advice, merely sharing my experience).

      Comment


        #4
        Originally posted by atomatom
        I was kind of curious about why the GAEDS sample was removed. Any comments?

        RevMen - I ditched the SmartGWT GAE JPA connectors after quite a bit of pain. Instead I now use Objectify and my own DataSource implementation. (this is not advice, merely sharing my experience).
        I think this is where I'm headed. This is my second attempt at getting the GAE sample to work and I've failed both times for totally different reasons. It seems like it should be much easier to get a sample project working. The time I spend trouble-shooting a sample could instead be spent writing my own DataSource.

        Thanks for your reply, alius. I will try your suggestions before I give up.

        Comment


          #5
          I ran "ant hosted" from "smartgwtee-2.5/samples/ds-gae"

          The Web Server tab reports:

          Code:
          00:00:00.232 [INFO] Initializing AppEngine server
          00:00:02.422 [INFO] Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
          00:00:02.432 [WARN] Your working directory, (C:\eclipse\smartgwtee-2.5\samples\ds-gae) is not equal to your web application root (C:\eclipse\smartgwtee-2.5\samples\ds-gae\war) You will not be able to access files from your working directory on the production server.
          00:00:03.029 [INFO] Successfully processed C:\eclipse\smartgwtee-2.5\samples\ds-gae\war\WEB-INF/appengine-web.xml
          00:00:03.039 [INFO] Successfully processed C:\eclipse\smartgwtee-2.5\samples\ds-gae\war\WEB-INF/web.xml
          00:00:03.099 [INFO] jetty-6.1.x
          00:00:06.297 [ERROR] javax.servlet.ServletContext log: unavailable javax.servlet.UnavailableException: Servlet class com.smartgwt.sample.server.FillDataServlet is not a javax.servlet.Servlet at org.mortbay.jetty.servlet.ServletHolder.checkServletType(ServletHolder.java:362) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:243) 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:162) at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:172) 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.HostedMode.main(HostedMode.java:36)
          00:00:08.528 [INFO] Started SelectChannelConnector@0.0.0.0:8888
          00:00:08.619 [INFO] The server is running at http://localhost:8888/
          And the Development Mode tab reports:

          Code:
          00:00:00.012 [WARN] The class com.google.gwt.dev.HostedMode is deprecated and will be removed -- use com.google.gwt.dev.DevMode instead
          When opening http://127.0.0.1:8888/GAEDS.html?gwt.codesvr=127.0.0.1:9997 in Firefox, I see:

          Code:
          00:06:21.934 [ERROR] 18:08:32.873:XRP0:WARN:RPCManager:Class Country for query has not been resolved. Check the query and any imports specification, response: {operationId: "country_DataSource_fetch", clientContext: Obj, context: Obj, transactionNum: 0, httpResponseCode: 200, httpResponseText: "//isc_RPCResponseStart-->[{queueStatus:-..."[213], xmlHttpRequest: [object XMLHttpRequest], transport: "xmlHttpRequest", status: -1, clientOnly: undef, httpHeaders: Obj, isStructured: true, callbackArgs: null, results: Obj, queueStatus: -1, isDSResponse: true, invalidateCache: false, data: "Class Country for query has not been res..."[92], startRow: 0, endRow: 0, totalRows: 0}
          com.smartgwt.client.core.JsObject$SGWT_WARN: 18:08:32.873:XRP0:WARN:RPCManager:Class Country for query has not been resolved. Check the query and any imports specification, response: {operationId: "country_DataSource_fetch",
          clientContext: Obj,
          context: Obj,
          transactionNum: 0,
          httpResponseCode: 200,
          httpResponseText: "//isc_RPCResponseStart-->[{queueStatus:-..."[213],
          xmlHttpRequest: [object XMLHttpRequest],
          transport: "xmlHttpRequest",
          status: -1,
          clientOnly: undef,
          httpHeaders: Obj,
          isStructured: true,
          callbackArgs: null,
          results: Obj,
          queueStatus: -1,
          isDSResponse: true,
          invalidateCache: false,
          data: "Class Country for query has not been res..."[92],
          startRow: 0,
          endRow: 0,
          totalRows: 0} 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513) 	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105) 	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) 	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167) 	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281) 	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531) 	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) 	at java.lang.Thread.run(Thread.java:662)
          I click OK and both tables are empty. Clicking "Add some data" reports:

          Code:
          00:07:24.583 [ERROR] 18:09:35.522:XRP9:WARN:RPCManager:Transport error - HTTP code: 404 for URL: /fillData, response: {operationId: "custom", clientContext: undef, context: Obj, transactionNum: 1, httpResponseCode: 404, httpResponseText: "<html>\n<head>\n<meta http-equiv="Content-..."[3436], xmlHttpRequest: [object XMLHttpRequest], transport: "xmlHttpRequest", status: -90, clientOnly: undef, httpHeaders: Obj, isStructured: true, callbackArgs: null, results: Obj, data: "Transport error - HTTP code: 404 for URL..."[51]}
          com.smartgwt.client.core.JsObject$SGWT_WARN: 18:09:35.522:XRP9:WARN:RPCManager:Transport error - HTTP code: 404 for URL: /fillData, response: {operationId: "custom",
          clientContext: undef,
          context: Obj,
          transactionNum: 1,
          httpResponseCode: 404,
          httpResponseText: "<html>\n<head>\n<meta http-equiv="Content-..."[3436],
          xmlHttpRequest: [object XMLHttpRequest],
          transport: "xmlHttpRequest",
          status: -90,
          clientOnly: undef,
          httpHeaders: Obj,
          isStructured: true,
          callbackArgs: null,
          results: Obj,
          data: "Transport error - HTTP code: 404 for URL..."[51]} 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513) 	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105) 	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) 	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167) 	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281) 	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531) 	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) 	at java.lang.Thread.run(Thread.java:662)
          in the browser and this:

          Code:
          00:07:54.885 [WARN] /fillData: javax.servlet.UnavailableException: Servlet class com.smartgwt.sample.server.FillDataServlet is not a javax.servlet.Servlet
          on the Web Server tab.

          persistence.xml is where it's supposed to be
          Code:
          <?xml version="1.0" encoding="UTF-8"?>
          <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
            <persistence-unit name="ds" transaction-type="RESOURCE_LOCAL">
              <provider>org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider</provider>
              <class>com.smartgwt.sample.server.City</class>
              <class>com.smartgwt.sample.server.Country</class>
              <exclude-unlisted-classes>true</exclude-unlisted-classes>
              <properties>
                <property name="datanucleus.ConnectionURL" value="appengine"/>
                <property name="datanucleus.NontransactionalRead" value="true"/>
                <property name="datanucleus.NontransactionalWrite" value="false"/>
              </properties>
            </persistence-unit>
          </persistence>
          Can you post complete server side output when running in eclipse?
          You're going to have to point me to what you want if it's not this:
          Code:
          Initializing AppEngine server
          Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
          Successfully processed C:\eclipse\workspace\GAEDS\war\WEB-INF/appengine-web.xml
          Successfully processed C:\eclipse\workspace\GAEDS\war\WEB-INF/web.xml
          jetty-6.1.x
          ISC: Configuring log4j from: file:/C:/eclipse/workspace/GAEDS/war/WEB-INF/classes/log4j.isc.config.xml
          === 2011-08-09 23:17:31,307 [main] INFO  ISCInit - Isomorphic SmartClient Framework - Initializing
          === 2011-08-09 23:17:31,330 [main] INFO  ConfigLoader - Attempting to load framework.properties from CLASSPATH
          === 2011-08-09 23:17:31,493 [main] INFO  ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/C:/eclipse/workspace/GAEDS/war/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties
          === 2011-08-09 23:17:31,493 [main] INFO  ConfigLoader - Attempting to load project.properties from CLASSPATH
          === 2011-08-09 23:17:31,493 [main] INFO  ConfigLoader - Unable to locate project.properties in CLASSPATH
          === 2011-08-09 23:17:31,503 [main] INFO  ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/C:/eclipse/workspace/GAEDS/war/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
          === 2011-08-09 23:17:31,503 [main] INFO  ConfigLoader - Attempting to load server.properties from CLASSPATH
          === 2011-08-09 23:17:31,505 [main] INFO  ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/C:/eclipse/workspace/GAEDS/war/WEB-INF/classes/server.properties
          === 2011-08-09 23:17:31,514 [main] INFO  Logger - Logging system started.
          === 2011-08-09 23:17:31,515 [main] INFO  ISCInit - Isomorphic SmartClient Framework (SC_SNAPSHOT-2011-08-02/EVAL Deployment 2011-08-02) - Initialization Complete
          === 2011-08-09 23:17:31,516 [main] INFO  ISCInit - Auto-detected webRoot - using: C:\eclipse\workspace\GAEDS\war
          Started SelectChannelConnector@0.0.0.0:8888
          The server is running at http://localhost:8888/
          === 2011-08-09 23:18:09,258 [37-1] INFO  PoolManager - SmartClient pooling disabled for 'country_DataSource' objects
          === 2011-08-09 23:18:09,439 [37-1] DEBUG XML - Parsed XML from C:\eclipse\workspace\GAEDS\war\GAEDS_js\sc\system\schema\builtinTypes.xml: 8ms
          === 2011-08-09 23:18:09,574 [37-1] DEBUG XML - Parsed XML from C:\eclipse\workspace\GAEDS\war\ds\country_DataSource.ds.xml: 2ms
          === 2011-08-09 23:18:09,579 [37-1] DEBUG XML - Parsed XML from C:\eclipse\workspace\GAEDS\war\GAEDS_js\sc\system\schema\DataSource.ds.xml: 4ms
          === 2011-08-09 23:18:09,688 [37-1] DEBUG XML - Parsed XML from C:\eclipse\workspace\GAEDS\war\GAEDS_js\sc\system\schema\DataSourceField.ds.xml: 4ms
          === 2011-08-09 23:18:09,786 [37-1] DEBUG XML - Parsed XML from C:\eclipse\workspace\GAEDS\war\ds\city_DataSource.ds.xml: 2ms
          === 2011-08-09 23:19:01,778 [37-1] INFO  RequestContext - URL: '/GAEDS_js/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18': Moz (Gecko) with Accept-Encoding header
          === 2011-08-09 23:19:01,798 [37-1] DEBUG XML - Parsed XML from (in memory stream): 3ms
          === 2011-08-09 23:19:01,801 [37-1] DEBUG XML - Parsed XML from C:\eclipse\workspace\GAEDS\war\GAEDS_js\sc\system\schema\List.ds.xml: 1ms
          === 2011-08-09 23:19:01,808 [37-1] DEBUG RPCManager - Processing 1 requests.
          === 2011-08-09 23:19:01,826 [37-1] DEBUG RPCManager - Request #1 (DSRequest) payload: {
              criteria:{
              },
              operationConfig:{
                  dataSource:"country_DataSource",
                  operationType:"fetch",
                  textMatchStyle:"substring"
              },
              startRow:0,
              endRow:75,
              componentId:"isc_ListGrid_0",
              appID:"builtinApplication",
              operation:"country_DataSource_fetch",
              oldValues:{
              }
          }
          === 2011-08-09 23:19:01,859 [37-1] INFO  IDACall - Performing 1 operation(s)
          === 2011-08-09 23:19:01,886 [37-1] DEBUG AppBase - [builtinApplication.country_DataSource_fetch] No userTypes defined, allowing anyone access to all operations for this application
          === 2011-08-09 23:19:01,886 [37-1] DEBUG AppBase - [builtinApplication.country_DataSource_fetch] No public zero-argument method named '_country_DataSource_fetch' found, performing generic datasource operation
          === 2011-08-09 23:19:01,887 [37-1] DEBUG JPADataSource - [builtinApplication.country_DataSource_fetch] Creating EntityManager and starting transaction.
          === 2011-08-09 23:19:01,888 [37-1] DEBUG EMF - [builtinApplication.country_DataSource_fetch] Initializing EMF provider
          === 2011-08-09 23:19:01,998 [37-1] ERROR IDACall - Top-level servlet error: 
          java.lang.NoSuchFieldError: NUCLEUS_CONTEXT_LOADER
          	at org.datanucleus.NucleusContext.<clinit>(NucleusContext.java:70)
          	at org.datanucleus.api.jpa.JPAEntityManagerFactory.<init>(JPAEntityManagerFactory.java:362)
          	at org.datanucleus.api.jpa.PersistenceProviderImpl.createEntityManagerFactory(PersistenceProviderImpl.java:91)
          	at javax.persistence.Persistence.createFactory(Persistence.java:172)
          	at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:112)
          	at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:66)
          	at com.isomorphic.jpa.EMFProviderLMT.<init>(EMFProviderLMT.java:71)
          	at com.isomorphic.jpa.EMFProviderLMT.<init>(EMFProviderLMT.java:60)
          	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
          	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
          	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
          	at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance_(Runtime.java:112)
          	at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance(Runtime.java:132)
          	at com.isomorphic.jpa.EMF.<clinit>(EMF.java:65)
          	at com.isomorphic.jpa.JPADataSource.execute(JPADataSource.java:340)
          	at com.isomorphic.application.AppBase.executeDefaultDSOperation(AppBase.java:721)
          	at com.isomorphic.application.AppBase.executeAppOperation(AppBase.java:658)
          	at com.isomorphic.application.AppBase.execute(AppBase.java:491)
          	at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:1714)
          	at com.isomorphic.servlet.IDACall.handleDSRequest(IDACall.java:199)
          	at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:156)
          	at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:121)
          	at com.isomorphic.servlet.IDACall.doPost(IDACall.java:73)
          	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
          	at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
          	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
          	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
          	at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35)
          	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
          	at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
          	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
          	at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
          	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
          	at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
          	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
          	at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97)
          	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
          	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
          	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
          	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
          	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
          	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
          	at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
          	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
          	at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:351)
          	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
          	at org.mortbay.jetty.Server.handle(Server.java:326)
          	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
          	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
          	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
          	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
          	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
          	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
          	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

          Comment


            #6
            Hi,

            Your Web server tab clearly points to problems in your class path. Check this exception:
            Code:
            00:00:06.297 [ERROR] javax.servlet.ServletContext log: unavailable javax.servlet.UnavailableException: Servlet class com.smartgwt.sample.server.FillDataServlet is not a javax.servlet.Servlet
            How come that FillDataServlet class is not an instance of javax.servlet.Servlet? Check sources at `smartgwtee-2.5/samples/ds-gae/src/com/smartgwt/sample/server/FillDataServlet.java`. This class extends javax.servlet.http.HttpServlet. So check your settings in eclipse.

            As for the `ant hosted` - I guess you have several different datanucleus versions in your class path.

            PS. here how looks `ant clean` and `ant hosted` output on PC:
            Code:
            alius@alius-st:~/Downloads/smartgwtee-2.5/samples/ds-gae$ ant clean
            Buildfile: build.xml
            
            clean:
            
            BUILD SUCCESSFUL
            Total time: 1 second
            alius@alius-st:~/Downloads/smartgwtee-2.5/samples/ds-gae$ ant hosted
            Buildfile: build.xml
            
            libs:
                 [copy] Copying 19 files to /home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/WEB-INF/lib
                 [copy] Copying 10 files to /home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/WEB-INF/lib
            
            javac:
                [mkdir] Created dir: /home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/WEB-INF/classes
                [javac] Compiling 4 source files to /home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/WEB-INF/classes
                 [copy] Copying 5 files to /home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/WEB-INF/classes
            
            datanucleusenhance:
              [enhance] DataNucleus Enhancer (version 1.1.4) : Enhancement of classes
              [enhance] DataNucleus Enhancer completed with success for 2 classes. Timings : input=184 ms, enhance=66 ms, total=250 ms. Consult the log for full details
            
            gwtc:
                 [java] Compiling module com.smartgwt.sample.GAEDS
                 [java]    Compiling 6 permutations
                 [java]       Compiling permutation 0...
                 [java]       Compiling permutation 1...
                 [java]       Compiling permutation 2...
                 [java]       Compiling permutation 3...
                 [java]       Compiling permutation 4...
                 [java]       Compiling permutation 5...
                 [java]    Compile of permutations succeeded
                 [java] Linking into /home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/GAEDS_js
                 [java]    Link succeeded
                 [java]    Compilation succeeded -- 58.681s
            
            build:
            
            hosted:
                 [java] ISC: Configuring log4j from: file:/home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/WEB-INF/classes/log4j.isc.config.xml
                 [java] === 2011-08-10 07:16:23,513 [main] INFO  ISCInit - Isomorphic SmartClient Framework - Initializing
                 [java] === 2011-08-10 07:16:23,540 [main] INFO  ConfigLoader - Attempting to load framework.properties from CLASSPATH
                 [java] === 2011-08-10 07:16:23,834 [main] INFO  ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties
                 [java] === 2011-08-10 07:16:23,834 [main] INFO  ConfigLoader - Attempting to load project.properties from CLASSPATH
                 [java] === 2011-08-10 07:16:23,834 [main] INFO  ConfigLoader - Unable to locate project.properties in CLASSPATH
                 [java] === 2011-08-10 07:16:23,837 [main] INFO  ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
                 [java] === 2011-08-10 07:16:23,837 [main] INFO  ConfigLoader - Attempting to load server.properties from CLASSPATH
                 [java] === 2011-08-10 07:16:23,839 [main] INFO  ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/WEB-INF/classes/server.properties
                 [java] === 2011-08-10 07:16:23,847 [main] INFO  Logger - Logging system started.
                 [java] === 2011-08-10 07:16:23,847 [main] INFO  ISCInit - Isomorphic SmartClient Framework (SC_SNAPSHOT-2011-08-02/EVAL Deployment 2011-08-02) - Initialization Complete
                 [java] === 2011-08-10 07:16:23,848 [main] INFO  ISCInit - Auto-detected webRoot - using: /home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war
                 [java] === 2011-08-10 07:16:30,209 [11-0] INFO  PoolManager - SmartClient pooling disabled for 'country_DataSource' objects
                 [java] === 2011-08-10 07:16:30,421 [11-0] DEBUG XML - Parsed XML from /home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/GAEDS_js/sc/system/schema/builtinTypes.xml: 23ms
                 [java] === 2011-08-10 07:16:30,632 [11-0] DEBUG XML - Parsed XML from /home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/ds/country_DataSource.ds.xml: 21ms
                 [java] === 2011-08-10 07:16:30,636 [11-0] DEBUG XML - Parsed XML from /home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/GAEDS_js/sc/system/schema/DataSource.ds.xml: 3ms
                 [java] === 2011-08-10 07:16:30,799 [11-0] DEBUG XML - Parsed XML from /home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/GAEDS_js/sc/system/schema/DataSourceField.ds.xml: 12ms
                 [java] === 2011-08-10 07:16:30,897 [11-0] DEBUG XML - Parsed XML from /home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/ds/city_DataSource.ds.xml: 2ms
                 [java] === 2011-08-10 07:17:02,621 [11-2] INFO  RequestContext - URL: '/GAEDS_js/sc/IDACall', User-Agent: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110628 Ubuntu/10.04 (lucid) Firefox/3.6.18': Moz (Gecko) with Accept-Encoding header
                 [java] === 2011-08-10 07:17:02,658 [11-2] DEBUG XML - Parsed XML from (in memory stream): 1ms
                 [java] === 2011-08-10 07:17:02,661 [11-2] DEBUG XML - Parsed XML from /home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/GAEDS_js/sc/system/schema/List.ds.xml: 1ms
                 [java] === 2011-08-10 07:17:02,667 [11-2] DEBUG RPCManager - Processing 1 requests.
                 [java] === 2011-08-10 07:17:02,700 [11-2] DEBUG RPCManager - Request #1 (DSRequest) payload: {
                 [java]     criteria:{
                 [java]     },
                 [java]     operationConfig:{
                 [java]         dataSource:"country_DataSource",
                 [java]         operationType:"fetch",
                 [java]         textMatchStyle:"substring"
                 [java]     },
                 [java]     startRow:0,
                 [java]     endRow:75,
                 [java]     componentId:"isc_ListGrid_0",
                 [java]     appID:"builtinApplication",
                 [java]     operation:"country_DataSource_fetch",
                 [java]     oldValues:{
                 [java]     }
                 [java] }
                 [java] === 2011-08-10 07:17:02,705 [11-2] INFO  IDACall - Performing 1 operation(s)
                 [java] === 2011-08-10 07:17:02,728 [11-2] DEBUG AppBase - [builtinApplication.country_DataSource_fetch] No userTypes defined, allowing anyone access to all operations for this application
                 [java] === 2011-08-10 07:17:02,728 [11-2] DEBUG AppBase - [builtinApplication.country_DataSource_fetch] No public zero-argument method named '_country_DataSource_fetch' found, performing generic datasource operation
                 [java] === 2011-08-10 07:17:02,729 [11-2] DEBUG JPADataSource - [builtinApplication.country_DataSource_fetch] Creating EntityManager and starting transaction.
                 [java] === 2011-08-10 07:17:02,730 [11-2] DEBUG EMF - [builtinApplication.country_DataSource_fetch] Initializing EMF provider
                 [java] log4j:WARN No appenders could be found for logger (DataNucleus.ClassLoading).
                 [java] log4j:WARN Please initialize the log4j system properly.
                 [java] === 2011-08-10 07:17:04,620 [11-2] DEBUG DSRequest - [builtinApplication.country_DataSource_fetch] Clobbering existing FreeResourcesHandler of type 'com.isomorphic.jpa.GAEJPADataSource' with a 'com.isomorphic.jpa.GAEJPADataSource'
                 [java] === 2011-08-10 07:17:04,621 [11-2] DEBUG GAEJPADataSource - [builtinApplication.country_DataSource_fetch] Executing fetch.
                 [java] === 2011-08-10 07:17:04,621 [11-2] DEBUG GAEJPADataSource - [builtinApplication.country_DataSource_fetch] Query string: select _Country from Country _Country
                 [java] === 2011-08-10 07:17:04,885 [11-2] INFO  DSResponse - [builtinApplication.country_DataSource_fetch] DSResponse: List with 0 items
                 [java] === 2011-08-10 07:17:04,886 [11-2] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
                 [java] === 2011-08-10 07:17:04,886 [11-2] DEBUG JPADataSource - Committing current transaction.
                 [java] === 2011-08-10 07:17:04,891 [11-2] DEBUG RPCManager - non-DMI response, dropExtraFields: false
                 [java] === 2011-08-10 07:17:04,892 [11-2] DEBUG JPADataSource - Releasing entity manager.

            Comment


              #7
              Originally posted by RevMen
              I think this is where I'm headed. This is my second attempt at getting the GAE sample to work and I've failed both times for totally different reasons. It seems like it should be much easier to get a sample project working. The time I spend trouble-shooting a sample could instead be spent writing my own DataSource.
              I didn't have that much trouble getting the sample going. My main problem was when I started getting JPA errors when I was using my classes and trying to figure out what was going on.

              If you're interested in Objectify, Jeff, the creator of Objectify, gives a good rundown here: http://www.google.com/events/io/2011...-platform.html

              Comment


                #8
                Originally posted by alius
                Hi,

                Your Web server tab clearly points to problems in your class path. Check this exception:
                Code:
                00:00:06.297 [ERROR] javax.servlet.ServletContext log: unavailable javax.servlet.UnavailableException: Servlet class com.smartgwt.sample.server.FillDataServlet is not a javax.servlet.Servlet
                How come that FillDataServlet class is not an instance of javax.servlet.Servlet? Check sources at `smartgwtee-2.5/samples/ds-gae/src/com/smartgwt/sample/server/FillDataServlet.java`. This class extends javax.servlet.http.HttpServlet. So check your settings in eclipse.
                Which settings should I be checking in eclipse to make a windows command line ant build go smoothly? I guess I'm confused about the role of eclipse in this situation. Shouldn't I be able to do this with or without eclipse?

                Here's the "ant hosted" readout

                Code:
                C:\eclipse\smartgwtee-2.5\samples\ds-gae>ant hosted
                Buildfile: C:\eclipse\smartgwtee-2.5\samples\ds-gae\build.xml
                
                libs:
                
                javac:
                    [javac] C:\eclipse\smartgwtee-2.5\samples\ds-gae\build.xml:89: warning: 'inc
                ludeantruntime' was not set, defaulting to build.sysclasspath=last; set to false
                 for repeatable builds
                
                datanucleusenhance:
                  [enhance] DataNucleus Enhancer (version 1.1.4) : Enhancement of classes
                  [enhance] DataNucleus Enhancer completed with success for 0 classes. Timings :
                 input=76 ms, enhance=0 ms, total=76 ms. Consult the log for full details
                  [enhance] DataNucleus Enhancer completed and no classes were enhanced. Consult
                 the log for full details
                
                gwtc:
                     [java] Compiling module com.smartgwt.sample.GAEDS
                     [java]    Compiling 6 permutations
                     [java]       Compiling permutation 0...
                     [java]       Compiling permutation 1...
                     [java]       Compiling permutation 2...
                     [java]       Compiling permutation 3...
                     [java]       Compiling permutation 4...
                     [java]       Compiling permutation 5...
                     [java]    Compile of permutations succeeded
                     [java] Linking into C:\eclipse\smartgwtee-2.5\samples\ds-gae\war\GAEDS_js
                     [java]    Link succeeded
                     [java]    Compilation succeeded -- 68.147s
                
                build:
                
                hosted:
                     [java] ISC: Configuring log4j from: file:/C:/eclipse/smartgwtee-2.5/samples
                /ds-gae/war/WEB-INF/classes/log4j.isc.config.xml
                     [java] === 2011-08-10 14:57:19,087 [main] INFO  ISCInit - Isomorphic SmartC
                lient Framework - Initializing
                     [java] === 2011-08-10 14:57:19,098 [main] INFO  ConfigLoader - Attempting t
                o load framework.properties from CLASSPATH
                     [java] === 2011-08-10 14:57:19,169 [main] INFO  ConfigLoader - Successfully
                 loaded framework.properties from CLASSPATH at location: jar:file:/C:/eclipse/sm
                artgwtee-2.5/samples/ds-gae/war/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.p
                roperties
                     [java] === 2011-08-10 14:57:19,169 [main] INFO  ConfigLoader - Attempting t
                o load project.properties from CLASSPATH
                     [java] === 2011-08-10 14:57:19,169 [main] INFO  ConfigLoader - Unable to lo
                cate project.properties in CLASSPATH
                     [java] === 2011-08-10 14:57:19,169 [main] INFO  ConfigLoader - Successfully
                 loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/C:/eclip
                se/smartgwtee-2.5/samples/ds-gae/war/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_in
                terfaces.properties
                     [java] === 2011-08-10 14:57:19,269 [main] INFO  ConfigLoader - Attempting t
                o load server.properties from CLASSPATH
                     [java] === 2011-08-10 14:57:19,279 [main] INFO  ConfigLoader - Successfully
                 loaded server.properties from CLASSPATH at location: file:/C:/eclipse/smartgwte
                e-2.5/samples/ds-gae/war/WEB-INF/classes/server.properties
                     [java] === 2011-08-10 14:57:19,289 [main] INFO  Logger - Logging system sta
                rted.
                     [java] === 2011-08-10 14:57:19,289 [main] INFO  ISCInit - Isomorphic SmartC
                lient Framework (SC_SNAPSHOT-2011-08-02/EVAL Deployment 2011-08-02) - Initializa
                tion Complete
                     [java] === 2011-08-10 14:57:19,289 [main] INFO  ISCInit - Auto-detected web
                Root - using: C:\eclipse\smartgwtee-2.5\samples\ds-gae\war
                Just for laughs I went into the version 2.4 ds-gae sample and ran "ant hosted." I would have expected similar results, but that's not the case.

                Code:
                C:\eclipse\smartgwtee-2.4\samples\ds-gae>ant hosted
                Buildfile: C:\eclipse\smartgwtee-2.4\samples\ds-gae\build.xml
                
                libs:
                
                javac:
                    [javac] C:\eclipse\smartgwtee-2.4\samples\ds-gae\build.xml:100: warning: 'in
                cludeantruntime' was not set, defaulting to build.sysclasspath=last; set to fals
                e for repeatable builds
                
                datanucleusenhance:
                  [enhance] DataNucleus Enhancer (version 1.1.4) : Enhancement of classes
                  [enhance] DataNucleus Enhancer completed with success for 2 classes. Timings :
                 input=187 ms, enhance=24 ms, total=211 ms. Consult the log for full details
                
                gwtc:
                     [java] Compiling module com.smartgwt.sample.GAEDS
                     [java]    Validating newly compiled units
                     [java]       [ERROR] Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt
                .eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-user.jar!/com/google/gwt
                /editor/client/EditorDriver.java'
                     [java]          [ERROR] Line 20: The import javax.validation.ConstraintViol
                ation cannot be resolved
                     [java]          [ERROR] Line 97: ConstraintViolation cannot be resolved to
                a type
                     [java]       [ERROR] Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt
                .eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-user.jar!/com/google/gwt
                /editor/client/impl/AbstractSimpleBeanEditorDriver.java'
                     [java]          [ERROR] Line 28: Name clash: The method setConstraintViolat
                ions(Iterable<ConstraintViolation<?>>) of type BaseEditorDriver<T,E> has the sam
                e erasure as setConstraintViolations(Iterable<ConstraintViolation<?>>) of type E
                ditorDriver<T> but does not override it
                     [java]       [ERROR] Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt
                .eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-user.jar!/com/google/gwt
                /editor/client/impl/BaseEditorDriver.java'
                     [java]          [ERROR] Line 31: The import javax.validation.ConstraintViol
                ation cannot be resolved
                     [java]          [ERROR] Line 67: ConstraintViolation cannot be resolved to
                a type
                     [java]       [ERROR] Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt
                .eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-user.jar!/com/google/gwt
                /editor/client/impl/SimpleViolation.java'
                     [java]          [ERROR] Line 25: The import javax.validation.ConstraintViol
                ation cannot be resolved
                     [java]          [ERROR] Line 40: ConstraintViolation cannot be resolved to
                a type
                     [java]          [ERROR] Line 43: ConstraintViolation cannot be resolved to
                a type
                     [java]          [ERROR] Line 44: Missing code implementation in the compile
                r
                     [java]          [ERROR] Line 49: ConstraintViolation cannot be resolved to
                a type
                     [java]          [ERROR] Line 49: Missing code implementation in the compile
                r
                     [java]          [ERROR] Line 70: ConstraintViolation cannot be resolved to
                a type
                     [java]          [ERROR] Line 72: ConstraintViolation cannot be resolved to
                a type
                     [java]          [ERROR] Line 73: ConstraintViolation<?> cannot be resolved
                to a type
                     [java]          [ERROR] Line 77: ConstraintViolation<capture#2-of ?> cannot
                 be resolved to a type
                     [java]          [ERROR] Line 81: ConstraintViolation<capture#3-of ?> cannot
                 be resolved to a type
                     [java]          [ERROR] Line 89: ConstraintViolation<capture#4-of ?> cannot
                 be resolved to a type
                     [java]          [ERROR] Line 93: ConstraintViolation<capture#5-of ?> cannot
                 be resolved to a type
                     [java]          [ERROR] Line 98: ConstraintViolation cannot be resolved to
                a type
                     [java]       [ERROR] Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt
                .eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-user.jar!/com/google/gwt
                /editor/client/testing/MockSimpleBeanEditorDriver.java'
                     [java]          [ERROR] Line 26: The import javax.validation.ConstraintViol
                ation cannot be resolved
                     [java]          [ERROR] Line 35: The type MockSimpleBeanEditorDriver<T,E> m
                ust implement the inherited abstract method EditorDriver<T>.setConstraintViolati
                ons(Iterable<ConstraintViolation<?>>)
                     [java]          [ERROR] Line 107: Name clash: The method setConstraintViola
                tions(Iterable<ConstraintViolation<?>>) of type MockSimpleBeanEditorDriver<T,E>
                has the same erasure as setConstraintViolations(Iterable<ConstraintViolation<?>>
                ) of type EditorDriver<T> but does not override it
                     [java]          [ERROR] Line 108: ConstraintViolation cannot be resolved to
                 a type
                     [java]       [ERROR] Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt
                .eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-user.jar!/javax/validati
                on/super/javax/validation/Configuration.java'
                     [java]          [ERROR] Line 93: TraversableResolver cannot be resolved to
                a type
                     [java]          [ERROR] Line 105: ConstraintValidatorFactory cannot be reso
                lved to a type
                     [java]          [ERROR] Line 182: TraversableResolver cannot be resolved to
                 a type
                     [java]          [ERROR] Line 182: No source code is available for type Trav
                ersableResolver; did you forget to inherit a required module?
                     [java]          [ERROR] Line 194: ConstraintValidatorFactory cannot be reso
                lved to a type
                     [java]          [ERROR] Line 194: No source code is available for type Cons
                traintValidatorFactory; did you forget to inherit a required module?
                     [java]          [ERROR] Line 202: ValidatorFactory cannot be resolved to a
                type
                     [java]          [ERROR] Line 202: No source code is available for type Vali
                datorFactory; did you forget to inherit a required module?
                     [java]       [ERROR] Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt
                .eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-user.jar!/javax/validati
                on/ConstraintViolationException_CustomFieldSerializer.java'
                     [java]          [ERROR] Line 30: ConstraintViolationException cannot be res
                olved to a type
                     [java]          [ERROR] Line 34: ConstraintViolationException cannot be res
                olved to a type
                     [java]          [ERROR] Line 34: No source code is available for type Const
                raintViolationException; did you forget to inherit a required module?
                     [java]          [ERROR] Line 39: ConstraintViolation cannot be resolved to
                a type
                     [java]          [ERROR] Line 39: ConstraintViolation cannot be resolved to
                a type
                     [java]          [ERROR] Line 40: ConstraintViolationException cannot be res
                olved to a type
                     [java]          [ERROR] Line 44: ConstraintViolationException cannot be res
                olved to a type
                     [java]       [ERROR] Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt
                .eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-user.jar!/javax/validati
                on/super/javax/validation/MessageInterpolator.java'
                     [java]          [ERROR] Line 21: The import javax.validation.metadata canno
                t be resolved
                     [java]          [ERROR] Line 66: ConstraintDescriptor cannot be resolved to
                 a type
                     [java]       [ERROR] Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt
                .eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-user.jar!/javax/validati
                on/super/javax/validation/constraints/Pattern.java'
                     [java]          [ERROR] Line 30: The import javax.validation.Constraint can
                not be resolved
                     [java]          [ERROR] Line 31: The import javax.validation.Payload cannot
                 be resolved
                     [java]          [ERROR] Line 49: Constraint cannot be resolved to a type
                     [java]          [ERROR] Line 49: The attribute validatedBy is undefined for
                 the annotation type Constraint
                     [java]          [ERROR] Line 75: Payload cannot be resolved to a type
                     [java]       [ERROR] Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt
                .eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-user.jar!/javax/validati
                on/super/javax/validation/spi/ConfigurationState.java'
                     [java]          [ERROR] Line 22: The import javax.validation.ConstraintVali
                datorFactory cannot be resolved
                     [java]          [ERROR] Line 24: The import javax.validation.TraversableRes
                olver cannot be resolved
                     [java]          [ERROR] Line 93: ConstraintValidatorFactory cannot be resol
                ved to a type
                     [java]          [ERROR] Line 107: TraversableResolver cannot be resolved to
                 a type
                     [java]    Computing all possible rebind results for 'com.google.gwt.user.cl
                ient.UserAgentAsserter'
                     [java]       Rebinding com.google.gwt.user.client.UserAgentAsserter
                     [java]          Checking rule <generate-with class='com.google.gwt.editor.r
                ebind.SimpleBeanEditorDriverGenerator'/>
                     [java]             [WARN] Detected warnings related to 'com.google.gwt.edit
                or.client.SimpleBeanEditorDriver'.   Are validation-api-<version>.jar and valida
                tion-api-<version>-sources.jar on the classpath?
                     [java]             Specify -logLevel DEBUG to see all errors.
                     [java]             [WARN] Unknown type 'com.google.gwt.editor.client.Simple
                BeanEditorDriver' specified in deferred binding rule
                     [java]    Compiling 6 permutations
                     [java]       Compiling permutation 0...
                     [java]       Compiling permutation 1...
                     [java]       Compiling permutation 2...
                     [java]       Compiling permutation 3...
                     [java]       Compiling permutation 4...
                     [java]       Compiling permutation 5...
                     [java]    Compile of permutations succeeded
                     [java] Linking into C:\eclipse\smartgwtee-2.4\samples\ds-gae\war\GAEDS_js
                     [java]    Link succeeded
                     [java]    Compilation succeeded -- 47.876s
                
                build:
                
                hosted:
                     [java] ISC: Configuring log4j from: file:/C:/eclipse/smartgwtee-2.4/samples
                /ds-gae/war/WEB-INF/classes/log4j.isc.config.xml
                     [java] === 2011-08-10 15:33:58,072 [main] INFO  ISCInit - Isomorphic SmartC
                lient Framework - Initializing
                     [java] === 2011-08-10 15:33:58,083 [main] INFO  ConfigLoader - Attempting t
                o load framework.properties from CLASSPATH
                     [java] === 2011-08-10 15:33:58,157 [main] INFO  ConfigLoader - Successfully
                 loaded framework.properties from CLASSPATH at location: jar:file:/C:/eclipse/sm
                artgwtee-2.4/samples/ds-gae/war/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.p
                roperties
                     [java] === 2011-08-10 15:33:58,157 [main] INFO  ConfigLoader - Attempting t
                o load project.properties from CLASSPATH
                     [java] === 2011-08-10 15:33:58,159 [main] INFO  ConfigLoader - Unable to lo
                cate project.properties in CLASSPATH
                     [java] === 2011-08-10 15:33:58,161 [main] INFO  ConfigLoader - Successfully
                 loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/C:/eclip
                se/smartgwtee-2.4/samples/ds-gae/war/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_in
                terfaces.properties
                     [java] === 2011-08-10 15:33:58,161 [main] INFO  ConfigLoader - Attempting t
                o load server.properties from CLASSPATH
                     [java] === 2011-08-10 15:33:58,199 [main] INFO  ConfigLoader - Successfully
                 loaded server.properties from CLASSPATH at location: file:/C:/eclipse/smartgwte
                e-2.4/samples/ds-gae/war/WEB-INF/classes/server.properties
                     [java] === 2011-08-10 15:33:58,207 [main] INFO  Logger - Logging system sta
                rted.
                     [java] === 2011-08-10 15:33:58,208 [main] INFO  ISCInit - Isomorphic SmartC
                lient Framework (SC_SNAPSHOT-2011-05-03/EVAL Deployment 2011-05-03) - Initializa
                tion Complete
                     [java] === 2011-08-10 15:33:58,209 [main] INFO  ISCInit - Auto-detected web
                Root - using: C:\eclipse\smartgwtee-2.4\samples\ds-gae\war

                Comment


                  #9
                  have you tried the 2.4 sample in eclipse? i recall the only thing i had to change was the smartgwt home. i may have had to copy some jar files too.

                  i got it running in eclipse without using ant.

                  Comment


                    #10
                    I have tried importing 2.4 into eclipse. I decided to try it again.

                    I downloaded smartgwtee-2.4 again and did a clean import into eclipse of ds-gae.

                    It complained of missing hibernate-tools.jar, which is a known problem for that release.

                    I deleted all references to hibernate*.jar from the build path and added datanucleus-jpa.2.1.8.jar from datanucleus 2.2.3.

                    When I ran the project server side seemed OK, but client side blows up and gives me the "this copy of isomorphic smartclient has expired" pop-up.

                    Code:
                    	[ERROR] [GAEDS_js] - Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/EventBus.java'
                    		[ERROR] [GAEDS_js] - 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] [GAEDS_js] - 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] [GAEDS_js] - 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] [GAEDS_js] - 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] [GAEDS_js] - Line 68: Cannot cast from GwtEvent<capture#1-of ?> to Event<?>
                    		[ERROR] [GAEDS_js] - 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] [GAEDS_js] - Line 76: Cannot cast from GwtEvent<capture#3-of ?> to Event<?>
                    	[ERROR] [GAEDS_js] - Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/LegacyHandlerWrapper.java'
                    		[ERROR] [GAEDS_js] - 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] [GAEDS_js] - Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/ResettableEventBus.java'
                    		[ERROR] [GAEDS_js] - 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] [GAEDS_js] - Line 49: Cannot cast from GwtEvent.Type<H> to Event.Type<H>
                    		[ERROR] [GAEDS_js] - 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] [GAEDS_js] - 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] [GAEDS_js] - Line 59: Cannot cast from GwtEvent.Type<H> to Event.Type<H>
                    		[ERROR] [GAEDS_js] - 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] [GAEDS_js] - Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/SimpleEventBus.java'
                    		[ERROR] [GAEDS_js] - 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] [GAEDS_js] - Line 32: Cannot cast from GwtEvent.Type<H> to Event.Type<H>
                    		[ERROR] [GAEDS_js] - 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] [GAEDS_js] - 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] [GAEDS_js] - Line 42: Cannot cast from GwtEvent.Type<H> to Event.Type<H>
                    		[ERROR] [GAEDS_js] - 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] [GAEDS_js] - Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/UmbrellaException.java'
                    		[ERROR] [GAEDS_js] - 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] [GAEDS_js] - Errors in 'jar:file:/C:/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.3.0.r37v201106211634/gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/testing/CountingEventBus.java'
                    		[ERROR] [GAEDS_js] - 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] [GAEDS_js] - Line 41: Cannot cast from GwtEvent.Type<H> to Event.Type<H>
                    		[ERROR] [GAEDS_js] - 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] [GAEDS_js] - 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] [GAEDS_js] - Line 51: Cannot cast from GwtEvent.Type<H> to Event.Type<H>
                    		[ERROR] [GAEDS_js] - 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] [GAEDS_js] - Line 80: The method getCount(Event.Type<?>) in the type CountingEventBus is not applicable for the arguments (GwtEvent.Type<capture#5-of ?>)
                    [ERROR] [GAEDS_js] - Unable to load module entry point class com.smartgwt.sample.client.GAEDSEntryPoint (see associated exception for details)
                    [ERROR] [GAEDS_js] - Failed to load module 'GAEDS_js' from user agent 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18' at 127.0.0.1:51654
                    So then I tried swapping in datanucleus-api-jpa-3.0.0-release.jar for the version 2.2.3 jar. That doesn't work because the datanucleus packages have changed around and require different import statements.

                    So I tried changing them to org.datanucleus.api.jpa.annotations.Extension and gave it another run. No good, same errors.

                    OK, tired of trying to get 2.4 to work. On to 2.5. I deleted the project, restarted eclipse, set the SGWTEE_HOME variable to 2.5, and imported the 2.5 sample.

                    As with 2.4, it was unhappy about the datanucleus jpa extensions, so I added datanucleus-jpa-2.1.8.jar from the datanucleus 2.2.3 version to the build path.

                    Run as web application... go boom.

                    Code:
                    12:05:43.408 [ERROR] [GAEDS_js] 12:05:43.335:XRP9:WARN:RPCManager:Server returned FAILURE with no error message performing operation 'country_DataSource_fetch'., response: {operationId: &quot;country_DataSource_fetch&quot;,
                    clientContext: Obj,
                    context: Obj,
                    transactionNum: 0,
                    httpResponseCode: 200,
                    httpResponseText: &quot;//isc_RPCResponseStart--&gt;[{queueStatus:-...&quot;[4675],
                    xmlHttpRequest: [object XMLHttpRequest],
                    transport: &quot;xmlHttpRequest&quot;,
                    status: -1,
                    clientOnly: undef,
                    httpHeaders: Obj,
                    isStructured: true,
                    callbackArgs: null,
                    results: Obj,
                    queueStatus: -1,
                    isDSResponse: true,
                    invalidateCache: false,
                    data: null,
                    startRow: 0,
                    endRow: 0,
                    totalRows: 0}
                    
                    com.smartgwt.client.core.JsObject$SGWT_WARN: 12:05:43.335:XRP9:WARN:RPCManager:Server returned FAILURE with no error message performing operation 'country_DataSource_fetch'., response: {operationId: &quot;country_DataSource_fetch&quot;,
                    clientContext: Obj,
                    context: Obj,
                    transactionNum: 0,
                    httpResponseCode: 200,
                    httpResponseText: &quot;//isc_RPCResponseStart--&gt;[{queueStatus:-...&quot;[4675],
                    xmlHttpRequest: [object XMLHttpRequest],
                    transport: &quot;xmlHttpRequest&quot;,
                    status: -1,
                    clientOnly: undef,
                    httpHeaders: Obj,
                    isStructured: true,
                    callbackArgs: null,
                    results: Obj,
                    queueStatus: -1,
                    isDSResponse: true,
                    invalidateCache: false,
                    data: null,
                    startRow: 0,
                    endRow: 0,
                    totalRows: 0}
                        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
                        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
                        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
                        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
                        at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
                        at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167)
                        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
                        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
                        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
                        at java.lang.Thread.run(Thread.java:662)
                    and from the console

                    Code:
                    log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext).
                    log4j:WARN Please initialize the log4j system properly.
                    ISC: Configuring log4j from: file:/C:/eclipse/workspace/GAEDS/war/WEB-INF/classes/log4j.isc.config.xml
                    === 2011-08-10 12:05:04,104 [main] INFO  ISCInit - Isomorphic SmartClient Framework - Initializing
                    === 2011-08-10 12:05:04,109 [main] INFO  ConfigLoader - Attempting to load framework.properties from CLASSPATH
                    === 2011-08-10 12:05:04,209 [main] INFO  ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/C:/eclipse/workspace/GAEDS/war/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties
                    === 2011-08-10 12:05:04,209 [main] INFO  ConfigLoader - Attempting to load project.properties from CLASSPATH
                    === 2011-08-10 12:05:04,210 [main] INFO  ConfigLoader - Unable to locate project.properties in CLASSPATH
                    === 2011-08-10 12:05:04,214 [main] INFO  ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/C:/eclipse/workspace/GAEDS/war/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
                    === 2011-08-10 12:05:04,214 [main] INFO  ConfigLoader - Attempting to load server.properties from CLASSPATH
                    === 2011-08-10 12:05:04,217 [main] INFO  ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/C:/eclipse/workspace/GAEDS/war/WEB-INF/classes/server.properties
                    === 2011-08-10 12:05:04,221 [main] INFO  Logger - Logging system started.
                    === 2011-08-10 12:05:04,222 [main] INFO  ISCInit - Isomorphic SmartClient Framework (SC_SNAPSHOT-2011-08-02/EVAL Deployment 2011-08-02) - Initialization Complete
                    === 2011-08-10 12:05:04,223 [main] INFO  ISCInit - Auto-detected webRoot - using: C:\eclipse\workspace\GAEDS\war
                    === 2011-08-10 12:05:13,057 [l0-0] INFO  PoolManager - SmartClient pooling disabled for 'country_DataSource' objects
                    === 2011-08-10 12:05:13,086 [l0-0] DEBUG XML - Parsed XML from C:\eclipse\workspace\GAEDS\war\GAEDS_js\sc\system\schema\builtinTypes.xml: 7ms
                    === 2011-08-10 12:05:13,209 [l0-0] DEBUG XML - Parsed XML from C:\eclipse\workspace\GAEDS\war\ds\country_DataSource.ds.xml: 2ms
                    === 2011-08-10 12:05:13,225 [l0-0] DEBUG XML - Parsed XML from C:\eclipse\workspace\GAEDS\war\GAEDS_js\sc\system\schema\DataSource.ds.xml: 15ms
                    === 2011-08-10 12:05:13,309 [l0-0] DEBUG XML - Parsed XML from C:\eclipse\workspace\GAEDS\war\GAEDS_js\sc\system\schema\DataSourceField.ds.xml: 38ms
                    === 2011-08-10 12:05:13,371 [l0-0] DEBUG XML - Parsed XML from C:\eclipse\workspace\GAEDS\war\ds\city_DataSource.ds.xml: 2ms
                    === 2011-08-10 12:05:42,196 [l0-0] INFO  RequestContext - URL: '/GAEDS_js/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18': Moz (Gecko) with Accept-Encoding header
                    === 2011-08-10 12:05:42,211 [l0-0] DEBUG XML - Parsed XML from (in memory stream): 1ms
                    === 2011-08-10 12:05:42,219 [l0-0] DEBUG XML - Parsed XML from C:\eclipse\workspace\GAEDS\war\GAEDS_js\sc\system\schema\List.ds.xml: 2ms
                    === 2011-08-10 12:05:42,223 [l0-0] DEBUG RPCManager - Processing 1 requests.
                    === 2011-08-10 12:05:42,232 [l0-0] DEBUG RPCManager - Request #1 (DSRequest) payload: {
                        criteria:{
                        },
                        operationConfig:{
                            dataSource:"country_DataSource",
                            operationType:"fetch",
                            textMatchStyle:"substring"
                        },
                        startRow:0,
                        endRow:75,
                        componentId:"isc_ListGrid_0",
                        appID:"builtinApplication",
                        operation:"country_DataSource_fetch",
                        oldValues:{
                        }
                    }
                    === 2011-08-10 12:05:42,235 [l0-0] INFO  IDACall - Performing 1 operation(s)
                    === 2011-08-10 12:05:42,242 [l0-0] DEBUG AppBase - [builtinApplication.country_DataSource_fetch] No userTypes defined, allowing anyone access to all operations for this application
                    === 2011-08-10 12:05:42,242 [l0-0] DEBUG AppBase - [builtinApplication.country_DataSource_fetch] No public zero-argument method named '_country_DataSource_fetch' found, performing generic datasource operation
                    === 2011-08-10 12:05:42,243 [l0-0] DEBUG JPADataSource - [builtinApplication.country_DataSource_fetch] Creating EntityManager and starting transaction.
                    === 2011-08-10 12:05:42,243 [l0-0] DEBUG EMF - [builtinApplication.country_DataSource_fetch] Initializing EMF provider
                    === 2011-08-10 12:05:43,161 [l0-0] ERROR EMF - [builtinApplication.country_DataSource_fetch] Failed to initialize EMF provider
                    javax.persistence.PersistenceException: Provider error. Provider: org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider
                    	at javax.persistence.Persistence.createFactory(Persistence.java:176)
                    	at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:112)
                    	at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:66)
                    	at com.isomorphic.jpa.EMFProviderLMT.<init>(EMFProviderLMT.java:71)
                    	at com.isomorphic.jpa.EMFProviderLMT.<init>(EMFProviderLMT.java:60)
                    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
                    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
                    	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
                    	at java.lang.Class.newInstance0(Class.java:355)
                    	at java.lang.Class.newInstance(Class.java:308)
                    	at com.isomorphic.jpa.EMF.<clinit>(EMF.java:65)
                    	at com.isomorphic.jpa.JPADataSource.execute(JPADataSource.java:340)
                    	at com.isomorphic.application.AppBase.executeDefaultDSOperation(AppBase.java:721)
                    	at com.isomorphic.application.AppBase.executeAppOperation(AppBase.java:658)
                    	at com.isomorphic.application.AppBase.execute(AppBase.java:491)
                    	at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:1714)
                    	at com.isomorphic.servlet.IDACall.handleDSRequest(IDACall.java:199)
                    	at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:156)
                    	at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:121)
                    	at com.isomorphic.servlet.IDACall.doPost(IDACall.java:73)
                    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
                    	at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
                    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                    	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
                    	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
                    	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
                    	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
                    	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
                    	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
                    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
                    	at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
                    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
                    	at org.mortbay.jetty.Server.handle(Server.java:324)
                    	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
                    	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
                    	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
                    	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
                    	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
                    	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
                    	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
                    Caused by: org.datanucleus.exceptions.NucleusUserException: Errors were encountered when initialising the specified MetaData. See the nested exceptions for details
                    	at org.datanucleus.metadata.MetaDataManager.initialiseFileMetaDataForUse(MetaDataManager.java:892)
                    	at org.datanucleus.metadata.MetaDataManager.loadPersistenceUnit(MetaDataManager.java:794)
                    	at org.datanucleus.jpa.EntityManagerFactoryImpl.initialisePMF(EntityManagerFactoryImpl.java:488)
                    	at org.datanucleus.jpa.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:355)
                    	at org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory.<init>(DatastoreEntityManagerFactory.java:63)
                    	at org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider.createEntityManagerFactory(DatastorePersistenceProvider.java:35)
                    	at javax.persistence.Persistence.createFactory(Persistence.java:172)
                    	... 40 more
                    Caused by: org.datanucleus.exceptions.NucleusUserException: Found Meta-Data for class com.smartgwt.sample.server.Country but this class is not enhanced!! Please enhance the class before running DataNucleus.
                    	at org.datanucleus.metadata.MetaDataManager.initialiseClassMetaData(MetaDataManager.java:2225)
                    	at org.datanucleus.metadata.MetaDataManager.initialiseFileMetaData(MetaDataManager.java:2176)
                    	at org.datanucleus.metadata.MetaDataManager.initialiseFileMetaDataForUse(MetaDataManager.java:881)
                    	... 46 more
                    === 2011-08-10 12:05:43,182 [l0-0] WARN  RequestContext - dsRequest.execute() failed: 
                    java.lang.NullPointerException
                    	at com.isomorphic.jpa.EMF.getEntityManager(EMF.java:92)
                    	at com.isomorphic.jpa.JPADataSource.execute(JPADataSource.java:340)
                    	at com.isomorphic.application.AppBase.executeDefaultDSOperation(AppBase.java:721)
                    	at com.isomorphic.application.AppBase.executeAppOperation(AppBase.java:658)
                    	at com.isomorphic.application.AppBase.execute(AppBase.java:491)
                    	at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:1714)
                    	at com.isomorphic.servlet.IDACall.handleDSRequest(IDACall.java:199)
                    	at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:156)
                    	at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:121)
                    	at com.isomorphic.servlet.IDACall.doPost(IDACall.java:73)
                    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
                    	at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
                    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                    	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
                    	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
                    	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
                    	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
                    	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
                    	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
                    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
                    	at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
                    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
                    	at org.mortbay.jetty.Server.handle(Server.java:324)
                    	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
                    	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
                    	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
                    	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
                    	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
                    	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
                    	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
                    === 2011-08-10 12:05:43,196 [l0-0] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
                    === 2011-08-10 12:05:43,200 [l0-0] DEBUG RPCManager - non-DMI response, dropExtraFields: false
                    === 2011-08-10 12:05:43,202 [l0-0] DEBUG JPADataSource - Releasing entity manager.
                    === 2011-08-10 12:05:43,202 [l0-0] ERROR IDACall - Error executing operation: country_DataSource_fetch
                    java.lang.NullPointerException
                    	at com.isomorphic.jpa.EMF.returnEntityManager(EMF.java:103)
                    	at com.isomorphic.jpa.JPADataSource.freeResources(JPADataSource.java:3072)
                    	at com.isomorphic.datasource.DSRequest.freeResources(DSRequest.java:3094)
                    	at com.isomorphic.rpc.RPCManager.completeResponse(RPCManager.java:1205)
                    	at com.isomorphic.rpc.RPCManager.send(RPCManager.java:582)
                    	at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:156)
                    	at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:121)
                    	at com.isomorphic.servlet.IDACall.doPost(IDACall.java:73)
                    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
                    	at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
                    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                    	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
                    	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
                    	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
                    	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
                    	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
                    	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
                    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
                    	at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
                    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
                    	at org.mortbay.jetty.Server.handle(Server.java:324)
                    	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
                    	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
                    	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
                    	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
                    	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
                    	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
                    	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
                    === 2011-08-10 12:05:43,203 [l0-0] WARN  RPCManager - java.lang.Exception: Response has already been committed, unable to setNoCacheHeaders()
                    === 2011-08-10 12:05:43,203 [l0-0] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
                    === 2011-08-10 12:05:43,204 [l0-0] DEBUG RPCManager - non-DMI response, dropExtraFields: false
                    === 2011-08-10 12:05:43,205 [l0-0] DEBUG JPADataSource - Releasing entity manager.
                    === 2011-08-10 12:05:43,205 [l0-0] ERROR IDACall - Top-level servlet error: 
                    java.lang.NullPointerException
                    	at com.isomorphic.jpa.EMF.returnEntityManager(EMF.java:103)
                    	at com.isomorphic.jpa.JPADataSource.freeResources(JPADataSource.java:3072)
                    	at com.isomorphic.datasource.DSRequest.freeResources(DSRequest.java:3094)
                    	at com.isomorphic.rpc.RPCManager.completeResponse(RPCManager.java:1205)
                    	at com.isomorphic.rpc.RPCManager.send(RPCManager.java:582)
                    	at com.isomorphic.rpc.RPCManager.sendFailure(RPCManager.java:665)
                    	at com.isomorphic.rpc.RPCManager.sendFailure(RPCManager.java:686)
                    	at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:162)
                    	at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:121)
                    	at com.isomorphic.servlet.IDACall.doPost(IDACall.java:73)
                    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
                    	at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
                    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                    	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
                    	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
                    	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
                    	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
                    	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
                    	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
                    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
                    	at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
                    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
                    	at org.mortbay.jetty.Server.handle(Server.java:324)
                    	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
                    	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
                    	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
                    	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
                    	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
                    	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
                    	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
                    [WARN] /fillData
                    java.lang.NullPointerException
                    	at com.isomorphic.jpa.EMF.returnEntityManager(EMF.java:103)
                    	at com.smartgwt.sample.server.FillDataServlet.processRequest(FillDataServlet.java:84)
                    	at com.smartgwt.sample.server.FillDataServlet.doPost(FillDataServlet.java:111)
                    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
                    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                    	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
                    	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
                    	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
                    	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
                    	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
                    	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
                    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
                    	at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
                    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
                    	at org.mortbay.jetty.Server.handle(Server.java:324)
                    	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
                    	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
                    	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
                    	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
                    	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
                    	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
                    	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

                    Comment


                      #11
                      Hi,

                      Let's make simple and clean experiment (leave eclipse alone) - do it step by step:

                      1. download evaluation release from here
                      2. unzip it into fresh location
                      3. go to `smartgwtee-2.5/samples/ds-gae` folder
                      4. run `ant hosted`
                      5. press button 'Launch Default Browser' in GWT console when it starts
                      6. compare your log messages to the log I've provided earlier
                      7. post complete output here if you found any differences

                      Alius

                      Comment


                        #12
                        Originally posted by alius
                        Hi,

                        Let's make simple and clean experiment (leave eclipse alone) - do it step by step:

                        1. download evaluation release from here
                        2. unzip it into fresh location
                        3. go to `smartgwtee-2.5/samples/ds-gae` folder
                        4. run `ant hosted`
                        5. press button 'Launch Default Browser' in GWT console when it starts
                        6. compare your log messages to the log I've provided earlier
                        7. post complete output here if you found any differences

                        Alius
                        See posts #5 and #8. Especially post #8, where I did exactly what you just asked me to do.

                        Comment


                          #13
                          Then you should clearly see the difference:

                          Your output:
                          Code:
                          C:\eclipse\smartgwtee-2.5\samples\ds-gae>ant hosted
                          Buildfile: C:\eclipse\smartgwtee-2.5\samples\ds-gae\build.xml
                          
                          libs:
                          
                          javac:
                              [javac] C:\eclipse\smartgwtee-2.5\samples\ds-gae\build.xml:89: warning: 'inc
                          ludeantruntime' was not set, defaulting to build.sysclasspath=last; set to false
                           for repeatable builds
                          
                          datanucleusenhance:
                            [enhance] DataNucleus Enhancer (version 1.1.4) : Enhancement of classes
                            [enhance] DataNucleus Enhancer completed with success for 0 classes. Timings :
                           input=76 ms, enhance=0 ms, total=76 ms. Consult the log for full details
                            [enhance] DataNucleus Enhancer completed and no classes were enhanced. Consult
                           the log for full details
                          My output:
                          Code:
                          alius@alius-st:~/Downloads/smartgwtee-2.5/samples/ds-gae$ ant hosted
                          Buildfile: build.xml
                          
                          libs:
                               [copy] Copying 19 files to /home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/WEB-INF/lib
                               [copy] Copying 10 files to /home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/WEB-INF/lib
                          
                          javac:
                              [mkdir] Created dir: /home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/WEB-INF/classes
                              [javac] Compiling 4 source files to /home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/WEB-INF/classes
                               [copy] Copying 5 files to /home/alius/Downloads/smartgwtee-2.5/samples/ds-gae/war/WEB-INF/classes
                          
                          datanucleusenhance:
                            [enhance] DataNucleus Enhancer (version 1.1.4) : Enhancement of classes
                            [enhance] DataNucleus Enhancer completed with success for 2 classes. Timings : input=184 ms, enhance=66 ms, total=250 ms. Consult the log for full details
                          1. your "libs" task does not copy required jars - most probably because they already exists - thus I deduce that it is not clean install
                          2. I'm not sure about warning in "javac" task
                          3. "datanucleusenhance" task do not process your classes: DataNucleus Enhancer completed with success for 0 classes.

                          I do not know about the changes in your installation - that is why I asked for separate clean run.

                          Alius.
                          Last edited by alius; 10 Aug 2011, 20:29.

                          Comment

                          Working...
                          X