Already initialized constant in jruby-openssl

2019-06-15 03:44发布

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?

2条回答
Summer. ? 凉城
2楼-- · 2019-06-15 04:18

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.

查看更多
贼婆χ
3楼-- · 2019-06-15 04:32

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.

查看更多
登录 后发表回答