WebORB is a best start framework for everyone who need to integrate their Adobe Flash or Adobe Flex product to the other server platform except Adobe ColdFusion. For me, it made me a money from 2 projects already. :)

But you may found that when you choose WebORB for Rails to integrate your nice flashy web application with a popular web framework like Ruby on Rails, especially with version 2.2.x+. You may scream after you install WebORB’s plug-in via following script and then run the server again to test something:

>ruby script/plugin install http://themidnightcoders.net:8089/svn/weborb

These exception below will make you scream:

Exiting
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:102:in `const_missing': uninitialized constant Rails::Plugin::Dependencies (NameError)
from /Users/mikih/Documents/workspace/isgroup_website_backend/vendor/plugins/weborb/init.rb:30:in `evaluate_init_rb'
from /Library/Ruby/Gems/1.8/gems/rails-2.2.2/lib/rails/plugin.rb:103:in `evaluate_init_rb'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from /Library/Ruby/Gems/1.8/gems/rails-2.2.2/lib/rails/plugin.rb:99:in `evaluate_init_rb'
from /Library/Ruby/Gems/1.8/gems/rails-2.2.2/lib/rails/plugin.rb:44:in `load'
from /Library/Ruby/Gems/1.8/gems/rails-2.2.2/lib/rails/plugin/loader.rb:33:in `load_plugins'
from /Library/Ruby/Gems/1.8/gems/rails-2.2.2/lib/rails/plugin/loader.rb:32:in `each'
from /Library/Ruby/Gems/1.8/gems/rails-2.2.2/lib/rails/plugin/loader.rb:32:in `load_plugins'
... 33 levels...
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
from ./script/server:3
from -e:2:in `load'
from -e:2

That is, I screamed with you too. But after trying to find the solution. I just found a simple solution to past this annoying problem, posted by Mr. Davevil.

  1. Open file: init.rb in /vendor/plugins/weborb/init.rb
  2. Replace following statement: Dependencies.mechanism = :load
  3. With this statement: ActiveSupport::Dependencies.mechanism = :load

Then save it, and run your server again. I drank a big class of Coca-Cola for this succeed. :D

Related posts:

  1. How to solved: Adobe AIR project get error after update Flash builder to version 4.0.1
  2. แง้มกล่อง Adobe Flash Player 10.1: “Global error handling”
  3. Array to WebOrb’s Java
  4. Array to WebOrb’s Java