Announcement Announcement Module
Collapse
No announcement yet.
Spring with JRuby Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring with JRuby

    Hi,
    I want to call a ruby script (.rb , which returns list of records) from spring using jruby.I used JSR223 engine with eval() method. It is working fine if i run this as standalone java. When i try to integrate it with spring i am getting the following error.

    D:/jruby-1.1.3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require': no such file to load -- YAML (MissingSourceFile)

    I copied jruby.jar and jrs223_engine.jar in the WEB_INF/lib folder
    My Jruby version is 1.1.3.

    Please provide the document or link details which tells about calling ruby script (whcih uses active record) from java.

  • #2
    You probably solved this by now, but for anyone else; an easy way is to use the Jruby-complete.jar instead of jruby.jar. It includes other libraries like YAML and Date.

    Comment

    Working...
    X