Hi
I decided to use Apache::Reload to get rid of typing:
apachectl stop && apachectl start
every time I change my modules. I configured apache to do this:
PerlSetVar ReloadAll Off
PerlSetVar ReloadModules "ARA::* Apache::*"
But when I made changes to Produkt.pm and hit the page, I got 500 and
this error in the log:
[Fri Feb 10 17:23:48 2006] [error] Can't override class
ARA::Produkt::Manager which already appears to be defined. at
/home/bruno/public_html/ara/rose/ARA/Produkt.pm line 22\nCompilation
failed in require at
/usr/local/lib/perl5/site_perl/5.8.7/Apache/Reload.pm line 132.\n
It looks like Apache::Reload 'undefines' all reloaded classes, but since
Manager classes aren't explicitly reloaded as .pm files, they cannot be
undefined - nor overriden. The fastest solution is to declare every
module supposed to be reloaded (what I'm going to do). On the other
hand, if columns, primary keys or relationships changed - wouldn't that
make re-creation of Manager class necessary?
Regards,
Bruno
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object