本文介绍了在Tomcat上部署rails应用程序时,NoMethodError:relative_url_root的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图追踪将我的jruby应用程序部署在tomcat上,但始终以:
I tried to follow this tutorial to deploy my jruby app on tomcat, but yet it always ends with:
--- Backtrace
NoMethodError: undefined method `relative_url_root=' for ActionController::Base:Class
send at org/jruby/RubyKernel.java:2097
尝试使用tomcat 6和7。
Tried either with tomcat 6 and 7.
我的jruby版本是1.6.5,我使用Rails 3.1(太新鲜可能吗?)
My jruby version is 1.6.5 and I use Rails 3.1 (too fresh perhaps ?)
感谢任何帮助
推荐答案
同样的问题,它被追溯到新版本的jruby-rack(1.1.1 IIRC)。我们降级到1.0.10,问题消失了。我不知道问题的根源是什么。
We had the same problem, and it was tracked down to the new version jruby-rack (1.1.1 IIRC). We downgraded to 1.0.10 and the problem went away. I'm not sure what the "root" of the problem was though.
这篇关于在Tomcat上部署rails应用程序时,NoMethodError:relative_url_root的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!