Loading ...
Sorry, an error occurred while loading the content.
 

dispatch_to( $dir )

Expand Messages
  • ed-soaplite@inkdroid.org
    I have a mod_perl XMLRPC handler: use strict; use XMLRPC::Transport::HTTP; my ( $perl5lib ) = ( $ENV{PERL5LIB} =~ /^(.*)$/ ); my $server =
    Message 1 of 1 , Mar 13, 2003
      I have a mod_perl XMLRPC handler:

      use strict;
      use XMLRPC::Transport::HTTP;

      my ( $perl5lib ) = ( $ENV{PERL5LIB} =~ /^(.*)$/ );

      my $server = XMLRPC::Transport::HTTP::Apache
      -> dispatch_to( "$perl5lib/FLR/External" );

      sub handler {
      $server->handler(@_);
      }

      Which works like a charm until one of the servers sets a fault with die.
      Afterwhich calls to the server yield:

      Failed to access class (XMLRPC::Test): Can't locate XMLRPC/Test.pm in @INC (@INC contains: /FLR/External) at (eval 517) line 3.

      The contents of @INC should have $PER5LIB prepended to '/FLR/External', but it
      has disspeared since the call to fault.

      Does ANYONE have any idea what is going on here? This behavior seems highly
      unstable. I've confirmed similar behavior under SOAP::Transport::HTTP.

      //Ed

      --

      Ed Summers
      aim: inkdroid
      web: http://www.inkdroid.org
    Your message has been successfully submitted and would be delivered to recipients shortly.