[rjb-users] Can't find jarfile classes with Rails

rjb-users at rubyforge.org rjb-users at rubyforge.org
Mon Nov 20 21:57:50 EST 2006


--- Changshin Lee <iasandcb at gmail.com> wrote:

> Hi all,
> 
> First of all, I'd appreciate work from arton and
> Richard. Thanks!

Welcome, Changshin! Glad to see we have another user.

> LD_PRELOAD works with my environment, particularly
> ruby 1.8.4 and rjb
> 1.0.2 on Ubuntu 6.0.6 (amd64). Unfortunately, I
> tested rjb 1.0.3 and
> found that it doesn't remove the necessity of
> setting LD_PRELOAD.

I just tested 1.0.3 it as well, and I'm still getting:

$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require_gem 'rails'
=> true
irb(main):003:0> require_gem 'rjb'
=> true
irb(main):004:0> require 'rjb'
=> true
irb(main):005:0> Rjb::import 'junit.framework.Assert'
InternalError: unknown exception
        from (irb):5:in `import'
        from (irb):5

But when I use LD_PRELOAD, 1.0.3 still works fine:

$
LD_PRELOAD=/usr/java/jdk1.5.0_09/jre/lib/amd64/libzip.so
irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require_gem 'rails'
re=> true
irb(main):003:0> require_gem 'rjb'
=> true
irb(main):004:0> require 'rjb'
=> true
irb(main):005:0> Rjb::import 'junit.framework.Assert'
=> #<Rjb::Junit_framework_Assert:0x2af52e8a4460>

> Cheers,
> 
> Ias
> 
> On 11/21/06, arton <arton at e07.itscom.net> wrote:
> > Hi All
> >
> > I don't know exactly what module was confliting
> with libzip.so.
> > But at least rjb's external symbols were very
> vague. So I've changed the
> > symbols and just released rjb-1.0.3.
> > Wouldn't you please test with this version without
> setting LD_PRELOAD.
> > If it could work, there's no need to set
> LD_PRELOAD anymore. But if it
> > couldn't work unfortunately, another shared object
> is the cause.
> > Sorry for inconvenience.
> >
> > Best regards
> >
> > --
> > arton
> >
> >
> 


____________________________
Richard Apodaca
Blog: http://depth-first.com


 
____________________________________________________________________________________
Sponsored Link

Mortgage rates near 39yr lows. 
$510k for $1,698/mo. Calculate new payment! 
www.LowerMyBills.com/lre


More information about the rjb-users mailing list