Forum: JRuby openssl error with latest JDK and JRuby

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
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/ `require'
    org/jruby/ `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.
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.
09a41a085f93af8644a7e2e35ba987af?d=identicon&s=25 Charles N. (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
This topic is locked and can not be replied to.