[Catalyst] Catalyst Engine Start-up Flag?

Lee Goddard LGoddard at UK.Advertising.com
Fri Apr 27 13:53:00 GMT 2007

From: Marcello Romani [mailto:mromani at ottotecnica.com] 

> Lee Goddard ha scritto:
> > Is there a variable somewhere that can tell me when Catalyst's 
> > dev-server is starting up?  Because it seems to be calling every
> > I've written, but without parameters, which intentionally causes
> > when in production, but shouldn't during automated tests.
> > 
> > Thanks in anticipation
> Can you be more specific ?
> What do you mean by 'calling every method I've written ?'

Sorry: I meant when the server starts, it seems to attempt to call 'new'
for every *.pm in MyApp::Model::* :

    Couldn't instantiate component "CTT::Model::SWF"


[undef] | Missing fields: path, filebase, filename                |
CTT/Model/File.pm CTT::Model::File::new 107
[undef] | Couldn't instantiate component "CTT::Model::SWF", "Missing
fields: path, filebase, filename at ../lib/CTT/Model/File.pm line 109
        CTT::Model::File::new('CTT::Model::SWF', 'CTT',
'HASH(0x902fc10)') called at
/usr/local/share/perl/5.8.4/Catalyst/Component.pm line 76
        Catalyst::Component::COMPONENT('CTT::Model::SWF', 'CTT',
'HASH(0x902fc10)') called at /usr/local/share/perl/5.8.4/Catalyst.pm
line 1873
        eval {...} called at /usr/local/share/perl/5.8.4/Catalyst.pm
line 1873
        Catalyst::setup_component('CTT', 'CTT::Model::SWF') called at
/usr/local/share/perl/5.8.4/Catalyst.pm line 1845
        Catalyst::setup_components('CTT') called at
/usr/local/share/perl/5.8.4/Catalyst.pm line 872
        Catalyst::setup('CTT') called at ../lib/CTT.pm line 74
        require CTT.pm called at
/usr/local/share/perl/5.8.4/Catalyst/Test.pm line 90
        Catalyst::Test::import('Catalyst::Test', 'CTT') called at (eval
3) line 2
        main::BEGIN() called at ../lib/CTT.pm line 0
        eval {...} called at ../lib/CTT.pm line 0
        eval 'package main;
use Catalyst::Test @imports;

;' called at /usr/local/share/perl/5.8.4/Test/More.pm line 673
        Test::More::use_ok('Catalyst::Test', 'CTT') called at 01app.t
line 9
        main::BEGIN() called at ../lib/CTT.pm line 0
        eval {...} called at ../lib/CTT.pm line 0" at
/usr/local/share/perl/5.8.4/Catalyst/Test.pm line 90
Compilation failed in require at
/usr/local/share/perl/5.8.4/Catalyst/Test.pm line 90.
 | 5.8.4/Catalyst/Test.pm Catalyst::Test::import 90

More information about the Catalyst mailing list