mod_perl2 and APR::Request::Cookie error

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 xxx.xxx.xxx.xxx] Can't locate
object method "jar" via package "Apache2::RequestRec" at
/home/webadmin/xxx.xxxxx.com/modperl/Iby/login.pm line 16.\n

mod_perl 2.0.2
apache 2.0.51
Fedora Core Linux

Any suggestions?

--------code--------

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;

$r->content_type('text/plain');
print "mod_perl 2.0 rocks!\n";
print "$ENV{MOD_PERL}\n";

return Apache2::Const::OK;
}

1;

--
jhk
Jarle H Knudsen [ So, 29 Oktober 2006 21:22 ] [ ID #1517583 ]
Perl » comp.lang.perl.modules » mod_perl2 and APR::Request::Cookie error

Vorheriges Thema: ANNOUNCE: new module: Ingres::Utility::IINamu
Nächstes Thema: ANNOUNCE: Google::Adwords v0.6