grantmichaels'blog

cad|cam engineer, music dj|producer, 2nd shooter, & solo web developer

Getting the “Merb on Linode” Stack to Run on Glassfish v3

leave a comment »

So, this is really funny actually … because there is some seriously rich, inside-humor in the title of this post! See here if you are interested in a little comic detour.

Anyways, I’m experiencing all kinds of first experiences of late, and today I had that moment I imagine everyone has when they are new to the open source development process – the very moment when a bug that blocked your path gets fixed by the commiters almost immediately and you are back on track without doing anything besides providing a stack trace. I’m a little giddy, I must admit, and somehow feel compelled to say “thank you” to the Glassfish and JRuby and Merb teams for fixing the broken JRuby and Glassfish interop that marred my previous post. I realize how cheezy that is, but it is kind of surreal when your background is closed source coding.

Here’s how to get the Merb on JRuby stack I recently wrote about to work with Glassfish v3 using the v0.9.1 “glassfish gem” that was just released a couple of hours ago.

cd ~
jruby -S jgem uninstall glassfish
“say yes to removing the files when prompted – should say v.0.9.0 successfully removed in response”
jruby -S jgem install glassfish –no-ri –no-rdoc
“should suceed”
sudo gem uninstall glassfish
“say yes to remove the files once more – now you won’t have the cross compiled 0.9.0 i mistakenly installed to MRI ruby via JRuby in my previous post”

then:

cd ~/
jruby -S ~/jruby/bin/glassfish

point your browser to http://localhost:3000 or to http://localhost:3000/runners if you followed Arun’s example app …

Here’s to more Merb/JRuby goodness!

Next, I’ll be adding Ruby-Processing and setting up BlazeDS, and finally I’m going to be making a Merb back-end to accept multiple simultaneous file uploads to a CouchDB store via an Air client app similar to the the one the Vixiom guys described a year ago here.

I plan to add a ratings system and use Disqus to allow comments on the file uploads, and for my specific purpose, to create a DXF 2D CAD file previewer in the Air client (via Degrafa) to wrap it up …

Hoping to have this completed by end of year (working nights and weekends) – so wish me luck, because I’m going to need it!

grantmichaels

PS – Big thanks to Vivek of Glassfish, Arun Gupta, and Mr. Charles Nutter … and to Matt Todd, separately.

Written by grantmichaels

December 5, 2008 at 5:03 am

Leave a Reply

You must be logged in to post a comment.