I'm trying to call CGIs from within my axkit-created
pages. Specifically, I want to include an SSI directive in my xml,
pass it to axkit for processing, after which axkit passes the
resulting HTML to Apache::SSI which, spotting the directive, includes
it and sends it to the browser. I have the following httpd.conf which
I've slightly modified from the Apache::ASP example in the provider-howto:
# If the perl module is installed, this will be enabled.
<IfModule mod_perl.c>
. . .
PerlModule AxKit
AddHandler axkit .xml
AddHandler axkit .xsp
PerlModule Apache::Filter
PerlModule Apache::SSI
</IfModule>
. . .
<VirtualHost *>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/nolan/public_html/www.thewordnerd.info
ServerName www.thewordnerd.info
<Files ~ ".xml">
SetHandler perl-script
PerlSetVar Filter On
AxProvider Apache::AxKit::Provider::Filter
PerlHandler Apache::SSI AxKit
</Files>
AxDebugLevel 10
</VirtualHost>
I can run the CGI fine by itself, so the directory and such are
configured fine. However, all atempts to load XML documents produce
the following in my error.log:
[Thu Aug 28 16:56:16 2003] [warn] [client 192.168.1.1] [AxKit] Content Provider
Override: Apache::AxKit::Provider::Filter
[Thu Aug 28 16:56:16 2003] [warn] [client 192.168.1.1] [AxKit] Caught an exception
[Thu Aug 28 16:56:16 2003] [error] [client 192.168.1.1] [AxKit] [Error] Not a HASH
reference at /usr/share/perl5/Apache/Filter.pm line 197.
[Thu Aug 28 16:56:16 2003] [error] [client 192.168.1.1] [AxKit] From:
/usr/lib/perl5/Apache/AxKit/Exception.pm : 9
[Thu Aug 28 16:56:16 2003] [error] [client 192.168.1.1] [AxKit] [Backtrace] Not a HASH
reference at /usr/share/perl5/Apache/Filter.pm line 197.
Apache::AxKit::Exception::new('Apache::AxKit::Exception::Error','-text','Not a
HASH reference at /usr/share/perl5/Apache/Filter.pm lin...') called at
/usr/lib/perl5/AxKit.pm line 988
AxKit::prep_exception('Not a HASH reference at
/usr/share/perl5/Apache/Filter.pm lin...') called at /usr/lib/perl5/AxKit.pm line 212
AxKit::__ANON__('Not a HASH reference at /usr/share/perl5/Apache/Filter.pm
lin...') called at /usr/share/perl5/Apache/Filter.pm line 197
Apache::Filter::READLINE('Apache::Filter=SCALAR(0x82eebd8)') called at
/usr/lib/perl5/Apache/AxKit/Provider/Filter.pm line 32
Apache::AxKit::Provider::Filter::init('Apache::AxKit::Provider::Filter=HASH(0x8763a28)')
called at /usr/lib/perl5/Apache/AxKit/Provider.pm line 39
Apache::AxKit::Provider::new_content_provider('Apache::AxKit::Provider','Apache::SubRequest=SCALAR(0x8763968)')
called at /usr/lib/perl5/Apache/AxKit/Language/XPathScript.pm line 359
XML::XPath::Function::document('XML::XPath::Function=HASH(0x8762a3c)','XML::XPath::Node::Element=REF(0x858ca30)','XML::XPath::Literal=SCALAR(0x875f678)')
called at /usr/share/perl5/XML/XPath/Function.pm line 69
XML::XPath::Function::_execute('XML::XPath::Function=HASH(0x8762a3c)','document','XML::XPath::Node::Element=REF(0x858ca30)','XML::XPath::Literal=SCALAR(0x875f678)')
called at /usr/share/perl5/XML/XPath/Function.pm line 61
XML::XPath::Function::evaluate('XML::XPath::Function=HASH(0x8762a3c)','XML::XPath::Node::Element=REF(0x858ca30)')
called at /usr/share/perl5/XML/XPath/Expr.pm line 138
XML::XPath::Expr::evaluate('XML::XPath::Expr=HASH(0x875f7bc)','XML::XPath::Node::Element=REF(0x858ca30)')
called at /usr/share/perl5/XML/XPath.pm line 86
XML::XPath::find('XML::XPath=HASH(0x86aa02c)','document("menu.xml")','undef')
called at /usr/share/perl5/XML/XPath.pm line 102
XML::XPath::findnodes('XML::XPath=HASH(0x86aa02c)','document("menu.xml")')
called at /usr/lib/perl5/Apache/AxKit/Language/XPathScript.pm line 478
Apache::AxKit::Language::XPathScript::Toys::findnodes('document("menu.xml")')
called at /usr/lib/perl5/Apache/AxKit/Language/XPathScript.pm line 517
Apache::AxKit::Language::XPathScript::Toys::apply_templates('document("menu.xml")')
called at /home/nolan/public_html/www.thewordnerd.info/stylesheets/page_html.xps line
64
Apache::AxKit::Language::XPathScript::ROOT::home::nolan::public_html::www_2ethewordnerd_2einfo::stylesheets::page_html_2exps::handler('Apache::Filter=SCALAR(0x82eebd8)','XML::XPath=HASH(0x86aa02c)','HASH(0x8751fb0)')
called at /usr/lib/perl5/Apache/AxKit/Language/XPathScript.pm line 106
Apache::AxKit::Language::XPathScript::handler('Apache::AxKit::Language::XPathScript','Apache::Filter=SCALAR(0x82eebd8)','Apache::AxKit::Provider::Filter=HASH(0x84d4a68)','Apache::AxKit::Provider::Filter=HASH(0x84ec5b4)',1)
called at /usr/lib/perl5/AxKit.pm line 739
AxKit::process_request('Apache::Filter=SCALAR(0x82eebd8)','Apache::AxKit::Provider::Filter=HASH(0x84d4a68)','ARRAY(0x8275610)','undef')
called at /usr/lib/perl5/AxKit.pm line 461
AxKit::run_axkit_engine('Apache::Filter=SCALAR(0x82eebd8)','Apache::AxKit::Provider::Filter=HASH(0x84d4a68)')
called at /usr/lib/perl5/AxKit.pm line 288
eval {...} called at /usr/lib/perl5/AxKit.pm line 279
AxKit::main_handler('Apache::Filter=SCALAR(0x82eebd8)','Apache::AxKit::Provider::Filter=HASH(0x84d4a68)')
called at /usr/lib/perl5/AxKit.pm line 247
AxKit::handler('Apache::Filter=SCALAR(0x82eebd8)') called at /dev/null line 0
eval {...} called at /dev/null line 0
What am I doing wrong? Or is what I'm attempting simply not possible?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]