ERROR: library `fcntl' could not be loaded

Hello all!
My ENV:
OS: Gentoo Linux AMD64;
JVM: HotSpot 1.7 or 1.6;
JRuby: 1.6.4 (1.9 mode);
APP server: jetty 8.
Rails: 3.1.1.

http://jira.codehaus.org/browse/JRUBY-5753

I try run simple JRuby on rails app at jetty 8 and jdk 7 (x64) and get
next
error:

    at

org.jruby.rack.PoolingRackApplicationFactory$1.run(PoolingRackApplicationFactory.java:162)
at java.lang.Thread.run(Thread.java:722)
Caused by:
org.jruby.exceptions.RaiseException: (LoadError) library `fcntl’ could
not
be loaded: java.lang.NullPointerException
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1047)
at
rubyjit.require_0BE0782F8FA807775BF09FECC24306444D2C23CA.require(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240)
at
rubyjit.load_dependency_193AFF0B7EF3104B7F00C3B88A8BE46BC1756823.load_dependency(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:225)
at
rubyjit.require_0BE0782F8FA807775BF09FECC24306444D2C23CA.require(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240)
at
#Class:0x1783e68dc.(root)(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/jruby-openssl-0.7.4/lib/openssl/ssl.rb:19)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1047)
at
rubyjit.require_0BE0782F8FA807775BF09FECC24306444D2C23CA.require(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240)
at
rubyjit.load_dependency_193AFF0B7EF3104B7F00C3B88A8BE46BC1756823.load_dependency(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:225)
at
rubyjit.require_0BE0782F8FA807775BF09FECC24306444D2C23CA.require(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240)
at
#Class:0x1783e68dc.(root)(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/jruby-openssl-0.7.4/lib/openssl/ssl.rb:74)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1047)
at
rubyjit.require_0BE0782F8FA807775BF09FECC24306444D2C23CA.require(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240)
at
rubyjit.load_dependency_193AFF0B7EF3104B7F00C3B88A8BE46BC1756823.load_dependency(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:225)
at
rubyjit.require_0BE0782F8FA807775BF09FECC24306444D2C23CA.require(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240)
at
#Class:0x1783e68dc.(root)(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/jruby-openssl-0.7.4/lib/openssl.rb:1)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1047)
at
rubyjit.require_0BE0782F8FA807775BF09FECC24306444D2C23CA.require(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240)
at
rubyjit.load_dependency_193AFF0B7EF3104B7F00C3B88A8BE46BC1756823.load_dependency(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:225)
at
rubyjit.require_0BE0782F8FA807775BF09FECC24306444D2C23CA.require(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240)
at
#Class:0x1783e68dc.(root)(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/rack-1.3.4/lib/rack/session/cookie.rb:4)
at
org.jruby.RubyModule.const_get(org/jruby/RubyModule.java:2505)
at
Rails::Application::Configuration.session_store(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/actionpack-3.1.1/lib/action_dispatch/middleware/session/cookie_store.rb:131)
at
#Class:0x13bda503d.default_middleware_stack(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/railties-3.1.1/lib/rails/application.rb:172)
at org.jruby.RubyKernel.tap(org/jruby/RubyKernel.java:1803)
at
Rails::Application.default_middleware_stack(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/railties-3.1.1/lib/rails/application.rb:146)
at
Rails::Engine.app(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/railties-3.1.1/lib/rails/engine.rb:446)
at
#Class:0x13bda503d.Finisher(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/railties-3.1.1/lib/rails/application/finisher.rb:37)
at
org.jruby.RubyBasicObject.instance_exec(org/jruby/RubyBasicObject.java:1744)
at
rubyjit.run_D9DD28421A9F9400C1B2234D0A40AD41C5B8192F.run(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/railties-3.1.1/lib/rails/initializable.rb:30)
at
#Class:0x13bda503d.run_initializers(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/railties-3.1.1/lib/rails/initializable.rb:55)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1603)
at
Rails::Initializable.run_initializers(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/railties-3.1.1/lib/rails/initializable.rb:54)
at
Rails::Application.initialize!(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/railties-3.1.1/lib/rails/application.rb:96)
at
org.jruby.RubyBasicObject.send(org/jruby/RubyBasicObject.java:1685)
at org.jruby.RubyKernel.send(org/jruby/RubyKernel.java:2113)
at
Rails::Railtie::Configurable::ClassMethods.method_missing(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/railties-3.1.1/lib/rails/railtie/configurable.rb:30)
at
#Class:0x1783e68dc.(root)(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/config/environment.rb:5)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1047)
at
rubyjit.require_0BE0782F8FA807775BF09FECC24306444D2C23CA.require(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240)
at
rubyjit.load_dependency_193AFF0B7EF3104B7F00C3B88A8BE46BC1756823.load_dependency(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223)
at
rubyjit.new_constants_in_ECEBB2E29D7F69262CAA042177E366757F9384BB.new_constants_in(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:640)
at
rubyjit.new_constants_in_ECEBB2E29D7F69262CAA042177E366757F9384BB.new_constants_in(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:639)
at
rubyjit.load_dependency_193AFF0B7EF3104B7F00C3B88A8BE46BC1756823.load_dependency(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223)
at
rubyjit.require_0BE0782F8FA807775BF09FECC24306444D2C23CA.require(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/gems/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240)
at
JRuby::Rack::RailsBooter::Rails3Environment.load_environment(/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/config/environment.rb:169)
at
JRuby::Rack::RailsBooter::Rails3Environment.to_app(file:/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/lib/jruby-rack-1.0.10.jar!/jruby/rack/rails.rb:173)
at
#Class:0x1273b003e.new(file:/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/lib/jruby-rack-1.0.10.jar!/jruby/rack/rails.rb:193)
at #Class:0x116dfdeda.(root)(<web.xml>:1)
at
org.jruby.RubyBasicObject.instance_eval(org/jruby/RubyBasicObject.java:1717)
at
Rack::Builder.initialize(file:/tmp/jetty-0.0.0.0-8888-sample_app2.war-_sample_app2-any-/webapp/WEB-INF/lib/jruby-rack-1.0.10.jar!/vendor/rack-1.3.2/rack/builder.rb:51)
at #Class:0x1783e68dc.(root)(<web.xml>:1)

Can I resolve this problem ?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs