Forum: JRuby openssl error with latest JDK and JRuby

5cdad1e44fedd93627ee671d1a3c6e33?d=identicon&s=25 bootstrap online (Guest)
on 2013-07-19 04:17
(Received via mailing list)
LoadError: load error: openssl -- java.lang.NoClassDefFoundError:
Could not initialize class org.jruby.ext.openssl.ASN1
    org/jruby/RubyKernel.java:1054:in `require'
    /usr/local/Cellar/jruby/1.7.4/libexec/lib/ruby/shared/rubygems/custom_require.rb:36:in
`require'
    /usr/local/Cellar/jruby/1.7.4/libexec/lib/ruby/1.9/net/https.rb:22:in
`(root)'
    org/jruby/RubyKernel.java:1054:in `require'

$ java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

$ jruby -v
jruby 1.7.4 (1.9.3p392) 2013-05-16 2390d3b on Java HotSpot(TM) 64-Bit
Server VM 1.7.0_25-b15 [darwin-x86_64]

Is this a known issue? I can share a repro script that works 100% on
OS X if that'd help.
86f94d4973859c66e26f410c7ccaa7f1?d=identicon&s=25 Patrick Ritchie (Guest)
on 2013-07-19 17:14
(Received via mailing list)
I think I've seen this before, you may need to remove the old jruby ssl
gems from your Gemfile when upgrading to 1.7.4

Either that or it was a conflict with a jar I had loaded.
F1d37642fdaa1662ff46e4c65731e9ab?d=identicon&s=25 Charles Nutter (headius)
on 2013-07-24 00:53
(Received via mailing list)
Correct...make sure you do not have any old jruby-openssl or
bouncycastle-* gems installed.

- Charlie
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.