У меня Ubuntu 8.10, работает Glassfish v3 (не прелюдия).первое развертывание любого jruby на сервере Glassfish v3 (не в геме).
Я развернул приложение, используя метод 'выберите папку', а не метод развертывания asadmin, хотя я также пробовал это.
я получаю следующее сообщение об ошибке:
#|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)
это очень странно.я не могу найти много на этом, но я знаю из опыта, что диспетчер был удален, и больше нельзя использовать ruby в приложениях rails с mongrel.в этом случае, с jruby на месте и glassfish v3, я понятия не имею, что происходит.почему он даже ищет диспетчера?
любые советы по моему конфигу были бы хороши.что мне, вероятно, не хватает?Не следует ли Glassfish рассматривать его как приложение в стойке, и эта проблема НЕ возникает.
Также обратите внимание: если я запускаю приложение с jruby в WEBrick, это все хорошо.
спасибо!