LoadError: OpenSSL::SSL requires the jruby-openssl gem
I'm a novice with JRuby / Ruby. I'm encountering a problem using jruby.
Here is some environment info,
[bin]# ; ./jruby ./gem install jruby-openssl
Successfully installed jruby-openssl-0.7.7
1 gem installed
[bin]# gem server
Summary
There are 29 gems installed:
annoy, bacon, bouncy-castle-java, builder, coderay, drydock, highline, jruby-openssl, method_source, method_source, net-scp, net-ssh, nokogiri, nokogiri, open4, pry, pry, pry, rake,
rubygems, rubygems-test, rubygems-update, rye, rye, slop, slop, spoon, storable, sysinfo.
Start of script contains:
require 'rubygems'
[bin]# ./jruby ./gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.24
- RUBY VERSION: 1.8.7 (2012-05-01 patchlevel 357) [java]
- INSTALLATION DIRECTORY: /tools/ruby/lib/ruby/gems/1.8/
- RUBY EXECUTABLE: /tools/jruby-1.6.7.2/bin/jruby
- EXECUTABLE DIRECTORY: /tools/ruby/lib/ruby/gems/1.8/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-java-1.6
- GEM PATHS:
- /tools/ruby/lib/ruby/gems/1.8/
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- "install" => "--no-rdoc --no-ri --env-shebang"
- "update" => "--no-rdoc --no-ri --env-shebang"
- "gemhome" => "/tools/ruby/lib/ruby/gems/1.8/"
- "gempath" => ["/tools/ruby/lib/ruby/gems/1.8/"]
- REMOTE SOURCES:
- http://rubygems.org/
-bash-3.00$ jruby ./run.rb test_e2e
Pry could not be loaded! Continuing without it. Error: LoadError. no such file to load -- pry
JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
LoadError: OpenSSL::SSL requires the jruby-openssl gem
(root) at /tools/jruby-1.6.7.2/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/ssl.rb:8
use_ssl= at /tools/jruby-1.6.7.2/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/ssl.rb:124
initialize at /tools/jruby-1.6.7.2/lib/ruby/1.8/xmlrpc/client.rb:329
new2 at /tools/jruby-1.6.7.2/lib/ruby/1.8/xmlrpc/client.rb:357
TL at /u/jbernas/workspace/svn_eng/test-framework/lib/testrunner/testlink.rb:9
(root) at /u/jbernas/workspace/svn_eng/test-framework/lib/testrunner/testlink.rb:8
require at org/jruby/RubyKernel.java:1033
require at /u/jbernas/workspace/svn_eng/test-framework/lib/testrunner/testlink.rb:36
(root) at ./run.rb:68
Start of script added the following:
require 'jruby/openssl/gem_only'
-bash-3.00$ /tools/jruby-1.6.7.2/bin/jruby ./run.rb test_e2e
Pry could not be loaded! Continuing without it. Error: LoadError. no such file to load -- pry
NameError: uninitialized constant Net::HTTP::OpenSSL
const_missing at org/jruby/RubyModule.java:2642
use_ssl= at /tools/jruby-1.6.7.2/lib/ruby/1.8/net/https.rb:124
initialize at /tools/jruby-1.6.7.2/lib/ruby/1.8/xmlrpc/client.rb:329
new2 at /tools/jruby-1.6.7.2/lib/ruby/1.8/xmlrpc/client.rb:357
TL at /u/jbernas/workspace/svn_eng/test-framework/lib/testrunner/testlink.rb:9
(root) at /u/jbernas/workspace/svn_eng/test-framework/lib/testrunner/testlink.rb:8
require at org/jruby/RubyKernel.java:1033
require at /u/jbernas/workspace/svn_eng/test-framework/lib/testrunner/testlink.rb:36
(root) at ./run.rb:69
How do I resolve the errors?
Please let me know.
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Evan Phoenix on 30 Sep, 2012 04:29 PM
This is a jruby specific issue, you'll need to bring it up with them.
Evan Phoenix closed this discussion on 30 Sep, 2012 04:29 PM.