Re: Apache2::Reload problems

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

From: Mark
Subject: Re: Apache2::Reload problems
Date: 15:53 on 25 May 2005
Stephane GUIBOUD-RIBAUD wrote:
> Hi Mark,
> 
> I had the same problem as you when installed the 2.0.0-RC6.
> I patched the Apache/Reload.pm (version 0.07) as follow:
> 
> 1/ Changed the string ${package}::FIELDS by 
> ${package}::APACHE_RELOAD_FIELDS (line 43, 44, 90, 92)
> 2/ Changed the return value of the 'handler' function to return 0 
> (instead of 1) [line 139].
> 
> You will find in attachment the version I used.
> 
> I don't know if the first modification has a real impact on the error, 
> but it works like this for me.


Thanks for the suggestion.  Unfortunatly, Apache2/Reload in 2.0.0
is at version 0.09 and has changed substantially from the 0.07 you
patched, and it's not clear to me how that patch would be fit to 0.09.
The whole ${package}::FIELDS business doesn't even exist in the
newer version, and the handler return is now Apache2::Const::OK.

Mark


> Stephane
> 
> 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.
>>
>> Thanks.
>>
>

(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