« Return to Thread: jruby-complete.jar

Re: jruby-complete.jar

by Jan Hegewald-2 :: Rate this Message:

Reply to Author | View in Thread

Hey there,
are there any news on this issue?

Am 01.07.2009 um 18:35 schrieb Charles Oliver Nutter:

> Actually there is a known issue with loading the "thread" library
> inside a jar file. I believe what happens is that it doesn't load the
> .rb version of the thread library and only loads the native one. I
> don't recall if there was a good workaround, but a hacky one would be
> to copy the contents of lib/ruby/1.8/thread.rb to another file and
> require that name somewhere in your app. We need to fix the original
> issue, though.
>
> - Charlie
>
> On Wed, Jun 24, 2009 at 5:26 AM, Jan Hegewald<hegewald@...-
> bs.de> wrote:
>> Hi all,
>> I am new to jruby and immediately stumbled over some problems when  
>> using
>> jruby-complete.jar. In my programme I make use of DRb, which does  
>> not seem
>> to work with jruby-complete. When I call a method on a remote  
>> object, there
>> is the following error:
>> file:jruby-complete.jar!/drb/drb.rb:632:in `recv_reply': undefined  
>> method
>> `exclusive' for Thread:Class (NoMethodError)
>>        from file:jruby-complete.jar!/drb/drb.rb:922:in `recv_reply'
>>        from file:jruby-complete.jar!/drb/drb.rb:1200:in  
>> `send_message'
>>        from file:jruby-complete.jar!/drb/drb.rb:1091:in  
>> `method_missing'
>>        from file:jruby-complete.jar!/drb/drb.rb:1175:in `open'
>>        from file:jruby-complete.jar!/drb/drb.rb:1090:in  
>> `method_missing'
>>        from file:jruby-complete.jar!/drb/drb.rb:1108:in `with_friend'
>>        from file:jruby-complete.jar!/drb/drb.rb:1089:in  
>> `method_missing'
>>        from test.rb:36:in `<<'
>>
>> Is there a documentation about what is different when using jruby-
>> complete
>> compared to the full installed version? Eventually I wish to put  
>> all my
>> ruby/java stuff in a single jar, so I thought jruby-complete would  
>> be a good
>> starting point.
>>
>> Many TIA,
>> Jan





Cheers,
-- Jan




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: jruby-complete.jar