Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no such file to load -- rack/handler #14

Closed
jkutner opened this issue Feb 16, 2012 · 5 comments
Closed

no such file to load -- rack/handler #14

jkutner opened this issue Feb 16, 2012 · 5 comments

Comments

@jkutner
Copy link
Member

jkutner commented Feb 16, 2012

I'm encountering this error on a server that used to work:

JRubyDaemon: Script raised an error: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- rack/handler
org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- rack/handler
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038)
at Kernel.require(/opt/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36)
at #<Class:0x38d0357a>.(root)(/opt/jruby-1.6.5/lib/ruby/gems/1.8/gems/trinidad-1.3.3/lib/rack/handler/trinidad.rb:1)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038)
at Kernel.require(/opt/jruby-1.6.5/lib/ruby/gems/1.8/gems/trinidad-1.3.3/lib/rack/handler/trinidad.rb:36)
at #<Class:0x38d0357a>.(root)(/opt/jruby-1.6.5/lib/ruby/gems/1.8/gems/trinidad-1.3.3/lib/trinidad.rb:21)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038)
at Kernel.require(/opt/jruby-1.6.5/lib/ruby/gems/1.8/gems/trinidad-1.3.3/lib/trinidad.rb:59)
at opt.jruby_minus_1_dot_6_dot_5.lib.ruby.gems.$1_dot_8.gems.trinidad_init_services_minus_1_dot_1_dot_2.lib.trinidad_init_services.(root)(/opt/jruby-1.6.5/lib/ruby/gems/1.8/gems/trinidad_init_services-1.1.2/lib/trinidad_init_services.rb:2)
 Cannot load daemon

Installing rack manually fixed this. The rack gem is a development dependency of Trinidad proper, but I think it needs to be a runtime dependency of either trinidad_init_services or trinidad.

@calavera
Copy link
Contributor

Actually it's not a dependency, jruby-rack loads rack. The problem is that Rack now uses autoload and when trinidad tries to load rack/handler nothing has been already loaded by rack yet. I'm not completely sure if requiring rack we fix the problem

@jkutner
Copy link
Member Author

jkutner commented Feb 16, 2012

i don't mean require it. I mean add this to the trinidad_init_services gemspec:

s.add_dependency('rack')

it wasn't even installed for me. that seems weird though... wouldn't it have been installed if there is a dependency on trinidad -> jruby-rack -> rack

@calavera
Copy link
Contributor

it doesn't need to be installed, jruby-rack bundles it.

@jkutner
Copy link
Member Author

jkutner commented Feb 16, 2012

i see. so is it bad for me to gem install rack as a workaround?

@calavera
Copy link
Contributor

ohh I think this issue is duplicated, check this out:

trinidad/trinidad#48

I'm closing it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants