Hi all,

I'm investigating using AxKit to provide a web frontend to an existing
application, and have created a very simple TagLib to pull data out of
the system and present it as XML.

However, I'm finding that the XSP handler seems to be dying/terminating
without any message when running my XSP page.

My TagLib source is below:

===============
package My::LrsApplicTagLib;

$NS = "http://microsec.co.uk/axkit_test/lrs/";;
@EXPORT_TAGLIB = ( 'load_applic($applic_id):as_xml=1',  'query($id)' );

## Work around a bug in 1.5.1
@ISA = qw( Apache::AxKit::Language::XSP::TaglibHelper );

sub parse_char  {
Apache::AxKit::Language::XSP::TaglibHelper::parse_char(@_)  }
sub parse_start {
Apache::AxKit::Language::XSP::TaglibHelper::parse_start(@_) }
sub parse_end   {
Apache::AxKit::Language::XSP::TaglibHelper::parse_end(@_)   }
## End workaround

use strict;
use Apache::AxKit::Language::XSP::TaglibHelper;

sub load_applic {
    my $id = shift;
    
     main::load_module("LRSenv.pm");
     main::load_module("LRSenv_client2.pm");

     my $Env = LRSenv->new(sMode => "CLIENT",
                    sLog_file =>  '/usr/lrs/LOG/axKit.log',
                    sTrace_file => '/usr/lrs/LOG/axKit.trace',
                    nDebug => 2,
                    sLog_open_mode => 'WKCYCLE',
                    sServer_host => 'indy', sService => '30501',
                    bAllow_test => 1,
                   );

    my $appApplic = Application->new(nApplic_id => $id);
    $appApplic->sConsideration("lots of money");

    my $sXML = $appApplic->as_xml;

    # remove the xml version stuff
    $sXML =~ s/\<\?xml version="1.0" encoding="UTF-8"\?\>//;
    return $sXML;
}


1;
===============

Things work fine until I try the LRSenv->new call - at which point no
code after this call gets executed.

Some notes:
The above works fine if the call to LRSenv->new is commented out
main::load_module is defined in a startup.pl script configured in
httpd.conf
Data gets written ot /usr/lrs/LOG/axKit.log and /usr/lrs/LOG/axKit.trace
- so something is working!
The TagLib works if called from a test script on the command line.

Two questions:

Is there a way to debug the operation when running through AxKit?

Is there a known problem with what I'm trying to do?

Thanks,

James

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

Reply via email to