NoMethodError: relative_url_root when deploying rails application on tomcat

I tried to follow this tutorial to deploy my jruby application on tomcat, but it always ends:

--- 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 version of jruby is 1.6.5 and I'm using Rails 3.1 (maybe too fresh?)

Thanks for any help

+4
source share
1 answer

We had the same problem and it was tracked to the new version of jruby-rack (1.1.1 IIRC). We dropped to 1.0.10 and the problem disappeared. I am not sure what was the "root" of the problem.

+6
source

Source: https://habr.com/ru/post/1381472/


All Articles