You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by jing han <ji...@yahoo.com> on 2005/12/20 15:43:57 UTC
Can't locate object method "dir_config" via package "Apache2::SOAP"
Hello,
I meet a problem of "Can't locate object method
'dir_config' via package 'Apache2::SOAP'".
I installed httpd-2.0.54-10.i386.rpm and
mod_perl-2.0.0-0.rc5.3.i386.rpm with Fedora Core 4
CDs. And then I downloaded and installed
Apache-test-1.26.tar.gz and Apache2-SOAP-0.7.tar.gz.
I edited /etc/httpd/conf/httpd.conf to add our own
perl handler as:
<Location /NM2Soap>
setHandler perl-script
perlHandler SOAPApache
</Location>
In SOAPApache module, I change
use SOAP::Transport::HTTP;
to
use Apache2::SOAP;
I use a web services application to make a request to
my customized SOAPDaemon via SOAPApache. The request
is not successful. I go to /etc/httpd/logs/ directory
and check error_log file. The error message
looks like follows:
Can't locate object method "dir_config" via package
"Apache2::SOAP" at
/usr/lib/perl5/site_perl/5.8.6/SOAP/HTTP2.pm line 132.
I checked HTTP2.pm file, line 132 is:
my $config = shift->dir_config;
What should I do to get rid of this error message? Any
answer will be greatly appreciated.
jing
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Re: Can't locate object method "dir_config" via package
"Apache2::SOAP"
Posted by Frank Wiles <fr...@wiles.org>.
On Tue, 20 Dec 2005 06:43:57 -0800 (PST)
jing han <ji...@yahoo.com> wrote:
> Hello,
>
> I meet a problem of "Can't locate object method
> 'dir_config' via package 'Apache2::SOAP'".
>
> I installed httpd-2.0.54-10.i386.rpm and
> mod_perl-2.0.0-0.rc5.3.i386.rpm with Fedora Core 4
> CDs. And then I downloaded and installed
> Apache-test-1.26.tar.gz and Apache2-SOAP-0.7.tar.gz.
>
Hi Jing,
That version of mod_perl is very old, you will need to upgrade
to a newer version either from source from the website or find
a newer RPM.
The problem you are running into is there were some API changes
between the version you're running and the official 2.0 release.
I just checked the Fedora RPM repositories and if you do a
'yum update mod_perl' you should get a newer version that will
work with Apache2::SOAP.
---------------------------------
Frank Wiles <fr...@wiles.org>
http://www.wiles.org
---------------------------------