• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

Today I shipped a new DataMapper plugin that enables us to easily develop Merb-apps been worked with GAE/J.

By using this plugin, you can seamlessly develop your Merb-apps between local and GAE/J environment.

For example, this site is powered by Merb/DM with the dm-datastore-adapter and running on the GAE/J

(This service is under construction :-p)

As a matter of fact, because it is still being alpha status,
you must treat various issues regarding gem dependencies yet.
I appreciate any kind of feedback and of course patches :-)

Enjoy!

posted by takiuchi takiuchi on Mon 13 Apr 2009 at 05:43 with 11 comments
ribrdb ribrdb 04/16 04:35
I've also developed a DataMapper adapter for Google App Engine, although it requires using the next branch of DataMapper (0.10.0).
It's available along with wrappers for several of the App Engine APIs at http://code.google.com/p/appengine-jruby
瀧内元気 瀧内元気 04/17 14:24
Thank you for telling me that!
broc broc 04/20 16:52
Hi,

Thanks for your post but I have the followings errors... I'm a merb newbie :-(

org.jruby.rack.RackInitializationException: no such file to load -- file:/C:/_/work/guestbook/war/WEB-INF/lib/gems.jar!/gems/dm-core-0.9.11/lib/dm-core/adapters/datastore_adapter
from file:/C:/_/work/guestbook/war/WEB-INF/lib/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in require
from file:/C:/_/work/guestbook/war/WEB-INF/lib/gems.jar!/gems/dm-core-0.9.11/lib/dm-core.rb:146:in setup
from file:/C:/_/work/guestbook/war/WEB-INF/lib/gems.jar!/gems/merb_datamapper-1.0.11/lib/merb/orms/data_mapper/connection.rb:44:in setup_connections
[...]

If you have time, could you tell me what's the problem ?

Thanks,
Seb
broc broc 04/20 18:19
Thanks for your quick reply !

Yes, I'm using windows :-(
I finally got it working by putting your files directly inside the dm-core-0.9.11 gem (putting the file of your directory 'dm-datastore-adapter' inside 'dm-core-0.9.11/lib/dm-core/adapters' and the others files (dm-datastore-adapter.rb and appengine-api-1.0-sdk-1.2.0.jar) inside 'dm-core-0.9.11/lib' directory.
Thanks again,
Seb.
瀧内元気 瀧内元気 04/21 00:51
That's good to hear. Thank you for reporting :-)
瀧内元気 瀧内元気 04/21 02:29
Oh, are you using Windows?

I've never tried it.
JRuby probably couldn't be looking up the file from the jar archive on Windows.

If it is possible, I recommend you to try it on POSIX OS.

Good luck :-)
瀧内元気 瀧内元気 04/22 01:08
I am using the released version of the datastore adapter.

My environment is as follows:

* JRuby-1.3.0 (edge version)
* JRuby rack-0.9.4 (edge version)
* All gems are unpacked into MERB_ROOT/gems (or lib/merb.jar)

Now I have no time, but I would post a how-to entry on this weekend.
broc broc 04/22 05:19
Me again ;-) So, I tried on Ubuntu but this is the same (=failing)... And on Google App Engine, I have the same error:
"no such file to load -- file:/base/data/home/apps/brocoli79/1.332952556716181332/WEB-INF/lib/gems.jar!/gems/dm-core-0.9.11/lib/dm-core/adapters/datastore_adapter"

Do you use a special version of datamapper ???

I do not want to bother you but if you could help or write a little article about how getting started with your adapter (what to install, how, ...).

Thanks, Seb.
broc broc 04/22 16:55
I have the same versions but still the same error...
So, I'm going to wait for your post.
Thanks a lot !
瀧内元気 瀧内元気 04/23 23:34
Hi, I wrote the article here

* [How to Make A Merb App on Google App Engine](http://blog.s21g.com/articles/1455)

Please check it out :-)
broc broc 04/27 08:49
Hi,

Thanks for your work. I jump onto the next post to let my comments ;-)