[Catalyst] modperl 1.3 wierdness

Toby Corkindale tjc at wintrmute.net
Mon Apr 21 07:54:00 BST 2008


Hi guys,
I have an application that runs well on modperl 2.0, fcgi and the standalone
server.. but due to some stubborn/paranoid sysadmins[1] we are going to have to
run it under modperl 1.3.

This has resulted in some wierdness I haven't seen before, and I wondered if
anyone else had hit it?

I'll try and make a working mock-up I can post to the list to demonstrate the
problem IF no-one else has seen it before.

Given that I have:
My::Schema (DBIx::Class::Schema)
--> My::Schema::OneTable
--> My::Schema::TableTwo
and
My::App (Catalyst)
--> My::App::Model::DB (Catalyst::Model::DBIC::Schema)

During Apache start-up I see:
---------------------------------------------------------
Subroutine My::App::Model::DB::OneTable::ACCEPT_CONTEXT redefined at
lib/My/App/Model/DB.pm
Subroutine My::App::Model::DB::TableTwo::ACCEPT_CONTEXT redefined at
lib/My/App/Model/DB.pm
Syntax error on line 7 of apache.conf:
Can't locate My/App/Model/DB/OneTable.pm in @INC ([snip]).
Compilation failed in require.
---------------------------------------------------------

This is weird - why is it trying to load the *schema*'s subclasses under the
Catalyst's model? (Which of course fails..)

Cheers,
Toby



More information about the Catalyst mailing list