Issue Details (XML | Word | Printable)

Key: WARBLER-27
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Nick Sieger
Reporter: mhuffnagle
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
warbler

Warbler-generated war file fails to load in Tomcat using relative_url_root

Created: 15/Nov/11 07:52 PM   Updated: 16/Nov/11 03:46 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File localhost.2011-11-15.log (15 kB) 15/Nov/11 07:52 PM - mhuffnagle

Environment:

JRuby 1.6.5 under RVM, Tomcat 7.0.22, rails 3.0.10, reproduced on both Centos 5.5 and OS X 10.6.8, warbler 1.3.2


Tags:


 Description  « Hide

Warbler version: 1.3.2

When I deploy the war generated by Warbler to Tomcat, it's failing because it is trying to set config.action_controller.relative_url_root. That setting has been replaced by the environment variable RAILS_RELATIVE_URL_ROOT.

There is a StackOverflow posting which talks about the change here: http://stackoverflow.com/questions/5558900/changing-the-base-url-for-rails-3-development

I've found that the app works when I deploy it to root, but always fails when I deploy it to a some sub-url.



mhuffnagle added a comment - 16/Nov/11 03:46 PM

It looks like this was related to https://github.com/rails/rails/pull/3646