Mailing List Archive

Precompiling scripts with Apache::ASP->Loader
Hi,

I have a problem with using the script precompilation feature
using Apache::ASP->Loader(). Any help would be greatly appreciated.

I run a set of Apache::ASP applications in an Apache2/mod_perl2
environemnt, Perl version is 5.8.5, Apache::ASP version is 2.57.

When Apache is started, two scripts are executed:

<IfModule mod_perl.c>
PerlRequire "/jukebox/p4/cms/common/conf/startup.pl"
PerlRequire "/jukebox/p4/cms/common/tools/cms-precompile-scripts.pl"
</IfModule>

The first one precompiles loads of modules, while the second
one ist there to precompile the scripts for a defined number of
directories. What it basically does is:

foreach my $application (keys %{$Ets::CMS::Config->{Applications}}) {
Apache::ASP->Loader($cmsroot.$application,
"(asp|xls)\$",
Global => $cmsroot."$application/htdocs/global",
Debug => 1);
}

Now when I start Apache, I get the following error in the apache log
file:

[ASP WARN] Can't call method "cleanup_register" on an undefined value
at /usr/lib/perl5/site_perl/5.8.5/Apache/ASP.pm line 513.
at /usr/lib/perl5/site_perl/5.8.5/Apache/ASP.pm line 512
Apache::ASP::RegisterCleanup('Apache::ASP=HASH(0x8809614)',
'CODE(0x88048dc)') called at
/usr/lib/perl5/site_perl/5.8.5/Apache/ASP.pm line 379
Apache::ASP::new('Apache::ASP',
'Apache::ASP::Load=HASH(0x8809650)') called at
/usr/lib/perl5/site_perl/5.8.5//Apache/ASP/Load.pm line 129
eval {...} called at
/usr/lib/perl5/site_perl/5.8.5//Apache/ASP/Load.pm line 127

Apache::ASP::Load::Run('/jukebox/p4/cms/iem/htdocs/editacl.asp',
'(asp|xls)$', 'Global', '/jukebox/p4/cms/iem/htdocs/global', 'Debug',
1) called at /usr/lib/perl5/site_perl/5.8.5//Apache/ASP/Load.pm line
87
Apache::ASP::Load::Run('/jukebox/p4/cms/iem/htdocs',
'(asp|xls)$', 'Global', '/jukebox/p4/cms/iem/htdocs/global', 'Debug',
1) called at /usr/lib/perl5/site_perl/5.8.5//Apache/ASP/Load.pm line
87
Apache::ASP::Load::Run('Apache::ASP', '/jukebox/p4/cms/iem',
'(asp|xls)$', 'Global', '/jukebox/p4/cms/iem/htdocs/global', 'Debug',
1) called at /usr/lib/perl5/site_perl/5.8.5/Apache/ASP.pm line 1980
Apache::ASP::Loader('Apache::ASP', '/jukebox/p4/cms/iem',
'(asp|xls)$', 'Global', '/jukebox/p4/cms/iem/htdocs/global', 'Debug',
1) called at /jukebox/p4/cms/common/tools/cms-precompile-scripts.pl
line 15
require /jukebox/p4/cms/common/tools/cms-precompile-scripts.pl
called at (eval 58) line 1
eval 'require
\'/jukebox/p4/cms/common/tools/cms-precompile-scripts.pl\'
;' called at /etc/etscms.conf line 0

I get that error once for every script that is being compiled.

Interestingly, when I run the script on the command line, none
of these errors appears to be written to STDERR (or maybe I just don't
see them for some reason?).

I am aware that this error has been reported here mid-2004 but I have
not found a solution to this problem here or anywhere on the Internet.

Thanks... Oliver
olorenz@ets-online.de




---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org