Unable to start Google App Engine using google-appengine

I’m trying to get the appengine-jruby gem working as described here:
http://code.google.com/p/appengine-jruby/wiki/GettingStarted.

I followed all the instructions for the Hello World app on that page but
I’m unable to successfully start dev_appserver.rb. When I try, I
receive:

dev_appserver.rb .
=> Booting DevAppServer
=> Press Ctrl-C to shutdown server
=> Downloading jruby-rack…
2009-08-16 15:08:49.669 java[28614:80f] [Java CocoaComponent
compatibility mode]: Enabled
2009-08-16 15:08:49.670 java[28614:80f] [Java CocoaComponent
compatibility mode]: Setting timeout for SWT to 0.100000
Aug 16, 2009 10:10:06 PM
com.google.appengine.tools.development.ApiProxyLocalImpl log
SEVERE: [1250460606371000] javax.servlet.ServletContext log: Warning:
error application could not be initialized
org.jruby.rack.RackInitializationException: Operation timed out

at
org.jruby.rack.DefaultRackApplicationFactory.newRuntime(DefaultRackApplicationFactory.java:82)
at
org.jruby.rack.DefaultRackApplicationFactory.createApplication(DefaultRackApplicationFactory.java:146)
at
org.jruby.rack.DefaultRackApplicationFactory.newErrorApplication(DefaultRackApplicationFactory.java:96)
at
org.jruby.rack.DefaultRackApplicationFactory.init(DefaultRackApplicationFactory.java:36)
at
org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:25)
at
org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:39)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:217)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:152)
at
com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:116)
at
com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:218)
at
com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:162)
at
com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
at
com.google.appengine.tools.development.DevAppServerMain.(DevAppServerMain.java:113)
at
com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:89)
Caused by: org.jruby.exceptions.RaiseException: Operation timed out
at (unknown).initialize(:1)
at (unknown).(unknown)(:1)

Aug 16, 2009 10:11:21 PM
com.google.appengine.tools.development.ApiProxyLocalImpl log
SEVERE: [1250460681374000] javax.servlet.ServletContext log: unable to
create shared application instance
org.jruby.rack.RackInitializationException: Operation timed out

at
org.jruby.rack.DefaultRackApplicationFactory.newRuntime(DefaultRackApplicationFactory.java:82)
at
org.jruby.rack.DefaultRackApplicationFactory.createApplication(DefaultRackApplicationFactory.java:146)
at
org.jruby.rack.DefaultRackApplicationFactory.newApplication(DefaultRackApplicationFactory.java:41)
at
org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:49)
at
org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:26)
at
org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:39)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:217)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:152)
at
com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:116)
at
com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:218)
at
com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:162)
at
com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
at
com.google.appengine.tools.development.DevAppServerMain.(DevAppServerMain.java:113)
at
com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:89)
Caused by: org.jruby.exceptions.RaiseException: Operation timed out
at (unknown).initialize(:1)
at (unknown).(unknown)(:1)

Aug 16, 2009 10:11:21 PM
com.google.appengine.tools.development.ApiProxyLocalImpl log
SEVERE: [1250460681374000] javax.servlet.ServletContext log: Error:
application initialization failed
org.jruby.rack.RackInitializationException: unable to create shared
application instance
at
org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:38)
at
org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:39)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:217)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:152)
at
com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:116)
at
com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:218)
at
com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:162)
at
com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
at
com.google.appengine.tools.development.DevAppServerMain.(DevAppServerMain.java:113)
at
com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:89)
Caused by: org.jruby.rack.RackInitializationException: Operation timed
out

at
org.jruby.rack.DefaultRackApplicationFactory.newRuntime(DefaultRackApplicationFactory.java:82)
at
org.jruby.rack.DefaultRackApplicationFactory.createApplication(DefaultRackApplicationFactory.java:146)
at
org.jruby.rack.DefaultRackApplicationFactory.newApplication(DefaultRackApplicationFactory.java:41)
at
org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:49)
at
org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:26)
… 19 more
Caused by: org.jruby.exceptions.RaiseException: Operation timed out
at (unknown).initialize(:1)
at (unknown).(unknown)(:1)

The server is running at http://localhost:8080/


Gems I have installed:
*** LOCAL GEMS ***

actionmailer (2.3.3)
actionpack (2.3.3)
activerecord (2.3.3)
activeresource (2.3.3)
activesupport (2.3.3)
addressable (2.1.0)
appengine-apis (0.0.8)
appengine-jruby-jars (0.0.2)
appengine-rack (0.0.2)
appengine-sdk (1.2.2)
appengine-tools (0.0.2)
dm-appengine (0.0.3)
dm-core (0.10.0)
extlib (0.9.13)
google-appengine (0.0.2)
jruby-openssl (0.5.1)
rack (1.0.0)
rails (2.3.3)
rails_datamapper (0.10.0)
rake (0.8.7)
rspec (1.2.6)
sources (0.0.1)

Contents of WEB-INF/lib:
appengine-api-1.0-sdk-1.2.2.jar
jruby-abridged-1.3.1.jar
jruby-abridged-rubygems-1.3.1.jar
jruby-rack-0.9.4.jar

Any idea on what’s going wrong?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs