Fwd: org.jruby.rack.RackInitializationException: Fcntl not supported on this platform


#1

FYI – forwarding to user@jruby list. Can anyone clear up this Fcntl
issue for Barbara?

/Nick

---------- Forwarded message ----------
From: Barbara R. removed_email_address@domain.invalid
Date: Thu, May 7, 2009 at 12:49 PM
Subject: org.jruby.rack.RackInitializationException: Fcntl not
supported on this platform
To: removed_email_address@domain.invalid

Hi, I hope this is the right forum to post this question.

I am writing a simple JRuby application to be deployed to Tomcat 6. I
recently upgraded warbler to get the new jruby-rack code and now see
the following exception when I try to start the tomcat server on
solaris: “org.jruby.rack.RackInitializationException: Fcntl not
supported on this platform”. Any thoughts?

Thanks for any ideas!
Barbara

Environment:

  • Rails 2.2.2
  • jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-03-16 rev 9419)
    [i386-java]
  • Apache Tomcat Version 6.0.18
  • warbler 0.9.13

in the WEB-INF lib, I have

  • jruby-complete-1.3.0RC1.jar
  • jruby-rack-0.9.4.jar

config/warble.rb:

Warbler.framework_detection = false
Warbler::Config.new do |config|
config.dirs = %w(app config lib log vendor tmp db classes)
config.gems += [“activerecord-jdbcmysql-adapter”, “jruby-openssl”,
“oauth”, “memcache-client”]
config.gem_dependencies = true
config.war_name = “ROOT”
config.webxml.rails.env = ENV[‘RAILS_ENV’] || ‘production’
config.webxml.jruby.min.runtimes = 4
config.webxml.jruby.max.runtimes = 4
end

Full Exception Stack Trace:

SEVERE: Exception caught
org.jruby.rack.RackInitializationException: Fcntl not supported on this
platform
from
file:/home/admin/apache-tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/jruby-rack-0.9.4.jar!/jruby/rack
/rails.rb:43:in require_frameworks_with_servlet_env' from /home/admin/apache-tomcat-6.0.18/webapps/ROOT/WEB-INF/config/../vendor/rails/railties/lib/initi alizer.rb:133:inprocess’
from
/home/admin/apache-tomcat-6.0.18/webapps/ROOT/WEB-INF/config/…/vendor/rails/railties/lib/initi
alizer.rb:112:in run' from /home/admin/apache-tomcat-6.0.18/webapps/ROOT/WEB-INF/config/environment.rb:45 from /home/admin/apache-tomcat-6.0.18/webapps/ROOT/WEB-INF/config/environment.rb:26:inload’
from
file:/home/admin/apache-tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/jruby-rack-0.9.4.jar!/jruby/rack
/rails.rb:26:in load_environment' from file:/home/admin/apache-tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/jruby-rack-0.9.4.jar!/jruby/rack /rails.rb:151:innew’
from :2
from
file:/home/admin/apache-tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/build
er.rb:29:in instance_eval' from file:/home/admin/apache-tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/jruby-rack-0.9.4.jar!/rack/build er.rb:29:ininitialize’
from :2

    at 

org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:153)
at
org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:50
)
at
org.jruby.rack.PoolingRackApplicationFactory.getApplication(PoolingRackApplicationFactory.java:95
)
at
org.jruby.rack.servlet.DefaultServletDispatcher.process(DefaultServletDispatcher.java:32)
at org.jruby.rack.RackFilter.doFilter(RackFilter.java:53)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#2

I am writing a simple JRuby application to be deployed to Tomcat 6. I
recently upgraded warbler to get the new jruby-rack code and now see
the following exception when I try to start the tomcat server on
solaris: “org.jruby.rack.RackInitializationException: Fcntl not
supported on this platform”. Any thoughts?

It was broken in 1.3RC1, but should be fixed in jruby trunk, and
therefore 1.3.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email