Hi,
I have been working off this tutorial
http://docs.google.com/View?id=d656rh6_36f7j9qzc3
trying to setup a Rails application, with datamapper that will run
an GAE. I have followed all the steps (I believe correctly). But,
whenever I run the dev_appserver.rb I get this exception:
=> Generating configuration files
/Users/joshmoore/.gem/jruby/1.8/gems/appengine-apis-0.0.9/lib/
appengine-apis/datastore_types.rb:168:in const_missing': cannot load Java class com.google.appengine.api.datastore.Rating (NameError) from /Users/joshmoore/.gem/jruby/1.8/gems/appengine-apis-0.0.9/lib/ appengine-apis/datastore_types.rb:173 from /Users/joshmoore/.gem/jruby/1.8/gems/appengine-apis-0.0.9/lib/ appengine-apis/datastore_types.rb:31:in
require’
from /opt/local/share/java/jruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in require' from /Users/joshmoore/.gem/jruby/1.8/gems/appengine-apis-0.0.9/lib/ appengine-apis/datastore.rb:27 from /Users/joshmoore/.gem/jruby/1.8/gems/appengine-apis-0.0.9/lib/ appengine-apis/datastore.rb:31:in
require’
from /opt/local/share/java/jruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in require' from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/dm- appengine-0.0.5/lib/appengine_adapter.rb:24 from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/dm- appengine-0.0.5/lib/appengine_adapter.rb:36:in
require’
… 8 levels…
from config/environment.rb:31:in require' from /opt/local/share/java/jruby/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:31:in
require’
from config.ru:9:in `generate_xml’
Here is the output of the “appcfg.rb gem list” command:
=> Running RubyGems
*** 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.9)
dm-appengine (0.0.5)
dm-ar-finders (0.10.1)
dm-core (0.10.1)
dm-timestamps (0.10.1)
dm-validations (0.10.1)
extlib (0.9.13)
rack (1.0.0)
rails (2.3.3)
rake (0.8.7)
The config.ru file looks like this:
require ‘appengine-rack’
AppEngine::Rack.configure_app(
:application => ‘jsm277’,
:sessions_enabled => true,
:version => ‘dm_test’)
AppEngine::Rack.app.resource_files.exclude :rails_excludes
ENV[‘RAILS_ENV’] = AppEngine::Rack.environment
require ‘config/environment’
run ActionController::Dispatcher.new
I would appreciate all advice to help fix this problem. Thanks in
advance.
Josh
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email