Posts Tagged ‘JRuby’

Howto fix Rails apps not deploying on Glassfish v3 from Netbeans

Thursday, February 11th, 2010

If you are developing Ruby on Rails apps using Netbeans and deploying to Glassfish, and suddenly your apps (& even the demo Depot app) refuse to deploy on Glassfish V3 it may be do to an incompatibility between Rails version 2.3.5 and version 1.1.0 of Rake.

The solution is to maintain using Rails version 2.3.5 but to role back to version 1.0.1 of Rake. In Netbeans you can do this by going to Tools -> Ruby Gems -> Installed and then selecting Rake and clicking uninstall. Do not select the default settings, but rather select 1.1.0 from the drop down menu to only remove that version. If 1.0.1 is not listed in this drop down then go ahead and select to uninstall all versions, and then install version 1.0.1 of Rake or reinstall Rails 2.3.5 as it will install Rake 1.0.1 as a dependency.

I’m hoping this will save others the four hours of my life I wasted trying to figure out what went wrong with my Ruby on Rails development environment.

—————–
now playing: The Doppler Effect – Beauty Hides in the Deep (Envotion Remix)

Jruby on OpenSolaris

Monday, November 30th, 2009

I’m moving from slackware to OpenSolaris for a project I’m currently working on and did the following to get JRuby working on OpenSolaris:

  1. unpack the JRuby distribution file from jruby.org into the /usr directory. I chose to put the files in /usr/jruby so that future versions can also be unpacked here without the need to change the version number. AKA /usr/jruby instead of /usr/jruby-1.4.0
  2. edit .profile in your home directory. I chose to use the method: nano ~/.profile
  3. at the end of the line that starts “export PATH” add :/usr/jruby/bin (note: the “:” is important)
  4. save the file
  5. log out of your account and log back in.
  6. test the config by running jruby -v (should print out the version number)

—————-
now playing: Lady Sovereign – The Battle