I am attempting to use jruby-openssl gem inside a project that is packaged inside the jruby-complete.jar. Everything else works - except the jruby-openssl. It is installed inside a gems directory on root, along with the specifications directory. I have attempted several other possible fixes, as explained here : http://www.ruby-forum.com/topic/3889596#1052333 I have gotten two errors, one is a stackoverflow error - which has something to do with the jopenssl java code. I edited the layout and now get this:
NameError: uninitialized constant OpenSSL::Digest::OPENSSL_VERSION_NUMBER
When trying to use NET::SMTP. I am hoping there is a work around for this problem, as I need to have this up and running asap. I am using the latest JRuby - 1.6.7 and this is happening. All you have to do is create a 'hello world' app and package it inside of the JRuby-Complete.jar - then 'require 'smtp''. This will attempt to load OpenSSL but will fail to do so. I have read all kinds of possible culprits for this problem but no real fix. Do I just need to move away from using SMTP in JRuby and just use straight Java? Seems like the only solution to me at this point, I'd rather not have to go that route. Is there a good reason for JRuby not including a working OpenSSL implementation?