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 components. The components mentioned here are all you need to get started with hosting your JRuby-on-Rails applications on GlassFish. Refer to release notes for more details.
The steps below walks you through installation of JRubyStack. It shows how this stack provides an integrated and ready-to-use bundle for hosting your applications on GlassFish:
- Install JRubyStack
- Download JRubyStack from here. Click on the installer to see:

- Clicking on "Next >" brings the following screen:

Even though it shows "JRuby on Rails" component but it includes everything, including GlassFish v3 Gem & MySQL server, in it.
- Further in the installation process, change the database user name from default "jrubystack" to "root". Take all other defaults through out the installation process.
- After the installation is completed, the following program menu is added

- Download JRubyStack from here. Click on the installer to see:
- After the bundle is installed, it’s ready to use – MySQL server is started, a default application is created in "C:\Users\Arun Gupta\BitNami JRubyStack projects\jrubystack" and hosted using GlassFish v3 gem at "http://localhost:3000". Here is the output shown in the console window started by JRubyStack:
Mar 10, 2008 2:49:26 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: Init service : com.sun.enterprise.v3.services.impl.CmdLineParamProcessor@1d9e5ad
Mar 10, 2008 2:49:26 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: Init service : com.sun.enterprise.v3.server.SystemTasks@33c3e6
Mar 10, 2008 2:49:26 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: Init service : com.sun.enterprise.v3.services.impl.LogManagerService@1b70f9e
Mar 10, 2008 2:49:26 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: Init service : com.sun.enterprise.v3.services.impl.HouseKeeper@666d83
Mar 10, 2008 2:49:26 PM com.sun.enterprise.v3.services.impl.DeploymentService postConstruct
INFO: Supported containers : web,jruby,phobos
Mar 10, 2008 2:49:26 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: Startup service : Deployment
Mar 10, 2008 2:49:26 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: Startup service : org.glassfish.deployment.autodeploy.AutoDeployService@15925c0
Mar 10, 2008 2:49:27 PM com.sun.enterprise.v3.services.impl.GrizzlyAdapter <init>
INFO: Listening on port 3000
Mar 10, 2008 2:49:27 PM com.sun.enterprise.v3.services.impl.GrizzlyAdapter <init>
INFO: Listening on port 3131
Mar 10, 2008 2:49:27 PM com.sun.enterprise.v3.services.impl.GrizzlyAdapter <init>
INFO: Listening on port 3838
Mar 10, 2008 2:49:27 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: Startup service : com.sun.enterprise.v3.services.impl.GrizzlyService@eccfe7
Mar 10, 2008 2:49:28 PM com.sun.grizzly.standalone.StaticResourcesAdapter <init>
INFO: New Servicing page from: C:\Users\Arun Gupta\BitNami JRubyStack projects\jrubystack\public
Mar 10, 2008 2:49:28 PM com.sun.enterprise.rails.RailsDeployer load
INFO: Loading application . at /
Starting Rails instances
Mar 10, 2008 2:49:58 PM com.sun.grizzly.jruby.RubyObjectPool$1 run
INFO: Rails instance instantiation took : 30451ms
Mar 10, 2008 2:49:58 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: Startup service : Application Loader
Mar 10, 2008 2:49:58 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: Glassfish v3 started in 32229 ms
Now you have a template app that can be used to experiment with different features of GlassFish Gem. A similar bundle can be easily hand-crafted using the steps described here.
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: bitnami jrubystack jruby ruby rubyonrails glassfish v3 gem
Related posts:- TOTD # 70: JRuby and GlassFish Integration Test# 1: JRuby 1.2.0 RC1 + Rails 2.2.x + GlassFish Gem
- Grails on GlassFish v3 – Embedded or Stand-alone
- JRuby 1.1.2 released – Getting Started with v3 Gem
- JRuby 1.1.3 released – Getting Started with GlassFish
- TOTD # 74: JRuby and GlassFish Integration Test #5: JRuby 1.2.0 RC2 + Rails 2.x.x + GlassFish + Redmine