Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Vivek Pandey
RE: rails 2.3.5 not appearing to work for me [ reply ]  
2010-01-14 04:00
I suspect you have rack 1.1.0 installed.

See issue ticket, http://rubyforge.org/tracker/?func=detail&atid=21080&aid=27685&group_id=5450.

Basically, actionpack-2.3.5 declares a gem dependency of ("rack",
"~> 1.0.0") and it tries to load 1.0.1 ver of rack.
Looks like there is some incompatibility between rack 1.1.0 and
1.0.1. So loading rack fails and it results in to this error
message.

The reason Webrick or mongrel works is because they dont have
explicit dependency on Rack. Rack ships with webrick and mongrel
handlers. so ver 1.1.0 already have all the pieces in place so
everything works just fine.

By: Topper Bowers
rails 2.3.5 not appearing to work for me [ reply ]  
2010-01-14 03:24
creating a totally new blank rails app (in 2.3.5) does not run in glassfish - the glassfish command gives me a "rails gem not installed." However, I can run jruby script/server without incident. I'm pasting a console session below. Snow Leopard, jruby 1.4.0, rails 2.3.5, glassfish gem 1.0.2

22:21 ~/projects $ jgem list rails

*** LOCAL GEMS ***

rails (2.3.5, 2.2.2)
22:21 ~/projects $ jruby -S rails test_app
create
[... list of files removed ...]
22:21 ~/projects $ cd test_app/
22:21 ~/projects/test_app $ jruby -S glassfish
Starting GlassFish server at: 0.0.0.0:3000 in development environment...
Writing log messages to: /Users/topper/projects/test_app/log/development.log.
Press Ctrl+C to stop.

Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.
^CStopping GlassFish!
22:22 ~/projects/test_app $ jruby script/server
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-01-13 22:22:26] INFO WEBrick 1.3.1
[2010-01-13 22:22:26] INFO ruby 1.8.7 (2009-11-02) [java]
[2010-01-13 22:22:26] INFO WEBrick::HTTPServer#start: pid=10430 port=3000

[... site can now be accessed at http://localhost:3000 ...]