Here is a partial display of console to prove it (details follow): [Fuebo /opt/cookbook]$ ../workspace/jruby5/bin/jruby script/server webrick => Booting WEBrick... => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2006-06-13 22:06:31] INFO WEBrick 1.3.1 [2006-06-13 22:06:31] INFO ruby 1.8.4 (0) [java] [2006-06-13 22:06:31] INFO WEBrick::HTTPServer#start: pid=13220408 port=3000 [2006-06-13 22:06:35] ERROR NameError: uninitialized constant WEBrick::Utils::Fcntl C:/opt/workspace/jruby5/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in `const_missing' SC is ActiveRecord::Base SC is ActiveRecord::Base 127.0.0.1 - - [13/Jun/2006:22:06:36 CDT] "GET /recipe/list HTTP/1.1" 200 1297 - -> /recipe/list SC is ActiveRecord::Base SC is ActiveRecord::Base 127.0.0.1 - - [13/Jun/2006:22:06:42 CDT] "GET /recipe/list HTTP/1.1" 200 1297 http://localhost:3000/recipe/list -> /recipe/list SC is ActiveRecord::Base 127.0.0.1 - - [13/Jun/2006:22:06:45 CDT] "GET /category/list HTTP/1.1" 200 1197 http://localhost:3000/recipe/list -> /category/list
So I did three things: 1. I do not know how to get Rails config to load a particular database from environment so I added the following into boot.rb: RAILS_CONNECTION_ADAPTERS = %w( jdbc ) 2. If I try and run a request I get the criticalize exception. I hacked around this by commenting out setCritical in RubyThread. We do this for our demo. Obviously some work is needed in threading, but that is problem for another day. 3. Some {}.sweep method_missing error. This is really something to do with Flash extending Hash and the sweep method is getting lost (I did not look into this yet, but it will probably be fairly easy to fix). The cookbook app in production mode is not super speedy but it is pretty cool to see it working. -Tom -- + http://www.tc.umn.edu/~enebo +---- mailto:[EMAIL PROTECTED] ----+ | Thomas E Enebo, Protagonist | "Luck favors the prepared | | | mind." -Louis Pasteur | _______________________________________________ Jruby-devel mailing list Jruby-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jruby-devel