My httpd.conf now contains:

=-=-=-=-=-=-=-=-
AddType application/x-xsp .xsp
..........
PerlModule AxKit
AddHandler axkit .xml
AddHandler axkit .xsp
AddHandler axkit .dkb
AxDebugLevel 10
AxLogDeclines On
<Files *.xsp>
        AxAddProcessor application/x-xsp .
</Files>
PerlSetVar AxXPSInterpolate 1
AxAddXSPTaglib AxKit::XSP::ESQL
=-=-=-=-=-=-=-=-

It gives a 500 internal server error when I go to the page:

=-=-=-=-=-=-=-=-
<xsp:page language="perl" xmlns:xsp="http://apache.org/xsp/core/v1";>
  <p>
    <xsp:expr>scalar localtime</xsp:expr>
  </p>
</xsp:page>
=-=-=-=-=-=-=-=-

The Apache error log contains:

=-=-=-=-=-=-=-=-
[Mon Jul 08 14:05:05 2002] [warn] [client 127.0.0.1] [AxKit] fast
handler called for /axkit/test.xsp
[Mon Jul 08 14:05:05 2002] [warn] [client 127.0.0.1] [AxKit] Content
Provider Override: Apache::AxKit::Provider::File
[Mon Jul 08 14:05:05 2002] [warn] [client 127.0.0.1] [AxKit] [req] File
Provider given $r: c:/web/axkit/test.xsp
[Mon Jul 08 14:05:05 2002] [warn] [client 127.0.0.1] [AxKit] checking
if we process this resource
[Mon Jul 08 14:05:05 2002] [warn] [client 127.0.0.1] [AxKit] media:
screen, preferred style: #default
[Mon Jul 08 14:05:05 2002] [warn] [client 127.0.0.1] [AxKit] Cache: key
= 6d405f09108fe52ddda5e6e838973782
[Mon Jul 08 14:05:05 2002] [warn] [client 127.0.0.1] [AxKit] getting
styles and external entities from the XML
[Mon Jul 08 14:05:05 2002] [warn] [client 127.0.0.1] [AxKit] styles
cached
[Mon Jul 08 14:05:05 2002] [warn] [client 127.0.0.1] [AxKit] cache
doesn't exist
[Mon Jul 08 14:05:05 2002] [warn] [client 127.0.0.1] [AxKit] some
condition failed. recreating output
[Mon Jul 08 14:05:05 2002] [warn] [client 127.0.0.1] [AxKit] styles:
Apache::AxKit::Language::XSP(.)
[Mon Jul 08 14:05:05 2002] [warn] [client 127.0.0.1] [AxKit] Style
Provider Override: Apache::AxKit::Provider::File
[Mon Jul 08 14:05:05 2002] [warn] [client 127.0.0.1] [AxKit] [uri] File
Provider looking up uri .
[Mon Jul 08 14:05:05 2002] [warn] [client 127.0.0.1] [AxKit] [uri] File
Provider set filename to c:/web/axkit
[Mon Jul 08 14:05:05 2002] [warn] [client 127.0.0.1] [AxKit] about to
execute: Apache::AxKit::Language::XSP::handler
[Mon Jul 08 14:05:05 2002] [warn] [client 127.0.0.1] [AxKit] Caught an
exception
[Mon Jul 08 14:05:05 2002] [error] [client 127.0.0.1] [AxKit] [Error]
Can't locate object method "register" via package "AxKit::XSP::ESQL"
(perhaps you forgot to load "AxKit::XSP::ESQL"?) at
C:/Perl/site/lib/Apache/AxKit/Language/XSP.pm line 168.

[Mon Jul 08 14:05:05 2002] [error] [client 127.0.0.1] [AxKit] From:
C:/Perl/site/lib/Apache/AxKit/Exception.pm : 9
[Mon Jul 08 14:05:05 2002] [error] [client 127.0.0.1] [AxKit]
[Backtrace] Can't locate object method "register" via package
"AxKit::XSP::ESQL" (perhaps you forgot to load "AxKit::XSP::ESQL"?) at
C:/Perl/site/lib/Apache/AxKit/Language/XSP.pm line 168.
        Apache::AxKit::Exception::new('Apache::AxKit::Exception::Error',
'-text', 'Can\'t locate object method "register" via package
"AxKit::XSP::...') called at C:/Perl/site/lib/AxKit.pm line 839
        AxKit::prep_exception('Can\'t locate object method "register"
via package "AxKit::XSP::...') called at C:/Perl/site/lib/AxKit.pm line
141
        AxKit::__ANON__('Can\'t locate object method "register" via
package "AxKit::XSP::...') called at
C:/Perl/site/lib/Apache/AxKit/Language/XSP.pm line 168
        Apache::AxKit::Language::XSP::_register_me_and_others() called
at C:/Perl/site/lib/Apache/AxKit/Language/XSP.pm line 40
        Apache::AxKit::Language::XSP::handler('Apache::AxKit::Language::XSP',
'AxKit::Apache=SCALAR(0x4411858)',
'Apache::AxKit::Provider::File=HASH(0x4411624)',
'Apache::AxKit::Provider::File=HASH(0x4410940)', 1) called at
C:/Perl/site/lib/AxKit.pm line 623
        AxKit::process_request('AxKit::Apache=SCALAR(0x4411858)',
'Apache::AxKit::Provider::File=HASH(0x4411624)', 'ARRAY(0x4411528)')
called at C:/Perl/site/lib/AxKit.pm line 437
        AxKit::run_axkit_engine('AxKit::Apache=SCALAR(0x4411858)',
'Apache::AxKit::Provider::File=HASH(0x4411624)') called at
C:/Perl/site/lib/AxKit.pm line 264
        eval {...} called at C:/Perl/site/lib/AxKit.pm line 255
        AxKit::main_handler('AxKit::Apache=SCALAR(0x4411858)',
'Apache::AxKit::Provider::File=HASH(0x4411624)') called at
C:/Perl/site/lib/AxKit.pm line 172
        AxKit::fast_handler('AxKit::Apache=SCALAR(0x4411858)') called at
nul line 0
        eval {...} called at nul line 0
=-=-=-=-=-=-=-=-

Any ideas?

Thanks
Nigel

>>> Matt Sergeant <[EMAIL PROTECTED]> 07/08/02 01:29pm >>>
On Mon, 8 Jul 2002, Nigel Peck wrote:

> I seem to have a problem with XSP, when I open the following
>
> <xsp:page language="Perl" xmlns:xsp="http://apache.org/xsp/core/v1";>
>       <xsp:expr>scalar localtime</xsp:expr>
> </xsp:page>
>
> All I get is the page as above, I checked the Apache error log and
it
> seems to be getting processed:

Oh, so I didn't actually read your log in full, so while my previous
post
applies, it won't fix your problem. Your problem is that nothing is
defining a mapping to XSP for your setup. Try adding AxLogDeclines On,
and
you'll see what the problem is.

Basically you need either AxAddProcess or an xml-stylesheet PI to
define
the mapping to the XSP processor. See
http://axkit.org/wiki/view/AxKit/AxKit#ASSOCIATING%20STYLESHEETS%20WITH%20XML%20FILES


-- 
<!-- Matt -->
<:->Get a smart net</:->



ITM Business Solutions
Unit 4
Nine Trees Trading Estate
Morthen Road
Rotherham
S66 9JG

Reception
Tel: 01709 703288
Fax: 01709 701549

Help Desk
Tel:01709 530424
Fax: 01709 702159

CONFIDENTIALITY NOTICE: This message is intended only for the use of
the individual or entity to which it is addressed, and may contain
information that is privileged, confidential and exempt from disclosure
under applicable law.



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

Reply via email to