Loading jar files embedded in other jar files seems to fail to call basicLoad
-----------------------------------------------------------------------------

                 Key: JRUBY-3676
                 URL: http://jira.codehaus.org/browse/JRUBY-3676
             Project: JRuby
          Issue Type: Bug
         Environment: JRuby 1.3RC2-ish
            Reporter: Rob Holland
            Assignee: Thomas E Enebo


I'm having problems trying to use gems I added to jar-complete via build.xml 
edits. The appearance is that for some reason jar files are not properly 
handled during require if they are contained within another jar file.

I'm still trying to figure this stuff out, I'm just recording what I have so 
far in case it's obvious to anyone else what's wrong (either with my 
assumptions or with jruby/jruby-openssl).

This is my test case file:

$ cat test.rb 
require 'rubygems'
gem 'jruby-openssl'

require 'jopenssl'

puts defined?(OpenSSL)

EOF

Run as 'normal' via jruby with the jruby-openssl gem installed via -S gem 
install jruby-openssl

$ jruby ./test.rb 
constant

Run after adding the jruby-openssl gem into jar-complete via build.xml edits.

$ java -jar /Users/rob/dev/jruby/lib/jruby-complete.jar ./test.rb 
nil

Notice that the require doesn't fail, I checked via an irb session and require 
'jopenssl' returns true indicating success, but it is not being loaded 
properly. It seems JopensslService#basicLoad is not called so the OpenSSL 
module is not defined, OpenSSL::OPENSSL_VERSION and other constants are not 
defined, which breaks the rest of the jruby-openssl code.

This is all very new to me, so if anyone has any suggestions as to where to 
look to try and figure this out, please let me know, I'm happy to investigate 
it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

    http://xircles.codehaus.org/manage_email


Reply via email to