You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Shane Witbeck (JIRA)" <ji...@apache.org> on 2008/06/05 23:09:44 UTC

[jira] Created: (BUILDR-82) JRuby 1.1.2 and Buildr 1.3.1 don't appear to work

JRuby 1.1.2 and Buildr 1.3.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 (via gem install), JDK 1.6.0_06
            Reporter: Shane Witbeck
            Priority: Blocker


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.


[jira] Updated: (BUILDR-82) JRuby 1.1.2 and Buildr 1.3.1.1 don't appear to work

Posted by "Shane Witbeck (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-82?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shane Witbeck updated BUILDR-82:
--------------------------------

    Environment: Windows XP, Buildr 1.3.1.1 (via gem install), JDK 1.6.0_06  (was: Windows XP, Buildr 1.3.1 (via gem install), JDK 1.6.0_06)
        Summary: JRuby 1.1.2 and Buildr 1.3.1.1 don't appear to work  (was: JRuby 1.1.2 and Buildr 1.3.1 don't appear to work)

> 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
>
> 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.


[jira] Commented: (BUILDR-82) JRuby 1.1.2 and Buildr 1.3.1.1 don't appear to work

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12602810#action_12602810 ] 

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

Net::SSH has an interesting way of checking when you're running on Windows:

require 'net/ssh/authentication/pageant' if File::ALT_SEPARATOR

So it's happily deciding that you're running on Windows and tries to use Pageant with the Win32 API, which doesn't work on JRuby.  Not sure how to fix this yet.

> 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
>
> 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.


[jira] Commented: (BUILDR-82) JRuby 1.1.2 and Buildr 1.3.1.1 don't appear to work

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12602890#action_12602890 ] 

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

Separately, if anyone has the time, can you please provide a patch for Net::SSH for inclusion in the next release?

 git://github.com/jamis/net-ssh.git

> 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
>
> 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.


[jira] Commented: (BUILDR-82) JRuby 1.1.2 and Buildr 1.3.1.1 don't appear to work

Posted by "Ray Krueger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630780#action_12630780 ] 

Ray Krueger commented on BUILDR-82:
-----------------------------------

Should I reopen this?
I just did a fresh install using jruby.1.1.4 and buildr 1.3.2 and am getting the same error.

Assaf, is number 2 above a workaround I can apply locally to get this to work? If so can you explain it in a bit more detail please?

> 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.


[jira] Resolved: (BUILDR-82) JRuby 1.1.2 and Buildr 1.3.1.1 don't appear to work

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-82?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Assaf Arkin resolved BUILDR-82.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3.2

> 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.


[jira] Commented: (BUILDR-82) JRuby 1.1.2 and Buildr 1.3.1.1 don't appear to work

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12602876#action_12602876 ] 

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

Apparently JRuby doesn't support Net::SSH (issues with its OpenSSL implementation) and so Net::SSH doesn't care to support JRuby.

So two possible solutions:
a) not load net/ssh at all,
b) add net/ssh/authentication/pageant to $LOAD_PATH to prevent Net::SSH from loading it.

I did the second one, let's see how it works.

> 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
>
> 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.


[jira] Commented: (BUILDR-82) JRuby 1.1.2 and Buildr 1.3.1.1 don't appear to work

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
    [ 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.