On Monday, January 20, 2003, at 02:50  AM, Matt Sergeant wrote:

Possibly it's not getting any mapping for text/xsl - do you have AxAddStyleMap settings for it?

If that doesn't help, enable AxLogDeclines On. That'll give you a reason why it declined to process the request.

I added

AxLogDeclines On
AxAddStyleMap application/x-xsp Apache::AxKit::Language::XSP
AxAddStyleMap text/xsl Apache::AxKit::Language::Sablot

to my .htaccess in the wiki dir. (*)

Now that I have the mappings added as above, I get this error:

[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] fast handler called for /projects/ict/wiki/view
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] Content Provider Override: Apache::AxKit::Provider::File
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] [req] File Provider given $r: /data/sites/simonwoodside.com/projects/ict/wiki/view
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] checking if we process this resource
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] media: screen, preferred style: #default
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] Cache: key = d436c3ff2b938b40fdf044e0069d3a73
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] Can't create cache directory '/data/sites/simonwoodside.com/projects/ict/wiki/.xmlstyle_cache': Permission denied
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] Can't create cache directory '/data/sites/simonwoodside.com/projects/ict/wiki/.xmlstyle_cache/d4': No such file or directory
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] Can't create cache directory '/data/sites/simonwoodside.com/projects/ict/wiki/.xmlstyle_cache/d4/ 36': No such file or directory
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] getting styles and external entities from the XML
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] styles not cached - calling $provider->get_styles()
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] using XS get_styles (libxml2)
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] calling xs_get_styles_fh()
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] calling xs_get_styles_str()
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] xs_get_styles returned: , , xspwiki
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] Calling GetMatchingProcessors with (screen, , , , xspwiki)
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] get_styles: loading style modules
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] get_styles: looking for mapping for style type: 'application/x-xsp'
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] get_styles: looking for mapping for style type: 'text/xsl'
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] cache doesn't exist
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] some condition failed. recreating output
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] styles: Apache::AxKit::Language::XSP(NULL)
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] styles: Apache::AxKit::Language::Sablot(wiki.xsl)
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] Style Provider Override: Apache::AxKit::Provider::File
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] [uri] File Provider looking up uri NULL
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] [uri] File Provider set filename to /data/sites/simonwoodside.com/projects/ict/wiki/NULL
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] about to execute: Apache::AxKit::Language::XSP::handler
[Mon Jan 20 09:52:01 2003] [warn] [client 65.93.180.152] [AxKit] Caught an exception
[Mon Jan 20 09:52:01 2003] [error] [client 65.93.180.152] [AxKit] [Error] AxKit::load_module failed: Can't locate AxKit/XSP/Util.pm in @INC (@INC contains: . /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl /usr/local/lib/perl/5.6.0 /usr/local/share/perl/5.6.0 /etc/apache/ /etc/apache/lib/perl) at (eval 11) line 1.

[Mon Jan 20 09:52:01 2003] [error] [client 65.93.180.152] [AxKit] From: /usr/lib/perl5/Apache/AxKit/Exception.pm : 9
[Mon Jan 20 09:52:01 2003] [error] [client 65.93.180.152] [AxKit] [Backtrace] AxKit::load_module failed: Can't locate AxKit/XSP/Util.pm in @INC (@INC contains: . /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl /usr/local/lib/perl/5.6.0 /usr/local/share/perl/5.6.0 /etc/apache/ /etc/apache/lib/perl) at (eval 11) line 1.
Apache::AxKit::Exception::new('Apache::AxKit::Exception::Error', '-text', 'AxKit::load_module failed: Can\'t locate AxKit/XSP/Util.pm in @I...') called at /usr/lib/perl5/AxKit.pm line 839
AxKit::prep_exception('AxKit::load_module failed: Can\'t locate AxKit/XSP/Util.pm in @I...') called at /usr/lib/perl5/AxKit.pm line 141
AxKit::__ANON__('AxKit::load_module failed: Can\'t locate AxKit/XSP/Util.pm in @I...') called at /usr/lib/perl5/Apache/AxKit/Language/XSP.pm line 167
Apache::AxKit::Language::XSP::_register_me_and_others() called at /usr/lib/perl5/Apache/AxKit/Language/XSP.pm line 40
Apache::AxKit::Language::XSP::handler('Apache::AxKit::Language::XSP', 'AxKit::Apache=SCALAR(0x83b0034)', 'Apache::AxKit::Provider::File=HASH(0x83b0124)', 'Apache::AxKit::Provider::File=HASH(0x8234f14)', '') called at /usr/lib/perl5/AxKit.pm line 623
AxKit::process_request('AxKit::Apache=SCALAR(0x83b0034)', 'Apache::AxKit::Provider::File=HASH(0x83b0124)', 'ARRAY(0x833c7c4)') called at /usr/lib/perl5/AxKit.pm line 437
AxKit::run_axkit_engine('AxKit::Apache=SCALAR(0x83b0034)', 'Apache::AxKit::Provider::File=HASH(0x83b0124)') called at /usr/lib/perl5/AxKit.pm line 264
eval {...} called at /usr/lib/perl5/AxKit.pm line 255
AxKit::main_handler('AxKit::Apache=SCALAR(0x83b0034)', 'Apache::AxKit::Provider::File=HASH(0x83b0124)') called at /usr/lib/perl5/AxKit.pm line 172
AxKit::fast_handler('AxKit::Apache=SCALAR(0x83b0034)') called at /dev/null line 0
eval {...} called at /dev/null line 0

Which is quite correct, I have

simon@sandbox:~/simonwoodside.com/projects/ict/wiki$ ls -la /usr/local/share/perl/5.6.1/
total 44
drwxrwsr-x 5 root staff 4096 Jan 19 21:08 ./
drwxrwsr-x 4 root staff 4096 Dec 9 13:49 ../
drwxrwsr-x 3 root staff 4096 Jan 19 21:08 AxKit/
-r-xr-xr-x 1 root staff 20658 Apr 7 2001 Barcode.pm*
drwxrwsr-x 2 root staff 4096 Jan 19 21:06 Pod/
drwxrwsr-x 3 root staff 4096 Jan 19 21:08 Text/
simon@sandbox:~/simonwoodside.com/projects/ict/wiki$ ls -la /usr/local/share/perl/5.6.1/AxKit/
total 12
drwxrwsr-x 3 root staff 4096 Jan 19 21:08 ./
drwxrwsr-x 5 root staff 4096 Jan 19 21:08 ../
drwxrwsr-x 2 root staff 4096 Jan 19 21:08 XSP/
simon@sandbox:~/simonwoodside.com/projects/ict/wiki$ ls -la /usr/local/share/perl/5.6.1/AxKit/XSP/
total 16
drwxrwsr-x 2 root staff 4096 Jan 19 21:08 ./
drwxrwsr-x 3 root staff 4096 Jan 19 21:08 ../
-r--r--r-- 1 root staff 4697 Jun 21 2002 Wiki.pm

..... seems as though installing Wiki.pm (which my sysadmin did through CPAN, recall, on debian) missed a dependancy maybe?

simon


(*)
<tangent>
Weird that I needed to do that, since I already defined them in the top-level .htaccess file, and I thought they would be inherited automatically. Actually, I just played with it, and I actually only needed to add the XSP map, which I didn't have in the top level ..htaccess. When I had AxLogDeclines ON, and neither of the mappings (so XSP wasn't mapped at all) I got this /wrong/ error message! Because adding the XSP map fixed it...

[Mon Jan 20 09:57:30 2003] [warn] [client 65.93.180.152] [AxKit] get_styles: looking for mapping for style type: 'application/x-xsp'
[Mon Jan 20 09:57:30 2003] [warn] [client 65.93.180.152] [AxKit] get_styles: looking for mapping for style type: 'text/xsl'
[Mon Jan 20 09:57:30 2003] [warn] [client 65.93.180.152] [AxKit] Caught an exception
[Mon Jan 20 09:57:30 2003] [warn] [client 65.93.180.152] [AxKit] [DECLINED] No implementation mapping available for type 'text/xsl'
[Mon Jan 20 09:57:30 2003] [warn] [client 65.93.180.152] [AxKit] [DECLINED] From: /usr/share/perl5/Error.pm : 148
)))
</tangent>

---
www.simonwoodside.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to