From: Wai-Sun Chia Date: 2002-12-27T19:23:40+09:00 Subject: Roach 0.4 + Ruby 1.8.0 Rubyists, Thought I'd give roach a try, but the sample page didn't work for me ("The document contains no data" ERROR). Apache 2.0.43 Roach 0.4 ruby 1.8.0 (2002-12-26) [i386-linux-gnu] Debugging so far: At Request.rb, the line containing "extend QueryExtension" is failing because for some reason or other QueryExtension is NOT known to Ruby (QueryExtension is a module in cgi.rb). Is this some scoping problem, which I inadvertantly triggered when using my combination of Apache, Ruby and Roach? ======================== roach.log ================================ 3 [ Ready. ] ./lib/roach/Httpd.rb:55 0 [ fielding request... ] 1 ./lib/roach/Httpd.rb:94 0 [ adding request to queue ] ./lib/roach/Httpd.rb:60 3 [ watching thread id: 1 ] ./lib/roach/Httpd.rb:76 0 [ content length: 0 ] 1 ./lib/roach/Request.rb:172 9 [ uninitialized constant QueryExtension at Roach ] 1 ./lib/roach/Httpd.rb:115 9 [ ./lib/roach/Request.rb:43:in `initialize' ] 1 ./lib/roach/Log.rb:84 9 [ ./lib/roach/Request.rb:191:in `new' ] 1 ./lib/roach/Log.rb:84 9 [ ./lib/roach/Request.rb:191:in `initialize' ] 1 ./lib/roach/Log.rb:84 9 [ ./lib/roach/Httpd.rb:97:in `new' ] 1 ./lib/roach/Log.rb:84 9 [ ./lib/roach/Httpd.rb:97:in `listener' ] 1 ./lib/roach/Log.rb:84 9 [ ./lib/roach/Httpd.rb:51:in `listen' ] 1 ./lib/roach/Log.rb:84 9 [ ./lib/roach/Httpd.rb:51:in `initialize' ] 1 ./lib/roach/Log.rb:84 9 [ ./lib/roach/Httpd.rb:51:in `new' ] 1 ./lib/roach/Log.rb:84 9 [ ./lib/roach/Httpd.rb:51:in `listen' ] 1 ./lib/roach/Log.rb:84 9 [ ./lib/roach/Httpd.rb:50:in `times' ] 1 ./lib/roach/Log.rb:84 9 [ ./lib/roach/Httpd.rb:50:in `listen' ] 1 ./lib/roach/Log.rb:84 9 [ lib/roach.rb:53 ] 1 ./lib/roach/Log.rb:84 8 [ terminating request ] 1 ./lib/roach/Httpd.rb:127 -- Wai-Sun "Squidster" Chia Consulting & Integration Linux/Unix/Web Developer Dude "Just Another Ruby Miner"