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

501285fcaafca6dff924fbeabb2907a6?d=identicon&s=25 Naga Vijayapuram (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
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.