[Catalyst] modperl 1.3 wierdness

Toby Corkindale tjc at wintrmute.net
Mon Apr 21 10:09:26 BST 2008


On Mon, Apr 21, 2008 at 04:54:00PM +1000, Toby Corkindale wrote:
> 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?
[snip]
> 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.
> ---------------------------------------------------------

The above problem was solved by changing the apache config.
Before:
<Perl>
   use lib qw(/my/home/dir);
</Perl>
PerlModule My::App

After:
<Perl>
   use lib qw(/my/home/dir);
   use My::App;
</Perl>


I'm still seeing some problems indicating the Plugin::ConfigLoader isn't, well,
loading anything, though. Odd.



More information about the Catalyst mailing list