[Catalyst] MOD_PERL environment variable

Alan Humphrey alan.humphrey at comcast.net
Fri Jan 27 18:52:32 CET 2006


What is it about setting MOD_PERL that affects inheritance?

 

If I set MOD_PERL before running my test script I get the message:

 

Can't locate object method "new" via package
"Catalyst::Engine::Apache2::MP20" at
/usr/pkg/lib/perl5/site_perl/5.8.0/Catalyst.pm line 1776.

 

If it is unset the runtime error when I run the catalyst test script is:

 

[Fri Jan 27 09:37:23 2006] [catalyst] [error] Caught exception in engine
"Can't call method "connection" on an undefined value at
/usr/pkg/lib/perl5/site_perl/5.8.0/Catalyst/Engine/Apache.pm line 22."

 

 

Line 1776 of Catalyst.pm is

 

      $class->engine( $engine->new );

 

I can't see where setting MOD_PERL would have this effect.

 

Related info and question:

 

- This is a clean install of Catalyst 5.63.  I manually deleted all
references to Catalyst on my system and then used CPAN to install
Task::Catalyst.

 

- I'm setting MOD_PERL to mod_perl/2.000001 which is the version of mod_perl
on my system.

 

- My application uses -Engine=Apache2::MP20 in the use Catalyst line.

 

- How do folks debug the application setup process?  I've been peppering
Catalyst.pm and others with various prints, warns, and dies.  I'd really
like to be able to step through the code in the debugger.

 

Any pointers are greatly appreciated!

 

- Alan

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060127/8175f7e6/attachment.htm


More information about the Catalyst mailing list