buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Assaf Arkin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (BUILDR-82) JRuby 1.1.2 and Buildr 1.3.1.1 don't appear to work
Date Mon, 15 Sep 2008 19:29:44 GMT

    [ https://issues.apache.org/jira/browse/BUILDR-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631113#action_12631113
] 

Assaf Arkin commented on BUILDR-82:
-----------------------------------

BUILDR-137 is currently open and deals with this, so leave this close and let's get it solved
under BUILDR-137.

The problem comes from Net::SSH which on Windows loads net/ssh/authentication/pageant, which
in turn attempts to load the Pageant DLL.  Under JRuby you can't load DLLs, the JVM doesn't
support that, so it ends up failing.  So the second suggestion is to trick Net::SSH into thinking
it already loaded net/ssh/authentication/pageant by marking it as loaded.  When Net::SSH attempts
to load it, nothing happens.

Line 21 in lib/buildr/core/transports.rb:
$LOADED_FEATURES.unshift 'net/ssh/authentication/pageant' if RUBY_PLATFORM =~ /java/



> JRuby 1.1.2 and Buildr 1.3.1.1 don't appear to work
> ---------------------------------------------------
>
>                 Key: BUILDR-82
>                 URL: https://issues.apache.org/jira/browse/BUILDR-82
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby
>    Affects Versions: 1.3.1
>         Environment: Windows XP, Buildr 1.3.1.1 (via gem install), JDK 1.6.0_06
>            Reporter: Shane Witbeck
>            Priority: Blocker
>             Fix For: 1.3.2
>
>
> This occurs after a fresh install...
> C:\Documents and Settings\Shane>jruby -S buildr
> C:/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
> : no such file to load -- dl/import (LoadError)
>         from C:/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27
> :in `require'
>         from C:/jruby-1.1.2/lib/ruby/gems/1.8/gems/net-ssh-2.0.1/lib/net/ssh/aut
> hentication/pageant.rb:1:in `C:/jruby-1.1.2/lib/ruby/gems/1.8/gems/net-ssh-2.0.1
> /lib/net/ssh/authentication/pageant.rb'
>         from C:/jruby-1.1.2/lib/ruby/gems/1.8/gems/net-ssh-2.0.1/lib/net/ssh/aut
> hentication/pageant.rb:27:in `require'
>         from C:/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27
> :in `require'
>         from C:/jruby-1.1.2/lib/ruby/gems/1.8/gems/net-ssh-2.0.1/lib/net/ssh/aut
> hentication/agent.rb:6:in `C:/jruby-1.1.2/lib/ruby/gems/1.8/gems/net-ssh-2.0.1/l
> ib/net/ssh/authentication/agent.rb'
>         from C:/jruby-1.1.2/lib/ruby/gems/1.8/gems/net-ssh-2.0.1/lib/net/ssh/aut
> hentication/agent.rb:27:in `require'
>         from C:/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27
> :in `require'
>         from C:/jruby-1.1.2/lib/ruby/gems/1.8/gems/net-ssh-2.0.1/lib/net/ssh/aut
> hentication/key_manager.rb:4:in `C:/jruby-1.1.2/lib/ruby/gems/1.8/gems/net-ssh-2
> .0.1/lib/net/ssh/authentication/key_manager.rb'
>          ... 11 levels...
>         from C:/jruby-1.1.2/lib/ruby/gems/1.8/gems/buildr-1.3.1.1-java/bin/build
> r:19:in `C:/jruby-1.1.2/lib/ruby/gems/1.8/gems/buildr-1.3.1.1-java/bin/buildr'
>         from C:/jruby-1.1.2/lib/ruby/gems/1.8/gems/buildr-1.3.1.1-java/bin/build
> r:19:in `load'
>         from C:/jruby-1.1.2/bin/buildr:19

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message