I'm having trouble getting AxKit to acknowledge a taglib module I'm writing. I've seen several posts regarding this problem on the mailing list archives, but none of the proposed solutions have worked for me.
When I hit a very simple XSP page (attached), I get a 500 and the following error (amid a lot of other AxKit debug stuff...): [Wed Dec 8 19:18:27 2004] [warn] [client 127.0.0.1] [AxKit] some condition failed. recreating output [Wed Dec 8 19:18:27 2004] [warn] [client 127.0.0.1] [AxKit] styles: Apache::AxKit::Language::XSP(NULL) [Wed Dec 8 19:18:27 2004] [warn] [client 127.0.0.1] [AxKit] styles: Apache::AxKit::Language::LibXSLT(test.xsl) [Wed Dec 8 19:18:27 2004] [warn] [client 127.0.0.1] [AxKit] Style Provider Override: Apache::AxKit::Provider::File [Wed Dec 8 19:18:27 2004] [warn] [client 127.0.0.1] [AxKit] [uri] File Provider looking up uri NULL [Wed Dec 8 19:18:27 2004] [warn] [client 127.0.0.1] [AxKit] [uri] File Provider set filename to /var/www/sparrow/trunk/NULL [Wed Dec 8 19:18:27 2004] [warn] [client 127.0.0.1] [AxKit] about to execute: Apache::AxKit::Language::XSP::handler [Wed Dec 8 19:18:28 2004] [warn] [client 127.0.0.1] [AxKit] Caught an exception [Wed Dec 8 19:18:28 2004] [error] [client 127.0.0.1] [AxKit] [Error] Can't locate object method "register" via package "Sparrow" at /usr/lib/perl5/Apache/AxKit/Language/XSP.pm line 219.\n I'll spare you all the backtrace unless someone needs it. The Sparrow module is definitely being added to @INC within mod_perl; I've tested it with a short perl script which fails with a "Can't find Sparrow.pm..." on the command line but works through Apache. Here's the relevant section of my apache config: PerlModule AxKit PerlRequire /var/www/sparrow/trunk/code/startup.pl <Directory "/var/www/sparrow/trunk"> Options +Indexes +FollowSymLinks DirectoryIndex index.xsp AddHandler axkit .xml .xsp AxAddXSPTaglib AxKit::XSP::Util AxAddXSPTaglib AxKit::XSP::Param AxAddXSPTaglib Sparrow AxAddStyleMap application/x-xsp Apache::AxKit::Language::XSP AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT AxDebugLevel 10 AxGzipOutput On </Directory> The Sparrow module and test xsp pages are attached. Thanks in advance for any pointers, Ryan Forsythe
package Sparrow; use Apache::AxKit::Language::XSP::TaglibHelper; @ISA = qw( Apache::AxKit::Language::XSP::TaglibHelper ); $NS = 'http://localhost/sparrow/trunk'; @EXPORT_TAGLIB = ('foo($test)'); use strict; sub foo ($) { my $test = @_; return "<foo>This is a big $test tag</foo>"; } 1;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]