Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Error deploying to Google App Engine

  1. #11
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    With the Roo 1.1 M3 release we have changed the way we map the Spring DispatcherServlet following Spring Framework improvements. We are also using a new MVC resources handler (configured in webmvc-config.xml) which allows serving of static resources. Both of these changes allow us to remove the need for URL rewriting (which was present in previous versions of Roo) while still offering clean RESTful URLs.

    As you have seen this causes some issues on GAE which we are currently following up with Google. The main issue for Roo scaffolded MVC applications is however the need for JSP 2.1 which GAE currently does not support (see https://jira.springframework.org/browse/ROO-1006 for details).
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

  2. #12

    Default

    Stefan,

    Thanks for the reply. What I have also been trying to work on is getting the expenses.roo sample working. In this script the controller command has been commented out. I believe what you are saying is that MVC should not be working as seen in ROO-1006. But I'm not using MVC correct?

    What is the work around for ROO-1006?

  3. #13

    Default

    I have a painfull workround: keep trying.

    It happened to me a week ago but the after re-compiling and re-deploying several times it worked.
    Then the same error happened again yesterday so I ended up on this thread. But today I tried again re-compiling/re-deploying and, after serveral times, it now runs perfectly on AppEngine.
    I did not make any changes to the config or the source (just went to sleep).

    It's a bit puzzling.

  4. #14
    Join Date
    Aug 2010
    Posts
    8

    Default

    I have been trying that painful workaround for a few weeks, with no success. For the moment I get the following error when running mvn gae:deploy:

    com.google.appengine.tools.admin.JspCompilationExc eption: Failed to compile the generated JSP java files.
    Unable to update app: Failed to compile the generated JSP java files.

    I guess it depends on the JSP 2.1 problem. Does it sometimes work with the roo generated views, or do I have to change them or possibly delete them and create new views?

    Is there a workaround for the JSP 2.1-problem? I don't care about some loss of functionality, just to get it to run on app engine?

  5. #15

    Default

    In my case, I'm using GWT so only the following error got "fixed"

    Code:
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.web.servlet.resource.DefaultS ervletHttpRequestHandler#0': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Unable to locate the default servlet for serving static content. Please set the 'defaultServletName' property explicitly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •