jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JRuby
  • JRUBY-3255

jruby -S script/server fails in Rails application

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.1.6
  • Fix Version/s: JRuby 1.2
  • Component/s: Miscellaneous
  • Labels:
    None
  • Environment:
    Mac OS X 10.5.6
    java version "1.5.0_16"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
    Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)

Description

When running "jruby -S script/server" the following error message appears: script/console:1: undefined method `script' for JRuby::Commands:Class (NoMethodError)

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Logan Barnett added a comment - 19/Dec/08 11:44 AM

I think -S is just for running scripts in the JRuby bin directory.
Does it work if you just do jruby script/server and jruby script/console?

Show
Logan Barnett added a comment - 19/Dec/08 11:44 AM I think -S is just for running scripts in the JRuby bin directory. Does it work if you just do jruby script/server and jruby script/console?
Hide
Permalink
Wes Gamble added a comment - 19/Dec/08 11:55 AM

Yes it does work if I lose the -S. But jruby -S "used" to work for these situations even though it wasn't exactly correct...

Show
Wes Gamble added a comment - 19/Dec/08 11:55 AM Yes it does work if I lose the -S. But jruby -S "used" to work for these situations even though it wasn't exactly correct...
Hide
Permalink
Thomas E Enebo added a comment - 19/Dec/08 12:00 PM

Much to my surprise -S on MRI it also uses current working directory as a search path element. So ruby -S script/server in rails app dir will actually execute. Most peculiar.

Show
Thomas E Enebo added a comment - 19/Dec/08 12:00 PM Much to my surprise -S on MRI it also uses current working directory as a search path element. So ruby -S script/server in rails app dir will actually execute. Most peculiar.
Hide
Permalink
Charles Oliver Nutter added a comment - 17/Feb/09 10:11 PM

Fixed in r9232.

Show
Charles Oliver Nutter added a comment - 17/Feb/09 10:11 PM Fixed in r9232.

People

  • Assignee:
    Charles Oliver Nutter
    Reporter:
    Wes Gamble
Vote (0)
Watch (0)

Dates

  • Created:
    19/Dec/08 11:32 AM
    Updated:
    21/Mar/09 1:14 PM
    Resolved:
    17/Feb/09 10:11 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.