From: Radek Hnilica Date: 2003-05-21T00:06:44+09:00 Subject: Problem with Borges,Apache and dRuby --Xm/fll+QQv+hsKip Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm experimenting with Borges again and stopped at following error. While trying use Borges in Apache through dRuby. In got following error in apache/error.log: /home/radek/opt/ruby-1.8.0-2003.05.20/lib/ruby/site_ruby/1.8/borges/ApacheD= RbClient.rb:23:in `handle_with': undefined method `contentType' for # (NoMethodError) from /var/www/borges/hello.rbx:5 from /home/radek/opt/ruby-1.8.0-2003.05.20/lib/ruby/1.8/apache/ruby= -run.rb:70:in `load' from /home/radek/opt/ruby-1.8.0-2003.05.20/lib/ruby/1.8/apache/ruby= -run.rb:70:in `handler' The ruby is the last cvs version, apache is 1.3.26-0woody3 Borges are lates from cvs and also 0.2.0. dRuby is version 2.0.4b1 and 2.0.3. The message is always the same. So in the file ApacheDRbClient in line 23 there is 21 res =3D DRbObject.new(nil, server_uri).handle_request(req) 22 23 ar.content_type =3D res.contentType 24 ar.status =3D res.status 25 ar.send_http_header The apache page is hello.rbx: #!/usr/bin/env ruby # $Id:$ # $Source:$ require 'borges/ApacheDRbClient' Borges::ApacheDRbClient.handle_with('druby://127.0.0.1:7001') #EOF The server hello_srv.rb: #!/usr/bin/env ruby -w # $Id:$ # $Source:$ require 'hello.rb' require 'borges' require 'borges/ApacheDRbServer' Borges::ApacheDRbServer.start('druby://127.0.0.1:7001') Borges::ApacheDRbServer.install_INT_handler puts "Borges DRb Server listening on #{DRb.uri}" puts "Press Ctrl-c to quit" DRb.thread.join #EOF When running server it says: $ ruby hello_srv.rb=20 Borges DRb Server listening on druby://127.0.0.1:7001 Press Ctrl-c to quit and is waiting. Now accessign the page http://yoda/borges/hello.rbx genereates the error message I wrote previously. --=20 Radek Hnilica =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D No matter how far down the wrong road you've gone, turn back. Turkish proverb --Xm/fll+QQv+hsKip Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+ykR704obroM0taURAt0/AKDMiq/fHg/WHygtgs1Da0pLxf1X6QCeKx25 /0ksT/V+fOwMHIfDiWquGDU= =On0A -----END PGP SIGNATURE----- --Xm/fll+QQv+hsKip--