NoMethodError: relative_url_root when deploying rails app on tomcat

試著忘記壹切 提交于 2019-11-29 23:00:37

问题


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

Tried either with tomcat 6 and 7.

My jruby version is 1.6.5 and I use Rails 3.1 (too fresh perhaps ?)

Thanks for any help


回答1:


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.



来源:https://stackoverflow.com/questions/8151053/nomethoderror-relative-url-root-when-deploying-rails-app-on-tomcat

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