It's a problem somewhere in lib/java/jruby.rb, the load method fails
when trying to mess with the classloader.

Assaf

On Sun, Aug 31, 2008 at 10:32 AM, Victor Hugo Borja <[EMAIL PROTECTED]> wrote:
> It seems trying to run an spec using jruby 1.1.4(java 6) fails when loading
> sandbox.rb, also tried 'load' instead of require with same results...
>
> [EMAIL PROTECTED]:~/hk/buildr$ /opt/jruby-1.1.4/bin/jruby -S
> /opt/jruby-1.1.4/bin/spec spec/application_spec.rb
> /opt/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34:in
> `require': IO error -- /home/vic/hk/buildr/spec/sandbox (LoadError)
>        from /home/vic/hk/buildr/./spec/application_spec.rb:17
>        from /home/vic/hk/buildr/./spec/application_spec.rb:14:in `load'
>        from
> /opt/jruby-1.1.4/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/runner/example_group_runner.rb:14:in
> `load_files'
>        from
> /opt/jruby-1.1.4/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/runner/example_group_runner.rb:13:in
> `each'
>        from
> /opt/jruby-1.1.4/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/runner/example_group_runner.rb:13:in
> `load_files'
>        from
> /opt/jruby-1.1.4/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/runner/options.rb:98:in
> `run_examples'
>        from
> /opt/jruby-1.1.4/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/runner/command_line.rb:19:in
> `run'
>        from /opt/jruby-1.1.4/lib/ruby/gems/1.8/gems/rspec-1.1.4/bin/spec:4
>        from
> /opt/jruby-1.1.4/lib/ruby/gems/1.8/gems/rspec-1.1.4/bin/spec:19:in `load'
>        from /opt/jruby-1.1.4/bin/spec:19
>
> JRuby 1.1.3 doesn't have this issue.
> Anyone else having this problem, or any idea on how to get it to work?
>
> --
> vic
>
> Quaerendo invenietis.
>

Reply via email to