Hi All,
Getting a weird issue of Load Error as below,
[echo] Running Cucumber Ruby Features
[java] LoadError: no such file to load -- json
[java] require at org/jruby/RubyKernel.java:1038
[java] require at file:/opt/glassfishv3/.m2/repository/org/jruby/jruby-complete/1.6.4/jruby-complete-1.6.4.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29
[java] (root) at step_definitions/create_contact_csl_steps.rb:3
[java] Exception in thread "main" org.jruby.embed.EvalFailedException: (LoadError) no such file to load -- json
[java] at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:127)
[java] at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1231)
[java] at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1247)
[java] at cucumber.runtime.jruby.JRubyBackend.runScriptlet(JRubyBackend.java:86)
[java] at cucumber.runtime.jruby.JRubyBackend.loadGlue(JRubyBackend.java:65)
[java] at cucumber.runtime.Runtime.<init>(Runtime.java:64)
[java] at cucumber.runtime.Runtime.<init>(Runtime.java:51)
[java] at cucumber.cli.Main.run(Main.java:18)
[java] at cucumber.cli.Main.main(Main.java:12)
[java] Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- json
feature file has the following in the first three lines,
require 'java'
require 'rubygems'
require 'json'
What should be the Best solution to resolve the above thing,
Pleas let me know your suggestions.
Thanks,
Ruban