Cannot start rack application with rackup and jruby ---------------------------------------------------
Key: JRUBY-5097 URL: http://jira.codehaus.org/browse/JRUBY-5097 Project: JRuby Issue Type: Bug Affects Versions: JRuby 1.5.2 Environment: Linux 2.6.35-ARCH #1 SMP PREEMPT Fri Aug 27 17:14:28 CEST 2010 x86_64 VIA Nano processor u2...@1200mhz CentaurHauls GNU/Linux rack versions 1.2.1 and 1.1.0 show same behaviour. Reporter: Dress Guard Assignee: Thomas E Enebo Logged in as root (so port 80 can be opened). Dummy rackup file: config.ru: run Rack::Directory.new(".") >From the shell: #rackup config.ru [2010-09-20 21:31:22] INFO WEBrick 1.3.1 [2010-09-20 21:31:22] INFO ruby 1.8.7 (2010-08-20) [java] [2010-09-20 21:31:23] INFO WEBrick::HTTPServer#start: pid=2091 port=9292 Webrick is running fine. Now I want to run it on port 80: #rackup -p 80 config.ru [2010-09-20 21:32:32] INFO WEBrick 1.3.1 [2010-09-20 21:32:32] INFO ruby 1.8.7 (2010-08-20) [java] /opt/jruby/lib/ruby/1.8/webrick/utils.rb:63:in `create_listeners': no such service 80/tcp (SocketError) from /opt/jruby/lib/ruby/1.8/webrick/server.rb:75:in `listen' from /opt/jruby/lib/ruby/1.8/webrick/server.rb:63:in `initialize' from /opt/jruby/lib/ruby/1.8/webrick/httpserver.rb:24:in `initialize' from /opt/jruby/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/handler/webrick.rb:10:in `new' from /opt/jruby/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/handler/webrick.rb:10:in `run' from /opt/jruby/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/server.rb:213:in `start' from /opt/jruby/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/server.rb:100:in `start' from /opt/jruby/lib/ruby/gems/1.8/gems/rack-1.2.1/bin/rackup:4 from /opt/jruby/lib/ruby/gems/1.8/gems/rack-1.2.1/bin/rackup:19:in `load' from /opt/jruby/bin/rackup:19 On port 80 no listener running. Doublechecked with nmap to be on the safe side. For other web servers different error message. Here the preferred one - Glassfish - that should go into production: #rackup -p 80 -s Glassfish config.ru 0.0.0.0:80: can't convert nil into String Glassfish runs nicely without port option: #rackup -s Glassfish config.ru Starting GlassFish server at: 0.0.0.0:9292 in development environment... Writing log messages to: /home/schmidh/tmp/log/development.log. Press Ctrl+C to stop. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email