Announcement Announcement Module
Collapse
No announcement yet.
Error: Server Error Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error: Server Error

    I have been trying to push my Roo project to Google Application Engine and I keep getting 500 server error. When I run it using the mvn gwt:run it works fine.

    I'm using the latest version of STS 2.5 with roo 1.1.0 M3. Has anybody else had issue with deploying to gae?

    Stack trace.

    Uncaught exception from servlet
    javax.servlet.UnavailableException: 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.
    at org.mortbay.jetty.servlet.ServletHolder.makeUnavai lable(ServletHolder.java:415)
    at org.mortbay.jetty.servlet.ServletHolder.initServle t(ServletHolder.java:458)
    at org.mortbay.jetty.servlet.ServletHolder.doStart(Se rvletHolder.java:263)
    at org.mortbay.component.AbstractLifeCycle.start(Abst ractLifeCycle.java:50)
    at org.mortbay.jetty.servlet.ServletHandler.initializ e(ServletHandler.java:685)
    at org.mortbay.jetty.servlet.Context.startContext(Con text.java:140)
    at org.mortbay.jetty.webapp.WebAppContext.startContex t(WebAppContext.java:1250)
    at org.mortbay.jetty.handler.ContextHandler.doStart(C ontextHandler.java:517)
    at org.mortbay.jetty.webapp.WebAppContext.doStart(Web AppContext.java:467)
    at org.mortbay.component.AbstractLifeCycle.start(Abst ractLifeCycle.java:50)
    at com.google.apphosting.runtime.jetty.AppVersionHand lerMap.createHandler(AppVersionHandlerMap.java:191 )
    at com.google.apphosting.runtime.jetty.AppVersionHand lerMap.getHandler(AppVersionHandlerMap.java:168)
    at com.google.apphosting.runtime.jetty.JettyServletEn gineAdapter.serviceRequest(JettyServletEngineAdapt er.java:123)
    at com.google.apphosting.runtime.JavaRuntime.handleRe quest(JavaRuntime.java:251)
    at com.google.apphosting.base.RuntimePb$EvaluationRun time$6.handleBlockingRequest(RuntimePb.java:6784)
    at com.google.apphosting.base.RuntimePb$EvaluationRun time$6.handleBlockingRequest(RuntimePb.java:6782)
    at com.google.net.rpc.impl.BlockingApplicationHandler .handleRequest(BlockingApplicationHandler.java:24)
    at com.google.net.rpc.impl.RpcUtil.runRpcInApplicatio n(RpcUtil.java:398)
    at com.google.net.rpc.impl.Server$2.run(Server.java:8 52)
    at com.google.tracing.LocalTraceSpanRunnable.run(Loca lTraceSpanRunnable.java:56)
    at com.google.tracing.LocalTraceSpanBuilder.internalC ontinueSpan(LocalTraceSpanBuilder.java:576)
    at com.google.net.rpc.impl.Server.startRpc(Server.jav a:807)
    at com.google.net.rpc.impl.Server.processRequest(Serv er.java:369)
    at com.google.net.rpc.impl.ServerConnection.messageRe ceived(ServerConnection.java:442)
    at com.google.net.rpc.impl.RpcConnection.parseMessage s(RpcConnection.java:319)
    at com.google.net.rpc.impl.RpcConnection.dataReceived (RpcConnection.java:290)
    at com.google.net.async.Connection.handleReadEvent(Co nnection.java:474)
    at com.google.net.async.EventDispatcher.processNetwor kEvents(EventDispatcher.java:831)
    at com.google.net.async.EventDispatcher.internalLoop( EventDispatcher.java:207)
    at com.google.net.async.EventDispatcher.loop(EventDis patcher.java:103)
    at com.google.net.rpc.RpcService.runUntilServerShutdo wn(RpcService.java:251)
    at com.google.apphosting.runtime.JavaRuntime$RpcRunna ble.run(JavaRuntime.java:418)
    at java.lang.Thread.run(Thread.java:636)
    Last edited by zpyoung; Sep 1st, 2010, 07:14 AM.

  • #2
    I get the same error when deploying to Google App Engine. I don't know how to fix it though. Does anybody know what to do about it?

    Comment


    • #3
      Got the same Error on just executing sample expense.roo script

      Environment of development
      Spring roo 1.1.0.M3 and STS 2.5.0.M3 on Ubuntu 10.04


      Uncaught exception from servlet
      javax.servlet.UnavailableException: 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.
      at org.mortbay.jetty.servlet.ServletHolder.makeUnavai lable(ServletHolder.java:415)
      at org.mortbay.jetty.servlet.ServletHolder.initServle t(ServletHolder.java:458)
      at org.mortbay.jetty.servlet.ServletHolder.doStart(Se rvletHolder.java:263)
      at org.mortbay.component.AbstractLifeCycle.start(Abst ractLifeCycle.java:50)
      at org.mortbay.jetty.servlet.ServletHandler.initializ e(ServletHandler.java:685)
      at org.mortbay.jetty.servlet.Context.startContext(Con text.java:140)
      at org.mortbay.jetty.webapp.WebAppContext.startContex t(WebAppContext.java:1250)
      at org.mortbay.jetty.handler.ContextHandler.doStart(C ontextHandler.java:517)
      at org.mortbay.jetty.webapp.WebAppContext.doStart(Web AppContext.java:467)
      at org.mortbay.component.AbstractLifeCycle.start(Abst ractLifeCycle.java:50)
      at com.google.apphosting.runtime.jetty.AppVersionHand lerMap.createHandler(AppVersionHandlerMap.java:191 )
      at com.google.apphosting.runtime.jetty.AppVersionHand lerMap.getHandler(AppVersionHandlerMap.java:168)
      at com.google.apphosting.runtime.jetty.JettyServletEn gineAdapter.serviceRequest(JettyServletEngineAdapt er.java:123)
      at com.google.apphosting.runtime.JavaRuntime.handleRe quest(JavaRuntime.java:251)
      at com.google.apphosting.base.RuntimePb$EvaluationRun time$6.handleBlockingRequest(RuntimePb.java:6784)
      at com.google.apphosting.base.RuntimePb$EvaluationRun time$6.handleBlockingRequest(RuntimePb.java:6782)
      at com.google.net.rpc.impl.BlockingApplicationHandler .handleRequest(BlockingApplicationHandler.java:24)
      at com.google.net.rpc.impl.RpcUtil.runRpcInApplicatio n(RpcUtil.java:398)
      at com.google.net.rpc.impl.Server$2.run(Server.java:8 52)
      at com.google.tracing.LocalTraceSpanRunnable.run(Loca lTraceSpanRunnable.java:56)
      at com.google.tracing.LocalTraceSpanBuilder.internalC ontinueSpan(LocalTraceSpanBuilder.java:576)
      at com.google.net.rpc.impl.Server.startRpc(Server.jav a:807)
      at com.google.net.rpc.impl.Server.processRequest(Serv er.java:369)
      at com.google.net.rpc.impl.ServerConnection.messageRe ceived(ServerConnection.java:442)
      at com.google.net.rpc.impl.RpcConnection.parseMessage s(RpcConnection.java:319)
      at com.google.net.rpc.impl.RpcConnection.dataReceived (RpcConnection.java:290)
      at com.google.net.async.Connection.handleReadEvent(Co nnection.java:474)
      at com.google.net.async.EventDispatcher.processNetwor kEvents(EventDispatcher.java:831)
      at com.google.net.async.EventDispatcher.internalLoop( EventDispatcher.java:207)
      at com.google.net.async.EventDispatcher.loop(EventDis patcher.java:103)
      at com.google.net.rpc.RpcService.runUntilServerShutdo wn(RpcService.java:251)
      at com.google.apphosting.runtime.JavaRuntime$RpcRunna ble.run(JavaRuntime.java:418)
      at java.lang.Thread.run(Thread.java:636)

      Comment


      • #4
        We are aware of this issue and it has been fixed for the next release of Spring Framework. In the meantime there is a smal adjustment needed in your webmvc-config.xml. See here for details https://jira.springframework.org/browse/ROO-1006.

        Comment

        Working...
        X