dev@glassfish.java.net

Re: GlassFish Gem for Rails [WAS Re: GlassFish gem feature requests/bugs]

From: Changshin Lee <iasandcb_at_gmail.com>
Date: Sat, 15 Sep 2007 15:55:34 +0900

Hi Charlie,

Thanks for your tip. Now SpringBook works fine, but I need one more
feature: support loading jar files from a Rails project. Actually
Goldspike supports lib/java directory for the purpose, but Grizzly
JRuby connector and GF V3 doesn't.

In summary:

1. Configure context path (including multiple separators such as "/
projects/springbook")
2. Configure port (this can be achieved by modifying domains/domain1/
config/domain.xml manually though)
3. Support loading lib/java/*.jar files in a project

As SpringBook (http://labs.openmaru.com/projects/springbook) is
unveiled next week, I'll post more details behind feature requests
above.

Cheers,

ias

2007. 09. 15, 오전 4:53, Charles Oliver Nutter 작성:

> Changshin Lee wrote:
>> Hi Arun,
>>
>> First of all, thanks for the nice work. I'd like to give quick
>> feedback
>> from using it for my project.
>>
>> I ran "springbook" project with glassfish_rails and
>>
>> http://localhost:8080/springbook/pages/3
>>
>> works fine. However, all the generated links to pages_controller are
>> "/pages/xxx", not "/springbook/pages/xxx". I tried to use
>>
>> ActionController::AbstractRequest.relative_url_root = '/springbook'
>>
>> but it didn't work at all. Probably Grizzly JRuby connector may leave
>> out the context path to Rails.
>
> I ran into this too. You need to set two properties:
>
> ActionController::AbstractRequest.relative_url_root = "/testapp/"
> ActionController::CgiRequest.relative_url_root = "/testapp/"
>
> - Charlie
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>