• 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 Png takiuchi on Mon 13 Apr 2009 at 15:01 with 11 comments

Comments: Trackbacks:

Face ribrdb over 1 year ago.

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

Png 瀧内元気 over 1 year ago.

Thank you for telling me that!

Face broc over 1 year ago.

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

Png 瀧内元気 over 1 year ago.

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 :-)

Face broc over 1 year ago.

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.

Png 瀧内元気 over 1 year ago.

That's good to hear. Thank you for reporting :-)

Face broc over 1 year ago.

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.

Png 瀧内元気 over 1 year ago.

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.

Face broc over 1 year ago.

I have the same versions but still the same error... So, I'm going to wait for your post. Thanks a lot !

Png 瀧内元気 over 1 year ago.

Hi, I wrote the article here

Please check it out :-)

Face broc over 1 year ago.

Hi,

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

or Preview
Social Bookmarks
  • Delicious
  • B_entry1426
  • Clip_16_12_w
Services from s21g
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
PokéDia
日めくり手帳アプリ
Formula
ブログに数式を埋め込める数式コミュニティ