Announcement Announcement Module
Collapse
No announcement yet.
cannot make GOOGLE_APP_ENGINE work with gwt Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • cannot make GOOGLE_APP_ENGINE work with gwt

    Hello

    I use the last version of roo "spring-roo-1.2.2.RELEASE" througt eclipse 3.7 indigo

    I take expense.roo sample
    I just modify the jpa setup and
    jpa setup --provider DATANUCLEUS --database GOOGLE_APP_ENGINE
    and set web gwt
    nota I also try with
    Code:
    web gwt gae update
    before web gwt all

    so here is my roo file not really extravagant

    Code:
    project --topLevelPackage org.springsource.roo.extrack
    
    jpa setup --provider DATANUCLEUS --database GOOGLE_APP_ENGINE
    
    enum type --class ~.shared.domain.Gender
    enum constant --name MALE
    enum constant --name FEMALE
    
    entity jpa --class ~.server.domain.Employee --testAutomatically
    field string --fieldName displayName --notNull
    field string --fieldName userName --sizeMin 3 --sizeMax 30 --notNull
    field string --fieldName department
    field reference --type Employee supervisor
    field enum --fieldName gender --type ~.shared.domain.Gender
    field boolean --fieldName admin --notNull
    
    entity jpa --class ~.server.domain.Report --testAutomatically
    field string --fieldName purpose
    field string --fieldName notes
    field date --fieldName created --type java.util.Date
    field string --fieldName department
    field reference --type Employee reporter
    field reference --type Employee approvedSupervisor
    
    entity jpa --class ~.server.domain.Expense --testAutomatically
    field number --type java.lang.Double amount
    field string --fieldName description
    field reference --type Report report
    field string --fieldName approval
    field string --fieldName category
    field date --fieldName created --type java.util.Date
    field string --fieldName reasonDenied
    
    web gwt setup
    web gwt all --proxyPackage ~.client.proxy --requestPackage ~.client.request
    
    logging setup --level INFO
    when I launch the project I have some Errors

    these one not really important
    Code:
    [ERROR] 2012-06-07 15:18:54.093:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
    [ERROR] 7 juin 2012 15:18:54 com.google.appengine.tools.development.IsolatedAppClassLoader checkWorkingDirectory
    [ERROR] ATTENTION: Your working directory, (C:\Work\workspace3.7\expenseGWT) is not equal to your 
    [ERROR] web application root (C:\Work\workspace3.7\expenseGWT\target\expenseGWT-0.1.0.BUILD-SNAPSHOT)
    [ERROR] You will not be able to access files from your working directory on the production server.
    [ERROR] 
    [ERROR] 7 juin 2012 15:18:54 com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
    [ERROR] INFO: Successfully processed C:\Work\workspace3.7\expenseGWT\target\expenseGWT-0.1.0.BUILD-SNAPSHOT\WEB-INF/appengine-web.xml
    [ERROR] 7 juin 2012 15:18:54 com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
    [ERROR] INFO: Successfully processed C:\Work\workspace3.7\expenseGWT\target\expenseGWT-0.1.0.BUILD-SNAPSHOT\WEB-INF/web.xml
    [ERROR] 2012-06-07 15:18:54.638:INFO::jetty-6.1.x
    and after
    Code:
    [INFO] 2012-06-07 15:19:03,042 [main] INFO  org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 6763 ms
    [ERROR] 2012-06-07 15:19:03.059:WARN::failed _ah_ServeBlobFilter: java.lang.ClassCastException: com.google.appengine.tools.development.ApiProxyLocalImpl cannot be cast to com.google.appengine.tools.development.ApiProxyLocal
    [ERROR] 2012-06-07 15:19:03.059:WARN::Failed startup of context [email protected]1110fca{/,C:\Work\workspace3.7\expenseGWT\target\expenseGWT-0.1.0.BUILD-SNAPSHOT}
    [ERROR] java.lang.ClassCastException: com.google.appengine.tools.development.ApiProxyLocalImpl cannot be cast to com.google.appengine.tools.development.ApiProxyLocal
    [ERROR] 	at com.google.appengine.api.blobstore.dev.ServeBlobFilter.init(ServeBlobFilter.java:53)
    [ERROR] 	at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
    [ERROR] 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    [ERROR] 	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)
    [ERROR] 	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
    [ERROR] 	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
    [ERROR] 	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
    [ERROR] 	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
    [ERROR] 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    [ERROR] 	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    [ERROR] 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    [ERROR] 	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    [ERROR] 	at org.mortbay.jetty.Server.doStart(Server.java:224)
    [ERROR] 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    [ERROR] 	at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:196)
    [ERROR] 	at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:239)
    [ERROR] 	at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:146)
    [ERROR] 	at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:97)
    [ERROR] 	at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
    [ERROR] 	at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
    [ERROR] 	at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
    [ERROR] 	at com.google.gwt.dev.DevMode.main(DevMode.java:311)
    [ERROR] 2012-06-07 15:19:03.175:INFO::Started [email protected]:8888
    [ERROR] 7 juin 2012 17:19:03 com.google.appengine.tools.development.DevAppServerImpl start
    [ERROR] INFO: The server is running at http://localhost:8888/
    [ERROR] 7 juin 2012 17:19:03 com.google.appengine.tools.development.DevAppServerImpl start
    [ERROR] INFO: The admin console is running at http://localhost:8888/_ah/admin
    and server is not running well after http://localhost:8888/ is on http 503 error


    Subsidiary question as last versions od appengine are JPA2 compliant do you think it would be possible to use
    eclipselink and after to configure the appengine.xml and the eclipselink to work with appengine
    because roo refuse the command

    Code:
    jpa setup --provider ECLIPSELINK --database GOOGLE_APP_ENGINE
    thanks in advance for all your advices /answers

    Regards

  • #2
    For your subsidiary question ... EclipseLink does not support persistence to BigTable datastore. "GAE JPA" is a JPA implementation that provides persistence to BigTable. It is the only current JPA implementation providing persistence to BigTable. It is a plugin for DataNucleus, which also has plugins for RDBMS, NeoDatis, XML, ODF, Excel, HBase, MongoDB, Cassandra, LDAP and others.

    Comment

    Working...
    X