Forum: JRuby LoadError: OpenSSL::Cipher requires the jruby-openssl gem

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.
501285fcaafca6dff924fbeabb2907a6?d=identicon&s=25 Naga Vijayapuram (nrv)
on 2012-06-07 08:16

I have attempted to run a Rails 2.3.14 app in Tomcat after using warble.
I am seeing this issue in Tomcat log, though jruby-openssl gem is
already installed ...


INFO: An exception happened during JRuby-Rack startup
OpenSSL::Cipher requires the jruby-openssl gem
--- System
jruby (ruby-1.8.7-p357) (2012-05-01 26e08ba) (Java HotSpot(TM)
64-Bit Server VM 1.6.0_31) [darwin-x86_64-java]
Time: Wed Jun 06 23:02:40 -0700 2012
Server: Apache Tomcat/7.0.27

--- Context Init Parameters:
jruby.max.runtimes = 1
jruby.min.runtimes = 1
public.root = /
rails.env = production

--- Backtrace
LoadError: OpenSSL::Cipher requires the jruby-openssl gem
                   (root) at
                Encryptor at


Any thoughts on how I can overcome the issue will be very helpful.

501285fcaafca6dff924fbeabb2907a6?d=identicon&s=25 Naga Vijayapuram (nrv)
on 2012-06-08 07:19
Resolved this issue by using this entry in warble.rb and re-generating
the war ...

config.gems += %w(jruby-openssl)

Hope this helps someone facing similar issue.
F1d37642fdaa1662ff46e4c65731e9ab?d=identicon&s=25 Charles Nutter (headius)
on 2012-06-08 16:04
(Received via mailing list)
Thanks for the update, Naga!
This topic is locked and can not be replied to.