我有ubuntu 8.10,运行glassfish v3(不是前奏)。首先在glassfish v3 SERVER(不是宝石)上部署任何jruby。
我已经使用'choose folder'方法部署了应用程序,而不是使用asadmin deploy方法,尽管我也尝试过。
我收到以下错误消息:
#|2010-10-18T16:48:01.643+1100|SEVERE|glassfish3.0.1|org.glassfish.scripting.jruby.JRubyContainer|_ThreadID=35;_ThreadName=Thread-1;|no such file to load -- dispatcher
from /home/architect/development/jruby/jruby-1.5.3/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /home/architect/development/jruby/jruby-1.5.3/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/architect/development/jruby/jruby-1.5.3/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /home/architect/development/jruby/jruby-1.5.3/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/architect/development/jruby/jruby-1.5.3/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from file:/opt/glassfishv3/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:99:in `load_application'
from file:/opt/glassfishv3/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:75:in `initialize'
from file:/opt/glassfishv3/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25:in `new'
from file:/opt/glassfishv3/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25:in `new'
from <script>:1
/home/architect/development/jruby/jruby-1.5.3/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require': no such file to load -- dispatcher (LoadError)
from /home/architect/development/jruby/jruby-1.5.3/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /home/architect/development/jruby/jruby-1.5.3/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/architect/development/jruby/jruby-1.5.3/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /home/architect/development/jruby/jruby-1.5.3/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/architect/development/jruby/jruby-1.5.3/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from file:/opt/glassfishv3/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:99:in `load_application'
from file:/opt/glassfishv3/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:75:in `initialize'
from file:/opt/glassfishv3/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25:in `new'
from file:/opt/glassfishv3/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25:in `new'
from <script>:1
...internal jruby stack elided...
from Kernel.require(/home/architect/development/jruby/jruby-1.5.3/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239)
from ActiveSupport::Dependencies::Loadable.require(/home/architect/development/jruby/jruby-1.5.3/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225)
from ActiveSupport::Dependencies::Loadable.load_dependency(/home/architect/development/jruby/jruby-1.5.3/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591)
from ActiveSupport::Dependencies.new_constants_in(/home/architect/development/jruby/jruby-1.5.3/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225)
from ActiveSupport::Dependencies::Loadable.load_dependency(/home/architect/development/jruby/jruby-1.5.3/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239)
from ActiveSupport::Dependencies::Loadable.require(file:/opt/glassfishv3/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:99)
from Rack::Adapter::Rails.load_application(file:/opt/glassfishv3/glassfish/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:75)
from Rack::Adapter::Rails.initialize(file:/opt/glassfishv3/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25)
from (unknown).new(file:/opt/glassfishv3/glassfish/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:25)
from #<Class:01x1719508>.new(<script>:1)
from (unknown).(unknown)(:1)
这是非常离奇的。我找不到太多,但我从经验中知道,调度程序已被删除,并且人们不能再使用带有mongrel的rails应用程序上的ruby。在这种情况下,随着jruby到位和glassfish v3,我不知道发生了什么。为什么甚至要找调度员?
我配置上的任何提示都会很棒。我可能错过了什么?不应该将glassfish视为机架应用程序,并且不会出现此问题。
另请注意,如果我在WEBrick中使用jruby运行应用程序,那一切都很好。
谢谢!
答案 0 :(得分:1)
看起来GF v3 JRuby脚本容器期望加载“调度程序”,因此可能没有准备好Rails 3。鉴于我从Oracle那里听到有关V3内部脚本支持的内容,我不确定你会很快看到这个问题。
在V3内部部署的更好选择是使用Warbler创建war文件并进行部署。