Subject: | CAN'T LOCATE AUTO/APACHE2/CONST/HTTP_BAD_RE.AL |
I get this error from my application on a bad request
an't locate auto/Apache2/Const/HTTP_BAD_RE.al in @INC (@INC contains:
/home/arudemo/pm /appldev/scm/pm
/arudev/tech-stack/08.09.22.02/linux/lib/perl5/5.8.8/i686-linux
/arudev/tech-stack/08.09.22.02/linux/lib/perl5/5.8.8
/arudev/tech-stack/08.09.22.02/linux/lib/perl5/site_perl/5.8.8/i686-linux
/arudev/tech-stack/08.09.22.02/linux/lib/perl5/site_perl/5.8.8
/arudev/tech-stack/08.09.22.02/linux/lib/perl5/site_perl
/arudev/tech-stack/08.09.22.02/portable/lib/perl5/5.8.8/i686-linux
/arudev/tech-stack/08.09.22.02/portable/lib/perl5/5.8.8
/arudev/tech-stack/08.09.22.02/portable/lib/perl5
/arudev/tech-stack/08.09.22.02/portable/lib/perl5/site_perl/5.8.8/i686-linux
/arudev/tech-stack/08.09.22.02/portable/lib/perl5/site_perl/5.8.8
/arudev/tech-stack/08.09.22.02/portable/lib/perl5/site_perl .
/arudev/tech-stack/08.09.22.02/linux) at
/arudev/tech-stack/08.09.22.02/linux/lib/perl5/site_perl/5.8.8/SOAP/Transport/
HTTP.pm line 707
perl -MSOAP::Transport::HTTP -e 'print
$SOAP::Transport::HTTP::VERSION,"\n"'
0.710.08
If we look into the SOAP::Transport::HTTP code and find the constants
that are actually used. In this case, besides this one OK is used.
However, the place where OK is used, they are explicitly loading the
constants:
# mod_perl 2.0
if(defined $ENV{MOD_PERL_API_VERSION} && $ENV{MOD_PERL_API_VERSION} >= 2)
{
require Apache2::RequestRec;
require Apache2::RequestIO;
require Apache2::Const;
require Apache2::RequestUtil;
require APR::Table;
Apache2::Const->import(-compile => 'OK');
$self->{'MOD_PERL_VERSION'} = 2;
$self->{OK} = &Apache2::Const::OK;
}
It would seem they need to add similar logic where HTTP_BAD_REQUEST is
used. This would be a bug in SOAP-lite.
Could you compile all required constants