I'm running Params::Callback under mod_perl 2, and I came accross this error:

The 'apache_req' parameter ("Apache2::RequestRec=SCALAR(0x87e8f60)") to Params::Callback::new was not a 'Apache' (it is a Apache2::RequestRec=SCALAR(0x87e8f60))\n

And I was able to fix this by going into the Params::Callback module and making the following change:

I changed this:
------------------------------------------------------------------------------
# Use Apache::RequestRec for mod_perl 2
my $ap_req_class = defined $mod_perl::VERSION && $mod_perl::VERSION >= 1.99
    ? 'Apache::RequestRec'
    : defined $mod_perl2::VERSION
        ? 'Apache2::RequestRec'
        : 'Apache';
------------------------------------------------------------------------------

to this:
------------------------------------------------------------------------------
my $ap_req_class = 'Apache2::RequestRec';
------------------------------------------------------------------------------

It seems that the piece of code in the module cannot properly determine whether to use 'Apache' or 'Apache2::RequestRec'.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to