[Maypole] Maypole::Application still broken in 2.09?

Matt Adams matt.adams@morcor.com
Tue, 01 Feb 2005 14:58:50 -0500


Hi there:

Just wondering if Marcus R. or Simon F. (or anyone else) had any other 
suggestions as to why Maypole::Application is still broken in 2.09.

Maybe it's not... maybe it's me?

Here's the problem (same as before -- just slightly edited).

I recently upgraded to Maypole 2.09 and discovered that it is not compatible 
with the Maypole app I have been using.  I'm hoping that those of you who are 
more familiar with the Maypole-innards will be able to shed some light on why 
I'm having the problems I am.

It would appear that the neat stuff in Maypole::Application 2.09 is still 
causing problems for my poor Maypole-powered application.

If I downgrade to Maypole::Application 2.07 everything works fine.

I don't think my Maypole app is all that odd.  Here's how it begins:

BEGIN {
   package MyApp;
   use MyApp::Constants;
   $ENV{MAYPOLE_CONFIG} = BINPATH . '/MyApp.yaml';
}

package MyApp;

use Maypole::Application qw(
     -Debug
     Config::YAML
     Authentication::Abstract
     -Setup
);

But unfortunately this doesn't work out too well with Maypole::Application 2.09 
which still gives me the same error as in 2.08:

MyApp...Debugging enabled
MyApp...Loaded plugin: Maypole::Plugin::Authentication::Abstract
MyApp...Loaded plugin: Maypole::Plugin::Config::YAML
MyApp...No DSN set in config
[error] Can't locate object method "new" via package "Class::DBI::Loader::" 
(perhaps you forgot to load "Class::DBI::Loader::"?) at 
/.../lib/Class/DBI/Loader.pm line 77.
BEGIN failed--compilation aborted at /.../MyApp.pm line 36.
Compilation failed in require at (eval 10) line 3.
[error] Can't call method "_table2class" on an undefined value at 
/.../lib/Maypole/Model/CDBI.pm line 250.

Can someone give me some pointers as to a) how to fix my app so that it is 
compliant with Maypole::Application 2.09 and/or b) what exactly was the purpose 
of the neat code in Maypole::Application 2.09?

FWIW, I'm using a PERL5LIB path modified by my Apache configuration.


Thanks!

Matt
-- 
Matt Adams <matt.adams@morcor.com>
Development Specialist
Morcor Solutions Inc. <http://www.morcor.com/>
(613) 354-2912 x228

GnuPG public key at <http://staff.morcor.com/~madams/>
Key fingerprint: BED5 B4F7 CCF5 D7B5 7C56  0505 9A0A A0FB C937 5975