jruby tomcat bundler aws——“解决需求”堆栈太深
Posted
技术标签:
【中文标题】jruby tomcat bundler aws——“解决需求”堆栈太深【英文标题】:jruby tomcat bundler aws -- `resolve requirement` stack too deep 【发布时间】:2012-03-10 04:29:28 【问题描述】:我一直在尝试将我的 rails 3.1.3 应用程序的捆绑 war 文件部署到 amazon beanstalk 实例(它只是带有附加管理软件的 amazon ec2。)
当应用启动时,它会吐出这个:
from /opt/tomcat7/webapps/ROOT/WEB-INF/gems/gems/bundler-1.0.22/lib/bundler/resolver.rb:286:in `resolve'
from /opt/tomcat7/webapps/ROOT/WEB-INF/gems/gems/bundler-1.0.22/lib/bundler/resolver.rb:215:in `resolve'
from /opt/tomcat7/webapps/ROOT/WEB-INF/gems/gems/bundler-1.0.22/lib/bundler/resolver.rb:215:in `resolve'
from /opt/tomcat7/webapps/ROOT/WEB-INF/gems/gems/bundler-1.0.22/lib/bundler/resolver.rb:215:in `resolve'
from /opt/tomcat7/webapps/ROOT/WEB-INF/gems/gems/bundler-1.0.22/lib/bundler/resolver.rb:215:in `resolve'
at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:206)
at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:56)
at org.jruby.rack.SharedRackApplicationFactory.init(SharedRackApplicationFactory.java:27)
... 9 more
Caused by: org.jruby.exceptions.RaiseException: (SystemStackError) stack level too deep
想法? 谢谢
【问题讨论】:
【参考方案1】:通过运行bundle install --deployment
解决了这个问题,然后重新运行warbler。
查看此捆绑程序问题:https://github.com/carlhuda/bundler/issues/927#issuecomment-4043313
【讨论】:
以上是关于jruby tomcat bundler aws——“解决需求”堆栈太深的主要内容,如果未能解决你的问题,请参考以下文章
AWS Elastic Beanstalk Rails Bundler 失败