---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
You are not missing anything. It just kinda sucks right now :(
jruby-openssl lives as a gem because of the uncertain nature of
including a cryptography library in JRuby itself. As a result, it's
very cumbersome to bundle jruby-openssl in a WAR or JAR file along
with JRuby, because it tries to load it as an external extension. This
must be fixed, and I think we really should fix it for 1.5. The Google
AppEngine folks have also run into this; it's almost impossible to get
jruby-openssl packaged nicely right now.
Work with us to get this fixed, starting by filing a bug about
embedding jruby-openssl. We'll go from there and make sure this use
case works for you and for anyone else in the future.
- Charlie
I'm also quite often hear similar thing about yaml/yecht thing, since
there is also a JAR inside a JAR there, and it doesn't work in some
use cases (like entire-app-in-a-jar).
Maybe, these 2 situation are similar?
Thanks,
--Vladimir
We've been able to run our app within a java web start environment doing this:
1. grab the jopenssl.jar out of the gem jruby-openssl-0.6 and put it
with the rest of the jars (other jar dependencies)
2. sign the jopenssl.jar
3. add jopenssl.jar has a new resource in the app's jnlp file.
Then it should work. It seems that jars inside gems can't be located
or loaded from some environments like java web start. I don't really
know what's going on... :(
Best regards.
Gonzalo.
--
Gonzalo Suárez | Developer
Tlf: +34 915541007 Ext. 261
gonzalo(at)abstra(dot)cc
http://abstra.cc
I'll give it a shot today.
Here's what I did to get jruby-openssl embedded in the same jar as JRuby:
1. unjar jruby.jar contents (or jruby-complete.jar)
2. copy all jruby-openssl/lib contents to the same dir
3. unjar jopenssl.jar in the same dir
4. rejar the whole shebang (deleting jopenssl is optional)
I then ran with this jruby-with-ssl.jar, bcprov jar, and bcmail jar in
-cp, passed -e "require 'openssl'", and it worked fine.
So combining the jars is not difficult (though it's more difficult
than it probably should be). Which problems does that leave for you
folks?
* can't register BC provider? I suppose this could affect environments
with stricter security settings...
* really want a single master jar? Unjarring and rejarring the bc jars
did not work for me; it didn't like the signatures that came along.
* something else?
- Charlie
On Wed, Feb 3, 2010 at 10:27 AM, Charles Oliver Nutter