Already initialized constant in jruby-openssl

淺唱寂寞╮ 提交于 2019-12-23 07:00:35

问题


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?


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/14498513/already-initialized-constant-in-jruby-openssl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!