PadmaPriya
Aug 12th, 2008, 03:59 PM
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.
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.