Jruby-openssl -> jruby-complete.jar

Hi,
I guess my problem is related to the threads of Ali S. (“Issue with
the gems using jruby-complete” [1] and “Calling Jruby -S from a java
code.” [2]), but I didn’t want to mess up those threads.

So, I try to include openssl support into the “jruby-complete” jar file,
such that the final users need not to install the gem on their own. In
the latest thread of Ali, Nick S. mentioned that including gems
isn’t easily possible [3], so I wonder what the “maybe_install_gems”
stuff within the build.xml is used for.
The following is just to get the procedure right:

  1. I adopted the build.xml, such that it contains jruby-openssl as
    argument, wherever “rspec” and “rake” were already added (the
    “maybe_install_gems” sections in target “jar-complete” and
    “install-gems”).

So finally, the jar file contains the jruby-openssl files:

META-INF/jruby.home/lib/ruby/gems/1.8/
./cache/jruby-openssl-0.2.3.gem
./gems/jruby-openssl-0.2.3/*
./specifications/jruby-openssl-0.2.3.gemspec

  1. Nick’s hint [4], to add ‘META-INF/jruby.home/lib/ruby/site_ruby/1.8’
    to the LOAD_PATH variable, made a minimal script like the following run:

require ‘rubygems’
require ‘openssl’

I tought that would be the same issue as described in thread “Calling
Jruby -S from a java code.” with including “mongrel”, but i still get
the following message:

“JRuby limited openssl loaded. gem install jruby-openssl for full
support. http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL

So obviously the jruby-openssl code isn’t used.

… now I’m not sure if I missed something or that corresponds to the
mentioned troubles including gems into the jruby-complete jar.

I hope somebody is able to throw light on my situation.

Cheers, Thomas.

[1]
http://archive.hausfoundation.org/lists/org.codehaus.jruby.user/msg/[email protected]
[2]
http://archive.hausfoundation.org/lists/org.codehaus.jruby.user/msg/[email protected]
[3]
http://archive.hausfoundation.org/lists/org.codehaus.jruby.user/msg/[email protected]
[4]
http://archive.hausfoundation.org/lists/org.codehaus.jruby.user/msg/[email protected]

Psssst! Schon das coole Video vom GMX MultiMessenger gesehen?
Der Eine für Alle: http://www.gmx.net/de/go/messenger03


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi,

concerning the same issue, the procedure of modifying the build.xml
works for some gems but not all. For instance I tried adding “roxml” gem
to the jruby-complete.jar but I my simple 2 line script (require
‘roxml’) fails complaining it cant find the file.

Cheers,
-A

[email protected] wrote:

META-INF/jruby.home/lib/ruby/gems/1.8/

I hope somebody is able to throw light on my situation.

Cheers, Thomas.

[1] http://archive.hausfoundation.org/lists/org.codehaus.jruby.user/msg/[email protected]
[2] http://archive.hausfoundation.org/lists/org.codehaus.jruby.user/msg/[email protected]
[3] http://archive.hausfoundation.org/lists/org.codehaus.jruby.user/msg/[email protected]
[4] http://archive.hausfoundation.org/lists/org.codehaus.jruby.user/msg/[email protected]


Cheers,

-A


Ali S., Research Assistant, LSIR - Distributed Information Systems
Laboratory
EPFL-IC-IIF-LSIR, Bâtiment BC, Station 14, CH-1015 Lausanne, Switzerland.
http://lsirpeople.epfl.ch/salehi/
email: [email protected]
Tel: +41-21-693.6656/7563 Mobile: +41-21-78.815.2020 Fax:
+41-21-693.8115


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs