Re: JRuby-Rack and Rails 2.3.5
- From: Don Morrison <elskwid@gmail.com>
- To: issues@jruby-rack.kenai.com
- Subject: Re: JRuby-Rack and Rails 2.3.5
- Date: Wed, 17 Mar 2010 15:13:25 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=f6NDy3/cuKYzg1rm5Cy7/aRM7cT7NPmMHCO4RGP7mF3bP+uYJIT7LW7xIyXjw1xHp7 uWpGP1BYW8Lt/6JswYPxeU6ieO4wSlXREfey7e8iFgNU1vmuovEx2flT4OMwRAsXnlGU pifqEoHiMrHT35/fMXnuuFod5F0j+A7dWeLDI=
Hey Kyle,
Thanks for the reply. I didn't read Nick's update close enough - he pushed
the gem to 1.1.0 which doesn't work with Rails 2.3.5. As you showed they use
the ~> 1.0.1 when requiring Rack which ties it to 1.0.x. Ugh.
I'm going to play around with including my own version of Rack but this does
raise the ugly specter of how to manage this type of thing with JRuby-Rack.
Seems it might be very confusing to users when they are picking versions for
deployment. I haven't dug around in the JRuby-Rack code at all so I'm totally
uninformed ... how much work is it actually doing? I assume it is a rather
thing wrapper around Rack if all you need to do is drop another gem in to get
it to work. If that is the case why include the gem at all?
I'll let you all know what I come up with.
Don
On Mar 16, 2010, at 11:55 AM, Kyle Wilcox wrote:
> Nick just committed an update to rack-1.1.0
> "http://github.com/nicksieger/jruby-rack/commit/22c383e50e52e4ac28763751e78dc7a153b38715".
> So that may fix your problem?
>
> If not, vendor Rack 1.0.1, and comment out lines 34 and 35 of
> action_controller.rb
>
> #gem 'rack', '~> 1.0.1'
> #require 'rack'
>
> and add:
>
> load "#{RAILS_ROOT}/vendor/gems/rack-1.0.1/lib/rack.rb"
>
> Does that work?
>
>
> On Tue, Mar 16, 2010 at 10:33 PM, <elskwid@gmail.com> wrote:
>> Hi all,
>>
>> I noticed the examples have been bumped to Rails 2.3.5 but I can't get
>> JRuby-Rack to work with that version of Rails. I'm going to blame this
>> line in action_ctonroller.rb:
>>
>> gem 'rack', '~> 1.0.1'
>>
>> JRuby-Rack is currently using Rack 1.0.0 :
>> http://github.com/nicksieger/jruby-rack/commit/24fe10fb175172a64cb2ca1e
>> 5706e7617ec4a997
>>
>> As background, I am attempting to deploy a Rails 2.3.5 application to
>> Glassfish using Warbler for packaging. When the war is deployed I get
>> the following error in the server.log:
>>
>> Caused by: org.jruby.exceptions.RaiseException: Could not find RubyGem
>> rack (~> 1.0.1)
>>
>> If the current JRuby-Rack can work with Rails 2.3.5 could someone clue
>> me in as to how? If it doesn't then the examples don't reflect the
>> current state of the project correctly. (Assuming that it isn't Rails
>> 2.3.5 compatible what is the plan to get it there? Is there any way
>> that I can help?)
>>
>> Thanks.
>> Don
>>
| elskwid | 03/16/2010 | |
| Kyle Wilcox | 03/16/2010 | |
| Don Morrison | 03/16/2010 | |
|
Re: JRuby-Rack and Rails 2.3.5 |
Don Morrison | 03/17/2010 |
| Nick Sieger | 03/26/2010 |





