Resolve Weborb for Rails’ dependencies error in one statement!
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.
- Open file:
init.rb in /vendor/plugins/weborb/init.rb - Replace following statement: Dependencies.mechanism = :load
- 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.
Related posts:



