Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
1. the stack trace
==================
Macintosh:guestbook rsaccon$ dev_appserver.rb .
=> Booting DevAppServer
=> Press Ctrl-C to shutdown server
=> Bundling gems
Calculating dependencies...
Updating source: http://gems.rubyforge.org
/opt/local/lib/ruby/gems/1.8/gems/bundler08-0.8.5/lib/bundler08/resolver.rb:115:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
Downloading addressable-2.1.2.gem
Caching: appengine-apis-0.0.15.gem
Caching: appengine-rack-0.0.8.gem
Downloading dm-appengine-0.0.8.gem
Downloading dm-core-0.10.2.gem
Caching: extlib-0.9.14.gem
Caching: haml-3.0.4.gem
Caching: jruby-rack-0.9.7.gem
Caching: rack-1.1.0.gem
Caching: sinatra-1.0.gem
Installing extlib (0.9.14)
Installing rack (1.1.0)
Installing addressable (2.1.2)
Installing dm-core (0.10.2)
Installing jruby-rack (0.9.7)
Installing appengine-rack (0.0.8)
Installing appengine-apis (0.0.15)
Installing dm-appengine (0.0.8)
Installing haml (3.0.4)
Installing sinatra (1.0)
Done.
=> Packaging gems
Installing appengine-rack.jar
Installing jruby-rack-0.9.7.jar
=> Installing JRuby
=> Installing appengine-sdk
2010-05-15 04:44:14.869 java[3707:160b] [Java CocoaComponent compatibility mode]: Enabled
2010-05-15 04:44:14.871 java[3707:160b] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
May 15, 2010 7:44:15 AM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
May 15, 2010 7:44:15 AM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed /Users/rsaccon/code/guestbook/WEB-INF/appengine-web.xml
May 15, 2010 7:44:15 AM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed /Users/rsaccon/code/guestbook/WEB-INF/web.xml
May 15, 2010 7:44:15 AM com.google.apphosting.utils.jetty.JettyLogger info
INFO: jetty-6.1.x
May 15, 2010 7:44:16 AM com.google.appengine.tools.development.agent.impl.BlackList initBlackList
SEVERE: Unable to read a jre library while constructing the blacklist. Security restrictions may not be entirely emulated. /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/plugin.jar
JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
May 15, 2010 7:44:25 AM com.google.appengine.tools.development.ApiProxyLocalImpl log
SEVERE: [1273909465733000] javax.servlet.ServletContext log: unable to create shared application instance
org.jruby.rack.RackInitializationException: No such file or directory - /Users/rsaccon/code/guestbook/file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/VERSION
from file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/lib/haml/version.rb:45:in `version'
from file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/lib/haml.rb:21
from file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/lib/haml.rb:3:in `require'
from ./guestbook.rb:3
from ./guestbook.rb:2:in `require'
from config.ru:2
at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:172)
at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:51)
at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:27)
at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:40)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:185)
at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:146)
at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:219)
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.<init>(DevAppServerMain.java:113)
at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:89)
Caused by: org.jruby.exceptions.RaiseException: /Users/rsaccon/code/guestbook/file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/VERSION
at (unknown).new(file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/lib/haml/version.rb:45)
at File.initialize(file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/lib/haml/version.rb:45)
at Haml::Version.version(file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/lib/haml.rb:21)
at (unknown).(unknown)(file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/lib/haml.rb:3)
at (unknown).(unknown)(file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/lib/haml.rb:3)
at Kernel.require(./guestbook.rb:3)
at (unknown).(unknown)(./guestbook.rb:2)
at Kernel.require(config.ru:2)
at (unknown).(unknown)(file:/Users/rsaccon/code/guestbook/WEB-INF/lib/jruby-rack-0.9.7.jar!/vendor/rack-1.1.0/rack/builder.rb:46)
at Kernel.eval(<script>:3)
at (unknown).(unknown)(file:/Users/rsaccon/code/guestbook/WEB-INF/lib/jruby-rack-0.9.7.jar!/vendor/rack-1.1.0/rack/builder.rb:46)
at Kernel.instance_eval(file:/Users/rsaccon/code/guestbook/WEB-INF/lib/jruby-rack-0.9.7.jar!/vendor/rack-1.1.0/rack/builder.rb:46)
at Kernel.instance_eval(file:/Users/rsaccon/code/guestbook/WEB-INF/lib/jruby-rack-0.9.7.jar!/vendor/rack-1.1.0/rack/builder.rb:46)
at Rack::Builder.initialize(<script>:3)
at (unknown).new(<script>:3)
at (unknown).(unknown)(:1)
May 15, 2010 7:44:25 AM com.google.appengine.tools.development.ApiProxyLocalImpl log
SEVERE: [1273909465736000] 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:39)
at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:40)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:185)
at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:146)
at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:219)
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.<init>(DevAppServerMain.java:113)
at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:89)
Caused by: org.jruby.rack.RackInitializationException: No such file or directory - /Users/rsaccon/code/guestbook/file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/VERSION
from file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/lib/haml/version.rb:45:in `version'
from file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/lib/haml.rb:21
from file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/lib/haml.rb:3:in `require'
from ./guestbook.rb:3
from ./guestbook.rb:2:in `require'
from config.ru:2
at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:172)
at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:51)
at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:27)
... 19 more
Caused by: org.jruby.exceptions.RaiseException: /Users/rsaccon/code/guestbook/file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/VERSION
at (unknown).new(file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/lib/haml/version.rb:45)
at File.initialize(file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/lib/haml/version.rb:45)
at Haml::Version.version(file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/lib/haml.rb:21)
at (unknown).(unknown)(file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/lib/haml.rb:3)
at (unknown).(unknown)(file:/Users/rsaccon/code/guestbook/WEB-INF/lib/gems.jar!/bundler_gems/jruby/1.8/gems/haml-3.0.4/lib/haml.rb:3)
at Kernel.require(./guestbook.rb:3)
at (unknown).(unknown)(./guestbook.rb:2)
at Kernel.require(config.ru:2)
at (unknown).(unknown)(file:/Users/rsaccon/code/guestbook/WEB-INF/lib/jruby-rack-0.9.7.jar!/vendor/rack-1.1.0/rack/builder.rb:46)
at Kernel.eval(<script>:3)
at (unknown).(unknown)(file:/Users/rsaccon/code/guestbook/WEB-INF/lib/jruby-rack-0.9.7.jar!/vendor/rack-1.1.0/rack/builder.rb:46)
at Kernel.instance_eval(file:/Users/rsaccon/code/guestbook/WEB-INF/lib/jruby-rack-0.9.7.jar!/vendor/rack-1.1.0/rack/builder.rb:46)
at Kernel.instance_eval(file:/Users/rsaccon/code/guestbook/WEB-INF/lib/jruby-rack-0.9.7.jar!/vendor/rack-1.1.0/rack/builder.rb:46)
at Rack::Builder.initialize(<script>:3)
at (unknown).new(<script>:3)
at (unknown).(unknown)(:1)
May 15, 2010 7:44:25 AM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Started SelectChannelConnector@127.0.0.1:8080
The server is running at http://localhost:8080/
2. contents of config.ru
========================
require 'appengine-rack'
require 'guestbook'
AppEngine::Rack.configure_app(:application => "guestbook", :version => 1)
configure :development do
class Sinatra::Reloader < ::Rack::Reloader
def safe_load(file, mtime, stderr)
if File.expand_path(file) == File.expand_path(::Sinatra::Application.app_file)
::Sinatra::Application.reset!
stderr.puts "#{self.class}: reseting routes"
end
super
end
end
use Sinatra::Reloader
end
run Sinatra::Application
3. contents of Gemfile
======================
disable_system_gems
disable_rubygems
bundle_path ".gems/bundler_gems"
gem "sinatra"
gem "dm-core"
gem "dm-appengine"
gem "haml"
4. output from "ls -1 WEB-INF/lib"
==================================
Macintosh:guestbook rsaccon$ ls -1 WEB-INF/lib
appengine-api-1.0-sdk-1.3.3.1.jar
appengine-api-labs-1.3.3.1.jar
appengine-jruby-0.0.8.pre.jar
appengine-rack.jar
gems.jar
jruby-rack-0.9.7.jar
5. output from "gem list | grep appengine
=========================================
Macintosh:guestbook rsaccon$ gem list | grep appengine
appengine-apis (0.0.15)
appengine-jruby-jars (0.0.8.pre, 0.0.7, 0.0.7.pre, 0.0.6)
appengine-rack (0.0.8, 0.0.7, 0.0.6)
appengine-sdk (1.3.3.1, 1.3.2, 1.3.1)
appengine-tools (0.0.12, 0.0.11, 0.0.10.1)
google-appengine (0.0.12, 0.0.11, 0.0.10.1)
additional information:
=======================
Operating system: MAC OS X 10.5.6
Macintosh:guestbook rsaccon$ sudo gem --version
1.3.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.