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

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™
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

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.

Thanks for the update, Naga!