Howto fix Rails apps not deploying on Glassfish v3 from Netbeans
Thursday, February 11th, 2010If 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)
