[cgiapp] Combining CGI::App::Plugin::Apache and CGI::App::Dispatch

Ron Savage ron at savage.net.au
Sat Jan 19 23:33:52 EST 2008


Hi Folks

Is is possible to combine the 2 modules named in the Subject?

Context is:

o Debian etch

o Apache/2.2.6 (Unix) mod_fastcgi/2.4.6 mod_apreq2-20051231/2.6.0
mod_perl/2.0.3 Perl/v5.8.8 configured

What I'm finding is:

o I can use CGI::App::Dispatch by itself

o When I add CGI::App::Plugin::Apache, CGI::App::Dispatch is disabled,
so CGI::App calls its default sub setup(), and the default run mode
'start' triggers a call to CGI::App's sub dump_html(), but since the
query object is now an Apache::Request object, which has no sub Dump(),
CGI::App is dying at line 297:
	$output .= $query->Dump;
The full error msg is:
[Sun Jan 20 15:26:56 2008] [error] [client 127.0.0.1] Error executing
run mode 'start': Can't locate auto/Apache2/Request/Dump.al in @INC
(@INC
contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . /home/ron/httpd/prefork) at /usr/local/share/perl/5.8.8/CGI/Application.pm line 297\n at /usr/local/share/perl/5.8.8/CGI/Application/Plugin/Apache.pm line 36\n

-- 
Ron Savage
ron at savage.net.au
http://savage.net.au/index.html




More information about the cgiapp mailing list