13 Jan 2011, 17:04
Generic-user-small

pinit asavanuchit (48 posts)

18:37:48,897 ERROR [[/kel_admin]] Application Error org.jruby.rack.RackInitializationException: git://github.com/cyberjom/will_paginate.git (at rails3) is not checked out. Please run `bundle install`

This problem occurs only when deploy war file to JBOSS.
It’s work fine with rails server (both development and production)
It’s also work when running stand alone executable war with java -jar xxx.war

My environment is jruby 1.5.6 , rails 3.0.3 , will_paginate 3.0.pre3

in Gemfile

gem 'will_paginate', :git => 'git://github.com/cyberjom/will_paginate.git', :branch => "rails3"

I have fork will_paginate to modify a bit of will_paginate.gemspec, to solve “Invalid File Format”
which occur when running from war (even from stand alone executable or JBOSS)

Is it related to this ticket ?
http://jira.codehaus.org/browse/JRUBY-5077
warbled rails3 app produces bundler error if using gems from git repos

Any work around suggestion ? Any one success with will_paginate preview on rails 3.0.3 + Jruby and warble ?

Thank you very much

13 Jan 2011, 17:06
Generic-user-small

pinit asavanuchit (48 posts)

Sorry for my post. I have try code tag and it’s add a href to the code this is raw version.

Error:

18:37:48,897 ERROR [[/kel_admin]] Application Error
org.jruby.rack.RackInitializationException: git://github.com/cyberjom/will_paginate.git (at rails3) is not checked out. Please run `bundle install`

in Gemfile
gem ‘will_paginate’, :git => ‘git://github.com/cyberjom/will_paginate.git’, :branch => “rails3”

13 Jan 2011, 20:28
Mr_sketchy_pragsmall

Ian Dees (174 posts)

Hi, Pinit.

I had the same issue with a Git-based gem I was using. This does indeed appear to be related to JRUBY-5077.

A possible workaround for now is to check out your fork of will_paginate to its own directory, do a gem build will_paginate.gemspec, and then gem install that specific version. Next, change the entry in your Gemfile to say just gem 'will_paginate' (with no :git modifier). The next time you bundle install, it should use your version of will_paginate that you installed manually.

This isn’t a long-term solution, because it can break on non-Warbler deployments. But it should get your .war up and running for now.

14 Jan 2011, 19:33
Generic-user-small

pinit asavanuchit (48 posts)

It’s work now. I have done local gem install for all those gems with git.

This Jruby+rails3 will go live on 24th Jan.

Thanks
Pinit A.

  You must be logged in to comment