
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Error while starting Interchange
I added my first usertag today to parse xml data. Here is my problem:
Can't locate object method "new" via package "XML::Parser" at (eval 117)
line 47, <GLOBAL> line 118.
In line 118 of the configuration file 'usertag/ups_ad.tag': UserTag ups-ad
Routine <<EOR
and a few snipped lines from my tag file:
my $hole;
BEGIN {
eval {
require Safe::Hole;
$hole = new Safe::Hole; };
}
[...]
my $parser = $hole->wrap(new XML::Parser (ErrorContext => 2, Style =>
"Tree"));
my $xmlobj = new XML::SimpleObject ($parser->parse($response));
I tried it without Safe::Hole. It did not make a difference, same error.
Also, XML::SimpleObject ran without a glitch.
>From Catalog.cfg:
Require module LWP::UserAgent
Require module XML::Parser
Require module XML::SimpleObject
[...]
Require ups-ad ups_ad.tag
Just in case, I checked XML::Parser (Parser.pm) and the sub is there. Also,
the script runs fine on the same server as a stand-alone script. Any ideas
guys? It would be much appreciated.
Thanks,
Jason Osborne
Data and Telecom Network Solutions
3847 Timberglen Rd., STE 4013
Dallas, Texas 75287
phone: 972-307-0676
fax: 972-662-7956
e-mail: sales@sohonetworks.cc
web: http://www.sohonetworks.cc
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users