Forum: JRuby Odd issue w/ JRuby 9k + Travis CI

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
008f5a68b816bb1e5c8e744674bac103?d=identicon&s=25 Jesse Proudman (Guest)
on 2015-03-02 20:34
(Received via mailing list)
Hello,

We're trying to get our project to build on Travis CI using JRuby 9k. We
have the project successfully building using JRuby1.7.19 on Travis, and
successfully operating locally using JRuby 9k, but on Travis CI, we get
the
following output:

https://gist.github.com/blueboxjesse/8f270ab2c380c709b784

Google-fu has left me with limited results.

Does any one have thoughts on how to solve this?

Jesse Proudman
Founder and CTO
Blue Box Group, Inc.
w. blueboxcloud.com <http://www.blueboxcloud.com>
c. 206-778-8777
B80b0b3f9bfd5804ab03f8ca365bb7f1?d=identicon&s=25 Brendan G. (brendan_g)
on 2015-03-02 20:50
(Received via mailing list)
With the major caveat that I haven't used jruby 9k yet. Do you have
jruby-openssl installed?

gem install jruby-openssl



On Mon, Mar 2, 2015 at 2:32 PM, Jesse Proudman <jproudman@bluebox.net>
8236c41074efd452556e3f3335740c1d?d=identicon&s=25 Jesse Proudman (Guest)
on 2015-03-02 21:02
(Received via mailing list)
Added this to our Gemfile and unfortunately still getting the same
result:

gem 'jruby-openssl', platforms: :jruby


Jesse Proudman
Founder and CTO
Blue Box Group, Inc.
w. blueboxcloud.com <http://www.blueboxcloud.com/>
c. 206-778-8777

On Mon, Mar 2, 2015 at 11:48 AM, Brendan Grainger <
B05d3cbc64b0031a24c2887fb6ddc173?d=identicon&s=25 christian (Guest)
on 2015-03-03 08:45
(Received via mailing list)
it looks like that the constant ```OpenSSL``` isunknown and looked up
relativ inside ```ActiveMerchant::NetworkConnectionRetries```. could you
try to require 'openssl' in an early state - inside an initializer or
so.
jruby-openssl does come with jruby itself and there is no real need for
it
in the Gemfile.
8236c41074efd452556e3f3335740c1d?d=identicon&s=25 Jesse Proudman (Guest)
on 2015-03-03 19:56
(Received via mailing list)
Thanks. I ended up putting a require 'openssl' in the boot.rb file right
under require 'rubygems' and that resolved it. I'll find a better place
for
it to live and move on.

Thanks!


Jesse Proudman
Founder and CTO
Blue Box Group, Inc.
w. blueboxcloud.com <http://www.blueboxcloud.com/>
c. 206-778-8777
This topic is locked and can not be replied to.