panmari
panmari

Reputation: 3827

Already initialized constant in jruby-openssl

When running my rails application on torquebox, I get a lot of

already initialized constant: ...

warnings that originate from gems/jruby-openssl-0.8.2/lib/shared/jruby-openssl.rb:16. Is this a security problem? Is there any way to get rid of these warnings?

Upvotes: 13

Views: 2609

Answers (2)

panmari
panmari

Reputation: 3827

I could finally get rid of it by removing the gem altogether. According to this source, jruby-openssl is now directly pulled into the jruby project and is not needed anymore as gem.

Thanks everyone for looking into this with me.

Upvotes: 14

Jeff Ancel
Jeff Ancel

Reputation: 3091

I am no longer getting these errors after adding the following to my line in Gemfile.

gem 'jruby-openssl', :require => false

I hope this helps out.

Upvotes: 7

Related Questions