mod_perl2 and APR::Request::Cookie error

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

This code below works fine, but when I uncomment the line
   my $jar = $r->jar;
it get an Internal Server Error.

The error_log says:

[Sun Oct 29 15:11:55 2006] [error] [client] Can't locate
object method "jar" via package "Apache2::RequestRec" at
/home/webadmin/ line 16.\n

mod_perl 2.0.2
apache 2.0.51
Fedora Core Linux

Any suggestions?


package Iby::login;

use strict;
use warnings;

use Apache2::Reload;
use Apache2::RequestRec ();
use Apache2::RequestIO ();
use APR::Request::Cookie;
use Apache2::Const -compile => qw(OK);

sub handler {
  my $r = shift;

#  my $jar = $r->jar;

  print "mod_perl 2.0 rocks!\n";
  print "$ENV\n";

  return Apache2::Const::OK;



Site Timeline