Arun Gupta, Miles to go ...

Arun Gupta is a technology enthusiast, a passionate runner, and a community guy who works for Sun Microsystems.
« 3 steps for successf... | Main | Bought a new treadmi... »

http://blogs.sun.com/arungupta/date/20080216 Saturday February 16, 2008

GlassFish v3 gem on JRuby 1.1 RC2

JRuby 1.1 RC2 was released earlier today an GlassFish v3 gem works like a charm on it :)

Read the complete announcement here. The key features of RC2 are:

  1. 260 issues resolved
  2. Large IO refactoring
  3. Less memory than previous release
    1. Control total number of JIT'd methods
    2. Support a JIT cache between runtimes to return permgen
    3. 50-70% reduction in generated methods
Here are the steps for quick verification on v3 gem ...
  1. Download JRuby 1.1 RC2
  2. Install Rails and create a simple Rails application as described in TOTD #24.
  3. Install GlassFish v3 gem using the command as shown below:

    bin/jruby -S gem install glassfish             
    JRuby limited openssl loaded. gem install jruby-openssl for full support.
    http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
    Successfully installed glassfish-0.1.1-universal-java
    1 gem installed
  4. And now the simple application can be easily deployed on GlassFish gem as:

    jruby -S glassfish_rails hello

    Notice this command needs to be given from the parent directory of the application. The Applcation environment is as shown below:

    JRuby 1.1 RC2 Application Environment

    and the application output looks like exactly as expected:

    JRuby 1.1 RC2 Application Output
More details about GlassFish and JRuby can be found @ GlassFish wiki and JRuby wiki. Help us test your application on the v3 gem and file issues in JIRA or GlassFish Issue Tracker.

Please use the gem and send us feedback on GlassFish forums, dev@glassfish or gem mailing list.

Technorati: jruby ruby rubyonrails glassfish v3 gem

del.icio.us | furl | simpy | slashdot | technorati | digg |
|
Comments:

I happened to run across a show-stopping problem (for me - a complete noob in this area) on SXDE 1/08. It seems as though jruby tries to *create* /dev/null rather than just opening it for writing.

http://jira.codehaus.org/browse/JRUBY-2125

I did not have this problem on Windows.

BTW, is it expected that drag and drop of just about all of the jMaki widgets does not work with 1.1? I spent a lot of time this weekend trying to figure out a rather large set of tools (NetBeans, jruby, jMaki, Phobos, MySQL, ...) and this was the straw that made me stop looking at jruby. I suspect that it has something to do with the fact that when a new view is created it creates a .erb file rather than a .rhtml file. Any pointers to what is going on here would be most appreciated.

Thank you very much for your frequent blog entries and screencasts. They have been very helpful.

Posted by Mike Gerdts on February 17, 2008 at 07:49 PM PST #

[Trackback] BitNami provides easy-to-use, integrated and multiplatform install bundles for different open source apps. They released JRubyStack last week which includes JRuby 1.1 RC2, Rails 2.0.2, GlassFish v3 Gem 0.1.1, MySQL 5.0.45 and some other miscellaneous c...

Posted by Arun Gupta's Blog on March 11, 2008 at 01:03 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
« 3 steps for successf... | Main | Bought a new treadmi... »

Valid HTML! Valid CSS!

This is a personal weblog, I do not speak for my employer.