You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Karol Bucek edited this page Jan 22, 2016
·
4 revisions
Sinatra (and others)
Best Practices
Avoid Rack Handlers
org.jruby.rack.RackInitializationException: Server handler (trinidad,puma,reel,HTTP,webrick) not found.
from /opt/server/tomcat-8.0.30/webapps/sinatra/WEB-INF/gems/gems/sinatra-1.4.6/lib/sinatra/base.rb:1781:in `detect_rack_handler'
from /opt/server/tomcat-8.0.30/webapps/sinatra/WEB-INF/gems/gems/sinatra-1.4.6/lib/sinatra/base.rb:1437:in `run!'
...
Caused by: org.jruby.exceptions.RaiseException: (RuntimeError) Server handler (trinidad,puma,reel,HTTP,webrick) not found.
There's no need to use handlers - JRuby-Rack does its own "rackup" boot process.
org.jruby.rack.RackInitializationException: no such file to load -- ...
Do not assume a lib (or any other folder) being on the $LOAD_PATH - make sure its properly added or use require_relative or absolute require File.expand_path ....