Re: Apache2::Reload problems

[prev] [thread] [next] [Date index for 2005/05/25]

From: Mark
Subject: Re: Apache2::Reload problems
Date: 15:30 on 25 May 2005
Philippe M. Chiasson wrote:
> Mark wrote:
> 
>>I have a typical situation, with a Registry script that use's
>>a bunch of modules.  After Apache::Reload reloads the first module,
>>I get errors suggesting that the other loaded modules have been lost.
>>
>>To illustrate, it is like this (fake example):
>>
>>Script:
>>
>>   #!/usr/bin/perl
>>
>>  use Fubar;
>>  use Snafu;
>>
>>  $f = Fubar->new()
>>  $s = Snafu->new()
>>
>>I run once, then 'touch /path/to/Fubar.pm'
>>
>>Then I run from client, and I get error:
>>
>>   Can't locate object method "new" via package "Snafu" at ...
>>
>>Makes no sense to me?  Any ideas?    Same code on Apache 1.3 no problem.
>>My Reload config is:
>>
>>PerlModule Apache2::Reload
>>PerlInitHandler Apache2::Reload
>>PerlSetVar ReloadAll Off
>>PerlSetVar ReloadModules "Fubar"
>>PerlSetVar ReloadDebug On
>>
>>And I also have both Fubar and Snafu in my Apache PerlRequire file.
> 
> 
> What does Apache2::Reload say in your error_log ?

The expected:

   Apache2::Reload: Checking mtime of Fubar.pm
   Apache2::Reload: process 18010 reloading Fubar from Fubar.pm

plus a bunch of these:

   Prototype mismatch: sub Fubar::constant_as_string: none vs ($)


Related?

Mark

(message missing)

Apache2::Reload problems
Mark 06:42 on 25 May 2005

Re: Apache2::Reload problems
Stephane GUIBOUD-RIBAUD 06:48 on 25 May 2005

Re: Apache2::Reload problems
Mark 15:53 on 25 May 2005

Re: Apache2::Reload problems
Stas Bekman 17:37 on 25 May 2005

Should I use Package or Modual or what?
Luinrandir Insight 17:19 on 25 May 2005

Re: Should I use Package or Modual or what?
Perrin Harkins 17:16 on 25 May 2005

Re: Should I use Package or Modual or what?
Perrin Harkins 17:57 on 25 May 2005

a mystery.. need help
Luinrandir Insight 08:36 on 29 May 2005

[OT] Re: a mystery.. need help
Frank Maas 10:37 on 29 May 2005

Re: Apache2::Reload problems
Philippe M. Chiasson 09:24 on 25 May 2005

Re: Apache2::Reload problems
Mark 15:30 on 25 May 2005

Re: a mystery.. need help
David Dick 05:37 on 29 May 2005

Re: a mystery.. need help
Luinrandir Insight 02:10 on 30 May 2005

Re: a mystery.. need help
Tom Schindl 07:55 on 30 May 2005

Re: a mystery.. need help
jonathan vanasco 16:23 on 30 May 2005

Re: a mystery.. need help
Luinrandir Insight 20:15 on 30 May 2005

[MP2] How to turn off caching?
Foo Ji-Haw 04:23 on 31 May 2005

Re: [MP2] How to turn off caching?
Rodger Castle 05:11 on 31 May 2005

Re: [MP2] How to turn off caching?
Foo Ji-Haw 07:45 on 31 May 2005

Re: [MP2] How to turn off caching?
Torsten Foertsch 09:31 on 31 May 2005

Re: [MP2] How to turn off caching?
Issac Goldstand 08:50 on 31 May 2005

Generated at 20:12 on 05 Jun 2005 by mariachi v0.52