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

Posted by Naga Vijay (nrv)
on 2012-06-07 08:16
Hello,

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 1.6.7.2 (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
jruby.home:
file:/Users/nv/apache-tomcat-7.0.27/webapps/tibbr/WEB-INF/lib/jruby-stdlib-1.6.7.2.jar!/META-INF/jruby.home

--- 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
file:/Users/nv/apache-tomcat-7.0.27/webapps/tibbr/WEB-INF/lib/jruby-stdlib-1.6.7.2.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/cipher.rb:8
                Encryptor at
file:/Users/nv/apache-tomcat-7.0.27/webapps/tibbr/WEB-INF/lib/jruby-stdlib-1.6.7.2.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/cipher.rb:5

===================================

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

Thanks
Posted by Naga Vijay (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.
Posted by Charles Nutter (headius)
on 2012-06-08 16:04
(Received via mailing list)
Thanks for the update, Naga!
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.