Announcement Announcement Module
Collapse
No announcement yet.
GAE + GWT + roo-1.1.0.M3 fails Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • GAE + GWT + roo-1.1.0.M3 fails

    I've created a simple .roo script. When I run it with "mvn tomcat:run", everything is fine.

    Code:
    project --topLevelPackage org.pbjsoft.manbook --projectName manalive --java 6
    persistence setup --provider DATANUCLEUS --database GOOGLE_APP_ENGINE 
    entity --class ~.person
    field string --fieldName name
    field string --fieldName screenname
    field string --fieldName aboutme
    controller all --package ~.web
    quit
    When I type "gwt setup" in the roo shell, the application fails to start with either "mvn tomcat:run" or "mvn gwt:run".

    In the terminal, I see these error messages when I run "mvn gwt:run":

    Code:
    [ERROR] 2010-10-18 14:22:30.379:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
    [ERROR] Oct 18, 2010 2:22:30 PM com.google.appengine.tools.development.IsolatedAppClassLoader checkWorkingDirectory
    [ERROR] WARNING: Your working directory, (/home/pakelley/manalive_gae) is not equal to your 
    [ERROR] web application root (/home/pakelley/manalive_gae/target/manalive-0.1.0.BUILD-SNAPSHOT)
    [ERROR] You will not be able to access files from your working directory on the production server.
    [ERROR] 
    [ERROR] Oct 18, 2010 2:22:30 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
    [ERROR] INFO: Successfully processed /home/pakelley/manalive_gae/target/manalive-0.1.0.BUILD-SNAPSHOT/WEB-INF/appengine-web.xml
    [ERROR] Oct 18, 2010 2:22:31 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
    [ERROR] INFO: Successfully processed /home/pakelley/manalive_gae/target/manalive-0.1.0.BUILD-SNAPSHOT/WEB-INF/web.xml
    [ERROR] Unable to start embedded HTTP server
    [ERROR] com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
    [ERROR]     at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:91)
    [ERROR]     at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:431)
    [ERROR]     at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1053)
    [ERROR]     at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:795)
    [ERROR]     at com.google.gwt.dev.DevMode.main(DevMode.java:282)
    In the GWT Development Mode window, I see this exception:

    Code:
    00:00:04.641 [ERROR] Unable to start AppEngine server
    com.google.apphosting.utils.config.AppEngineConfigException: Welcome files must be relative paths: /     at com.google.apphosting.utils.config.WebXml.validate(WebXml.java:115)     at com.google.appengine.tools.development.AbstractContainerService.loadAppEngineWebXml(AbstractContainerService.java:241)     at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:144)     at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:222)     at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:86)     at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:431)     at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1053)     at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:795)     at com.google.gwt.dev.DevMode.main(DevMode.java:282)
    When I run it with "mvn tomcat:run" it now fails (since I typed 'gwt setup'). I get these errors in Terminal:

    Code:
    2010-10-18 07:28:06,763 [main] ERROR DataNucleus.Plugin - Bundle "org.datanucleus.store.appengine" requires "org.datanucleus" version "[1.0.4, 1.1.5.final)" but the resolved bundle has version "1.0.7.final" which is outside the expected range.
    DataNucleus Enhancer (version 1.1.4) : Enhancement of classes
    DataNucleus Enhancer : Classpath
    >>  /home/pakelley/springsource/maven-2.2.1.RELEASE/boot/classworlds-1.1.jar
    ENHANCED (PersistenceCapable) : org.pbjsoft.manbook.Person
    DataNucleus Enhancer completed with success for 1 classes. Timings : input=1180 ms, enhance=188 ms, total=1368 ms. Consult the log for full details
    [INFO] [tomcat:run {execution: default-cli}]
    [INFO] Running war on http://localhost:8080/manalive
    [INFO] Using existing Tomcat server configuration at /home/pakelley/manalive_gae/target/tomcat
    Oct 18, 2010 7:28:13 AM org.apache.catalina.startup.Embedded start
    INFO: Starting tomcat server
    Oct 18, 2010 7:28:14 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
    Oct 18, 2010 7:28:17 AM org.apache.catalina.core.ApplicationContext log
    INFO: Initializing Spring root WebApplicationContext
    2010-10-18 07:28:21,730 [main] ERROR DataNucleus.Plugin - Bundle "org.datanucleus.store.appengine" requires "org.datanucleus" version "[1.0.4, 1.1.5.final)" but the resolved bundle has version "1.0.7.final" which is outside the expected range.
    2010-10-18 07:28:23,452 [main] ERROR DataNucleus.Plugin - Bundle "org.datanucleus.store.appengine" requires "org.datanucleus" version "[1.0.4, 1.1.5.final)" but the resolved bundle has version "1.0.7.final" which is outside the expected range.
    Oct 18, 2010 7:28:26 AM org.apache.catalina.core.ApplicationContext log
    INFO: Initializing Spring FrameworkServlet 'manalive'
    Oct 18, 2010 7:28:32 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Oct 18, 2010 7:28:32 AM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Oct 18, 2010 7:28:36 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet manalive threw exception
    javax.servlet.ServletException: Could not resolve view with name '/ApplicationScaffold.html' in servlet with name 'manalive'
        at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1013)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:815)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:717)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:636)

    When I change the persistence provider to HIBERNATE on HYPERSONIC_IN_MEMORY, and run it with "mvn gwt:run", everything works.
    Code:
    persistence setup --database HYPERSONIC_IN_MEMORY --provider HIBERNATE
    There seems to be a conflict when trying to use GAE with GWT with Roo M3. Have others experienced this? Is there a BUG ticket open? Is there a workaround?

  • #2
    Platform Information

    In case this matters:

    I'm on Ubuntu 10.10.

    pakelley@Minitacular:~$ uname -a
    Linux Minitacular 2.6.35-22-generic #34-Ubuntu SMP Sun Oct 10 09:24:00 UTC 2010 i686 GNU/Linux

    Comment


    • #3
      Bump.

      Same problem. About to give up on roo with GAE.

      Comment

      Working...
      X